1################################################################################ 2# 3# e2fsprogs 4# 5################################################################################ 6 7E2FSPROGS_VERSION = 1.46.5 8E2FSPROGS_SOURCE = e2fsprogs-$(E2FSPROGS_VERSION).tar.xz 9E2FSPROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/tytso/e2fsprogs/v$(E2FSPROGS_VERSION) 10E2FSPROGS_LICENSE = GPL-2.0, MIT-like with advertising clause (libss and libet) 11E2FSPROGS_LICENSE_FILES = NOTICE lib/ss/mit-sipb-copyright.h lib/et/internal.h 12E2FSPROGS_CPE_ID_VENDOR = e2fsprogs_project 13E2FSPROGS_INSTALL_STAGING = YES 14 15E2FSPROGS_MAKE = $(MAKE1) 16 17# 0001-libext2fs-add-sanity-check-to-extent-manipulation.patch 18E2FSPROGS_IGNORE_CVES += CVE-2022-1304 19 20# Use libblkid and libuuid from util-linux for host and target packages. 21# This prevents overriding them with e2fsprogs' ones, which may cause 22# problems for other packages. 23E2FSPROGS_DEPENDENCIES = host-pkgconf util-linux 24HOST_E2FSPROGS_DEPENDENCIES = host-pkgconf host-util-linux 25 26E2FSPROGS_SELINUX_MODULES = fstools 27 28# e4defrag doesn't build on older systems like RHEL5.x, and we don't 29# need it on the host anyway. 30# Disable fuse2fs as well to avoid carrying over deps, and it's unused 31HOST_E2FSPROGS_CONF_OPTS = \ 32 --disable-defrag \ 33 --disable-e2initrd-helper \ 34 --disable-fuse2fs \ 35 --disable-fsck \ 36 --disable-libblkid \ 37 --disable-libuuid \ 38 --disable-testio-debug \ 39 --enable-symlink-install \ 40 --enable-elf-shlibs \ 41 --with-crond-dir=no \ 42 --with-udev-rules-dir=no \ 43 --with-systemd-unit-dir=no 44 45# Set the binary directories to "/bin" and "/sbin", as busybox does, 46# so that we do not end up with two versions of e2fs tools. 47E2FSPROGS_CONF_OPTS = \ 48 --bindir=/bin \ 49 --sbindir=/sbin \ 50 $(if $(BR2_STATIC_LIBS),--disable-elf-shlibs,--enable-elf-shlibs) \ 51 $(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),--enable-debugfs,--disable-debugfs) \ 52 $(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),--enable-imager,--disable-imager) \ 53 $(if $(BR2_PACKAGE_E2FSPROGS_E4DEFRAG),--enable-defrag,--disable-defrag) \ 54 $(if $(BR2_PACKAGE_E2FSPROGS_FSCK),--enable-fsck,--disable-fsck) \ 55 $(if $(BR2_PACKAGE_E2FSPROGS_RESIZE2FS),--enable-resizer,--disable-resizer) \ 56 --disable-uuidd \ 57 --disable-libblkid \ 58 --disable-libuuid \ 59 --disable-e2initrd-helper \ 60 --disable-testio-debug \ 61 --disable-rpath \ 62 --enable-symlink-install 63 64ifeq ($(BR2_PACKAGE_E2FSPROGS_FUSE2FS),y) 65E2FSPROGS_CONF_OPTS += --enable-fuse2fs 66E2FSPROGS_DEPENDENCIES += libfuse 67else 68E2FSPROGS_CONF_OPTS += --disable-fuse2fs 69endif 70 71ifeq ($(BR2_nios2),y) 72E2FSPROGS_CONF_ENV += ac_cv_func_fallocate=no 73endif 74 75E2FSPROGS_CONF_ENV += ac_cv_path_LDCONFIG=true 76 77HOST_E2FSPROGS_CONF_ENV += ac_cv_path_LDCONFIG=true 78 79E2FSPROGS_INSTALL_STAGING_OPTS = \ 80 DESTDIR=$(STAGING_DIR) \ 81 install-libs 82 83# e2scrub has no associated --enable/disable option 84ifneq ($(BR2_PACKAGE_E2FSPROGS_E2SCRUB),y) 85E2FSPROGS_MAKE_OPTS += E2SCRUB_DIR= 86endif 87 88E2FSPROGS_INSTALL_TARGET_OPTS = \ 89 $(E2FSPROGS_MAKE_OPTS) \ 90 DESTDIR=$(TARGET_DIR) \ 91 install 92 93# Package does not build in parallel due to improper make rules 94define HOST_E2FSPROGS_INSTALL_CMDS 95 $(HOST_MAKE_ENV) $(MAKE1) -C $(@D) install install-libs 96endef 97 98# Remove compile_et which raises a build failure with samba4 99define HOST_E2FSPROGS_REMOVE_COMPILE_ET 100 $(RM) $(HOST_DIR)/bin/compile_et 101endef 102HOST_E2FSPROGS_POST_INSTALL_HOOKS += HOST_E2FSPROGS_REMOVE_COMPILE_ET 103 104$(eval $(autotools-package)) 105$(eval $(host-autotools-package)) 106