diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2022-10-27 10:13:09 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2022-10-27 10:13:23 -0700 |
commit | f85aba8b222771e8cc87a6e75d0220cdb2717f78 (patch) | |
tree | f330eccc7f6dc24c9764d1f0bdd7239f176f9c91 /sys-fs | |
parent | net-p2p/transmission: drop 'web' USE flag (diff) | |
download | gentoo-f85aba8b222771e8cc87a6e75d0220cdb2717f78.tar.gz gentoo-f85aba8b222771e8cc87a6e75d0220cdb2717f78.tar.bz2 gentoo-f85aba8b222771e8cc87a6e75d0220cdb2717f78.zip |
sys-fs/lvm2: fix hardcoded readelf
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Close: https://bugs.gentoo.org/840628
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/lvm2/files/lvm2-2.03.16-readelf.patch | 25 | ||||
-rw-r--r-- | sys-fs/lvm2/lvm2-2.03.16.ebuild | 3 |
2 files changed, 28 insertions, 0 deletions
diff --git a/sys-fs/lvm2/files/lvm2-2.03.16-readelf.patch b/sys-fs/lvm2/files/lvm2-2.03.16-readelf.patch new file mode 100644 index 000000000000..b4d60c5825db --- /dev/null +++ b/sys-fs/lvm2/files/lvm2-2.03.16-readelf.patch @@ -0,0 +1,25 @@ +diff -Nuar LVM2.2.03.16.orig/libdm/Makefile.in LVM2.2.03.16/libdm/Makefile.in +--- LVM2.2.03.16.orig/libdm/Makefile.in 2022-05-18 09:24:20.000000000 -0700 ++++ LVM2.2.03.16/libdm/Makefile.in 2022-10-27 10:09:29.283631020 -0700 +@@ -59,6 +59,10 @@ + + PROGS_CFLAGS = $(UDEV_CFLAGS) + ++ifeq ($(strip $(READELF)),) ++READELF := readelf ++endif ++ + device-mapper: $(TARGETS) + + dm-tools.device-mapper: device-mapper +@@ -71,8 +75,8 @@ + # also the older symbol is built-in + .symver_check: $(LIB_SHARED) + @echo " [CHECK] $<" +- $(Q) if readelf -Ws $< | grep -q dm_stats_create_region@@; then \ +- SYM=$$(readelf -Ws $< | grep dm_stats_create_region@DM_1_02_106); \ ++ $(Q) if $(READELF) -Ws $< | grep -q dm_stats_create_region@@; then \ ++ SYM=$$( $(READELF) -Ws $< | grep dm_stats_create_region@DM_1_02_106); \ + if test -n "$$SYM"; then touch $@; \ + else echo >&2 "Missing versioned symbols in $<"; false; fi; \ + else touch $@; fi diff --git a/sys-fs/lvm2/lvm2-2.03.16.ebuild b/sys-fs/lvm2/lvm2-2.03.16.ebuild index 30a41a0a959c..d3922e5152cf 100644 --- a/sys-fs/lvm2/lvm2-2.03.16.ebuild +++ b/sys-fs/lvm2/lvm2-2.03.16.ebuild @@ -69,6 +69,7 @@ PATCHES=( "${FILESDIR}"/${PN}-2.03.14-r1-fopen-to-freopen.patch "${FILESDIR}"/${PN}-2.03.14-r1-mallinfo.patch "${FILESDIR}"/${PN}-2.03.14-freopen_n2.patch + "${FILESDIR}"/${PN}-2.03.16-readelf.patch ) pkg_setup() { @@ -162,6 +163,7 @@ src_configure() { myeconfargs+=( --with-thin=none --with-cache=none ) fi + export READELF="$(tc-getREADELF)" myeconfargs+=( $(use_enable readline) $(use_enable selinux) @@ -184,6 +186,7 @@ src_configure() { $(use_enable systemd notify-dbus) --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" CLDFLAGS="${LDFLAGS}" + READELF="${READELF}" ) # Hard-wire this to bash as some shells (dash) don't know # "-o pipefail" #682404 |