[DSE-Dev] Bug#989748: libselinux FTBFS on musl-linux-any: broken gettid detection

Helmut Grohne helmut at subdivi.de
Fri Jun 11 19:39:35 BST 2021


Source: libselinux
Version: 3.1-3
Tags: ftbfs patch upstream
User: helmutg at debian.org
Usertags: rebootstrap

libselinux fails to build from source on musl, because its "detection"
for gettid is broken. Essentially it says that bionic and sufficiently
recent glibc has glibc and everything else does not. Unfortunately, that
guess is wrong on musl.

I propose ending the guesswork and just checking for the presence of
gettid. Doing so makes matters rather simple and eliminate future
porting to other C libraries. Please consider applying the attached
patch.

Also note that debian/patches/drop-gettid.patch looks like it can be
deleted.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: musl.patch
Type: text/x-diff
Size: 1167 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/selinux-devel/attachments/20210611/e6a74ca5/attachment.patch>


More information about the SELinux-devel mailing list