package/lvm2: Fix runtime crash when using uclibc
authorMarcin Niestroj <m.niestroj@grinn-global.com>
Thu, 26 Jul 2018 17:15:23 +0000 (19:15 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 14 Aug 2018 20:49:14 +0000 (22:49 +0200)
commit4744923bb7e70a763931adcfd66f4377a43ec062
tree822e82fbda35349d3f2275ef53c02f5957f6de95
parentc4f39476fdb2867a05c267c62ee1ac1aaa00e69c
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>
package/lvm2/0001-configure-Introduce-enable-symvers-option.patch [new file with mode: 0644]
package/lvm2/lvm2.mk