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:23:03 +0000 (22:23 +0200)
commit5313c50aa3c1533c32ecf8d04c0628fbbb14f58d
tree9f0d5264d710515533673e1d0ae0cc27c3485af1
parent7c2eb68cac14ea1281cfaca6ab81f63e72bc8016
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