From 0f825c7de7daa502c8ec334a4a323c25acdce0db Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Fri, 5 Sep 2025 16:27:33 +0200 Subject: [PATCH] HACK: sys-libs/glibc: Enable selinux even when cross-compiling Signed-off-by: Krzesimir Nowak --- .../sys-libs/glibc/glibc-2.42-r2.ebuild | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/glibc/glibc-2.42-r2.ebuild b/sdk_container/src/third_party/portage-stable/sys-libs/glibc/glibc-2.42-r2.ebuild index 3d1194e0e0..9c7506e40c 100644 --- a/sdk_container/src/third_party/portage-stable/sys-libs/glibc/glibc-2.42-r2.ebuild +++ b/sdk_container/src/third_party/portage-stable/sys-libs/glibc/glibc-2.42-r2.ebuild @@ -1038,24 +1038,6 @@ glibc_do_configure() { myconf+=( --enable-kernel=${MIN_KERN_VER} ) - # Since SELinux support is only required for nscd, only enable it if: - # 1. USE selinux - # 2. only for the primary ABI on multilib systems - # 3. Not a crosscompile - if ! is_crosscompile && use selinux ; then - if use multilib ; then - if is_final_abi ; then - myconf+=( --with-selinux ) - else - myconf+=( --without-selinux ) - fi - else - myconf+=( --with-selinux ) - fi - else - myconf+=( --without-selinux ) - fi - # Force a few tests where we always know the answer but # configure is incapable of finding it. if is_crosscompile ; then @@ -1065,6 +1047,7 @@ glibc_do_configure() { fi myconf+=( + $(use_with selinux) --disable-werror --enable-bind-now --enable-fortify-source