summaryrefslogtreecommitdiffstats
path: root/package/lvm2/lvm2.mk
diff options
context:
space:
mode:
authorMarcin Niestroj <m.niestroj@grinn-global.com>2018-07-26 19:15:23 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-08-14 22:49:14 +0200
commit4744923bb7e70a763931adcfd66f4377a43ec062 (patch)
tree822e82fbda35349d3f2275ef53c02f5957f6de95 /package/lvm2/lvm2.mk
parentc4f39476fdb2867a05c267c62ee1ac1aaa00e69c (diff)
downloadbuildroot-4744923bb7e70a763931adcfd66f4377a43ec062.tar.gz
buildroot-4744923bb7e70a763931adcfd66f4377a43ec062.zip
package/lvm2: Fix runtime crash when using uclibc
When using uclibc libdevmapper.so was calling dm_task_get_info_base() function recursively, leading to segmentation fault. This was happening because uclibc linker loader just takes first existing 'dm_task_get_info' (which is 'dm_task_get_info_base') symbol in elf binary, instead of default version. Add upstreamable lvm2 patch [1], which introduces --enable-symvers[=STYLE] switch. Use that switch to disable symbol versions, as we do not plan to support binaries compiled against old libdevmapper library. Fixes bug #10781. [1] https://www.redhat.com/archives/dm-devel/2018-July/msg00187.html Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/lvm2/lvm2.mk')
-rw-r--r--package/lvm2/lvm2.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
index 20e0dd0d5c..ccdc2c38e6 100644
--- a/package/lvm2/lvm2.mk
+++ b/package/lvm2/lvm2.mk
@@ -19,7 +19,8 @@ LVM2_CONF_OPTS += \
--enable-pkgconfig \
--enable-cmdlib \
--enable-dmeventd \
- --disable-nls
+ --disable-nls \
+ --disable-symvers
LVM2_DEPENDENCIES += host-pkgconf
OpenPOWER on IntegriCloud