Summary: | sys-apps/policycoreutils-2.6-r1 does not works with musl | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexander Miroshnichenko <alex> |
Component: | SELinux | Assignee: | SE Linux Bugs <selinux> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | tsmksubc |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alexander Miroshnichenko
2017-05-07 07:56:34 UTC
The alpine patches do not seem relevant to the bug of the semodule binary you are seeing. Can you describe the bug in more detail? (What is expected behavior? What does actually happen? Does the program emit any error message?) (In reply to Felix Janda from comment #1) > Can you describe the bug in more detail? > What is expected behavior? I expect sucessfully install and load selinux-base-policy and other selinux policy packages. > What does actually happen? Package sys-apps/policycoreutils can not be compiled from official gentoo repo. >Does the program emit any error message? Compile error with musl profile: restore.c:78:22: error: 'GLOB_TILDE' undeclared (first use in this function) errors = glob(name, GLOB_TILDE | GLOB_PERIOD | Hi, Do yo have any progress for the bug? (In reply to Alexander Miroshnichenko from comment #3) > Hi, > > Do yo have any progress for the bug? 2.7 is in the tree. Can you test that version? I seem to recall some patches relating to musl a while ago. The following mask changes are necessary to proceed: (see "package.unmask" in the portage(5) man page for more details) # required by sys-apps/policycoreutils-2.7::gentoo # required by =sys-apps/policycoreutils-2.7 (argument) # /usr/portage/profiles/hardened/linux/musl/package.mask: =sys-libs/glibc-2.23-r4 It still requires GLIBC I have modified ebuild in local portage by removing GLIBC dependency, but compile fails with same error: * Package: sys-apps/policycoreutils-2.7 * Repository: x-portage * Maintainer: selinux@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux pam python_targets_python2_7 python_targets_python3_4 userland_GNU * FEATURES: preserve-libs sandbox selinux sesandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking policycoreutils-2.7.tar.gz to /var/tmp/portage/sys-apps/policycoreutils-2.7/work >>> Unpacking policycoreutils-extra-1.36.tar.bz2 to /var/tmp/portage/sys-apps/policycoreutils-2.7/work >>> Source unpacked in /var/tmp/portage/sys-apps/policycoreutils-2.7/work >>> Preparing source in /var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-2.7 ... * Applying policycoreutils-2.7-0001-newrole-not-suid.patch ... [ ok ] * Will copy sources from /var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-2.7 * python2_7: copying to /var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-2.7-python2_7 * python3_4: copying to /var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-2.7-python3_4 * Will copy sources from /var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-extra * python2_7: copying to /var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-extra-python2_7 * python3_4: copying to /var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-extra-python3_4 >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-extra ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-extra ... * python2_7: running building make -j4 -C /var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-2.7-python2_7 AUDIT_LOG_PRIVS=y AUDITH=n PAMH=y INOTIFYH=n SESANDBOX=n CC=x86_64-gentoo-linux-musl-gcc PYLIBVER=python2.7 LIBDIR=$(PREFIX)/lib make: Entering directory '/var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-2.7-python2_7' make[1]: Entering directory '/var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-2.7-python2_7/setfiles' x86_64-gentoo-linux-musl-gcc -march=native -O2 -pipe -c -o setfiles.o setfiles.c x86_64-gentoo-linux-musl-gcc -march=native -O2 -pipe -c -o restore.o restore.c x86_64-gentoo-linux-musl-gcc -march=native -O2 -pipe -c -o restorecon_xattr.o restorecon_xattr.c restore.c: In function 'process_glob': restore.c:79:22: error: 'GLOB_TILDE' undeclared (first use in this function) errors = glob(name, GLOB_TILDE | GLOB_PERIOD | ^ restore.c:79:22: note: each undeclared identifier is reported only once for each function it appears in restore.c:80:21: error: 'GLOB_BRACE' undeclared (first use in this function) GLOB_NOCHECK | GLOB_BRACE, NULL, &globbuf); ^ make[1]: *** [<builtin>: restore.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-2.7-python2_7/setfiles' make: *** [Makefile:4: all] Error 1 make: Leaving directory '/var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-2.7-python2_7' * ERROR: sys-apps/policycoreutils-2.7::x-portage failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-apps/policycoreutils-2.7::x-portage'`, * the complete build log and the output of `emerge -pqv '=sys-apps/policycoreutils-2.7::x-portage'`. * The complete build log is located at '/var/tmp/portage/sys-apps/policycoreutils-2.7/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/policycoreutils-2.7/temp/environment'. * Working directory: '/var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-extra' * S: '/var/tmp/portage/sys-apps/policycoreutils-2.7/work/policycoreutils-2.7' Fixed in 2.8. |