diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2005-10-08 04:19:36 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2005-10-08 04:19:36 +0000 |
commit | c08066b520c7a4b55310176b92400eb9afbb3d40 (patch) | |
tree | 2df81305fda709e52caad6401e900eb1a6ffc8ba /sys-libs/glibc/glibc-2.3.5-r2.ebuild | |
parent | mark stable (diff) | |
download | gentoo-2-c08066b520c7a4b55310176b92400eb9afbb3d40.tar.gz gentoo-2-c08066b520c7a4b55310176b92400eb9afbb3d40.tar.bz2 gentoo-2-c08066b520c7a4b55310176b92400eb9afbb3d40.zip |
Enable SELinux support only on primary ABI on multilib systems.
(Portage version: 2.0.52-r1)
Diffstat (limited to 'sys-libs/glibc/glibc-2.3.5-r2.ebuild')
-rw-r--r-- | sys-libs/glibc/glibc-2.3.5-r2.ebuild | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/sys-libs/glibc/glibc-2.3.5-r2.ebuild b/sys-libs/glibc/glibc-2.3.5-r2.ebuild index 48476a252a6c..a29ddbccdffb 100644 --- a/sys-libs/glibc/glibc-2.3.5-r2.ebuild +++ b/sys-libs/glibc/glibc-2.3.5-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.5-r2.ebuild,v 1.8 2005/10/08 00:33:59 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.5-r2.ebuild,v 1.9 2005/10/08 04:19:36 pebenito Exp $ # Here's how the cross-compile logic breaks down ... # CTARGET - machine that will target the binaries @@ -899,8 +899,20 @@ glibc_do_configure() { die "invalid pthread option" fi - if ! use build && use selinux; then - myconf="${myconf} --with-selinux" + # Since SELinux support is only required for nscd, only enable it if: + # 1. USE selinux + # 2. ! USE build + # 3. only for the primary ABI on multilib systems + if use selinux && ! use build; then + if use multilib || has_multilib_profile; then + if is_final_abi; then + myconf="${myconf} --with-selinux" + else + myconf="${myconf} --without-selinux" + fi + else + myconf="${myconf} --with-selinux" + fi else myconf="${myconf} --without-selinux" fi |