[Buildroot] [PATCH v4 1/8] package/libselinux: bump version to 3.0
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Apr 19 14:26:54 UTC 2020
On Wed, 15 Apr 2020 07:59:14 -0500
Matt Weber <matthew.weber at rockwellcollins.com> wrote:
> From: Adam Duskett <aduskett at gmail.com>
>
> Other changes:
> - Remove upstream packages.
> - Modify existing patches to work with 3.0.
> - Remove Python2 check, as 3.0 has removed Python2 support.
>
> Signed-off-by: Adam Duskett <aduskett at gmail.com>
> Signed-off-by: Matt Weber <matthew.weber at rockwellcollins.com>
> ---
> Changes
> v3 -> v4
> - Switched back to using x.y for versioning
This breaks the build with some old glibc versions where <fts.h> is
incompatible with FILE_OFFSET_BITS=64. We already have a work-around
for this in libselinux.mk, but it seems it's no longer sufficient, as
-D_FILE_OFFSET_BITS=64 gets into the command line:
/home/buildroot/autobuild/instance-1/output-1/host/bin/arm-none-linux-gnueabi-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Os -I../include -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -lpcre -lpthread -L../src selabel_get_digests_all_partial_matches.c -lselinux -o selabel_get_digests_all_partial_matches
In file included from selabel_get_digests_all_partial_matches.c:7:0:
/home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabi/sysroot/usr/include/fts.h:41:3: error: #error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64"
# error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64"
^
Could you have a look ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list