package/eudev: fix build with musl + libselinux
authorRomain Naour <romain.naour@openwide.fr>
Fri, 31 Jul 2015 13:24:53 +0000 (15:24 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 6 Aug 2015 07:06:01 +0000 (09:06 +0200)
commit8541fc05a3f6d7495e31304619adcc9e210a6989
treefaa78e1d5eec4ee24eb2c458e39908e06855cca8
parent227ae6888f3eb0b9f4224003925ef274db788950
package/eudev: fix build with musl + libselinux

Add a patch to disable mallinfo statistics with musl toolchains
which doesn't have struct mallinfo.

Fixes:
selinux-util.c: In function ‘mac_selinux_init’:
selinux-util.c:70:25: error: storage size of ‘before_mallinfo’ isn’t known
         struct mallinfo before_mallinfo, after_mallinfo;

Add a second patch for strndupa() which is a GNU extension.

Fixes:
./.libs/libudev-core.a(selinux-util.o): In function `mac_selinux_bind':
selinux-util.c:(.text+0xd94): undefined reference to `strndupa'
collect2: error: ld returned 1 exit status

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Cc: Clayton Shotwell <clshotwe@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/eudev/0002-build-sys-check-for-mallinfo.patch [new file with mode: 0644]
package/eudev/0003-build-sys-check-for-strndupa.patch [new file with mode: 0644]
package/eudev/eudev.mk