[Buildroot] [PATCH 01/11] package/libselinux: fix build issues caused by 3.8.1 bump

Julien Olivain ju.o at free.fr
Sun Sep 14 22:28:28 UTC 2025


On 09/09/2025 14:08, Thomas Petazzoni via buildroot wrote:
> Since the bump to version 3.8.1 in commit
> 1ae3ad4e878e1f4217ba3276ff0c9e584234afa4, libselinux fails to build
> with at least
> 
> - Musl configurations
> - RISC-V 32-bit configurations
> - OpenRISC configurations
> 
> These build failures are due to additional checks on the size of some
> data structures:
> 
> matchpathcon.c:270:47: error: '__ino_t' undeclared here (not in a 
> function); did you mean 'ino_t'?
>   270 | static_assert(sizeof(unsigned long) == sizeof(__ino_t), "inode 
> size mismatch");
>       |                                               ^~~~~~~
>       |                                               ino_t
> matchpathcon.c:270:15: error: expression in static assertion is not an 
> integer
>   270 | static_assert(sizeof(unsigned long) == sizeof(__ino_t), "inode 
> size mismatch");
>       |               ^~~~~~
> 
> These issues have been fixed in follow-up upstream commits, which we
> backport.
> 
> Fixes:
> 
>   
> https://autobuild.buildroot.net/results/00a1ab30cc6b7af503aa96384ba4c4444c217401/ 
> (musl)
>   
> https://autobuild.buildroot.net/results/c8321be687201937bd5eb48b31dfabac12f4e9ea/ 
> (glibc or1k)
>   
> https://autobuild.buildroot.net/results/7b94f44282582d5994f40a741cc0c38bd68b53bd/ 
> (risc-v 32-bit)
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>

I applied the full series to master, thanks.

While reviewing, I found one corner case build failure with libselinux 
3.9
on x86_64 uclibc. See:
https://gitlab.com/jolivain/buildroot/-/jobs/11350151899

It seems to be a followup issue related to the one fixed in this patch.

Best regards,

Julien.


More information about the buildroot mailing list