sys-libs/glibc: add USE=audit & USE=caps #401677
authorMike Frysinger <vapier@gentoo.org>
Wed, 30 Mar 2016 20:03:35 +0000 (16:03 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Mar 2016 22:03:07 +0000 (18:03 -0400)
sys-libs/glibc/files/eblits/src_configure.eblit
sys-libs/glibc/glibc-2.23.ebuild
sys-libs/glibc/glibc-9999.ebuild

index 41ba5ddf7ad07dd409f22c98acf1f065d6cc3378..be6f52cb99d1d21489f5f8367825695df2e1faf5 100644 (file)
@@ -124,6 +124,10 @@ glibc_do_configure() {
                myconf+=( $(use_enable vanilla timezone-tools) )
        fi
 
+       # These libs don't have configure flags.
+       ac_cv_lib_audit_audit_log_user_avc_message=$(in_iuse audit && usex audit || echo no)
+       ac_cv_lib_cap_cap_init=$(in_iuse caps && usex caps || echo no)
+
        # There is no configure option for this and we need to export it
        # since the glibc build will re-run configure on itself
        export libc_cv_slibdir=/$(get_libdir)
@@ -204,6 +208,9 @@ toolchain-glibc_headers_configure() {
                libc_cv_z_relro=yes
                libc_mips_abi=${ABI}
                libc_mips_float=$([[ $(tc-is-softfloat) == "yes" ]] && echo soft || echo hard)
+               # These libs don't have configure flags.
+               ac_cv_lib_audit_audit_log_user_avc_message=no
+               ac_cv_lib_cap_cap_init=no
        )
        einfo "Forcing cached settings:"
        for v in "${vars[@]}" ; do
index c8cb72a81459c4d510dacba292ed33768ea22292..501ce19b8e666dc9b6b2d4a85f3d055fee3696a9 100644 (file)
@@ -30,7 +30,7 @@ GCC_BOOTSTRAP_VER="4.7.3-r1"
 PATCH_VER="3"                                  # Gentoo patchset
 : ${NPTL_KERN_VER:="2.6.32"}                   # min kernel version nptl requires
 
-IUSE="debug gd hardened multilib nscd +rpc selinux systemtap profile suid vanilla crosscompile_opts_headers-only"
+IUSE="audit caps debug gd hardened multilib nscd +rpc selinux systemtap profile suid vanilla crosscompile_opts_headers-only"
 
 # Here's how the cross-compile logic breaks down ...
 #  CTARGET - machine that will target the binaries
@@ -64,13 +64,21 @@ SLOT="2.2"
 
 # General: We need a new-enough binutils/gcc to match upstream baseline.
 # arch: we need to make sure our binutils/gcc supports TLS.
-DEPEND=">=app-misc/pax-utils-0.1.10
+COMMON_DEPEND="
+       nscd? ( selinux? (
+               audit? ( sys-process/audit )
+               caps? ( sys-libs/libcap )
+       ) )
+       suid? ( caps? ( sys-libs/libcap ) )
+       selinux? ( sys-libs/libselinux )
+"
+DEPEND="${COMMON_DEPEND}
+       >=app-misc/pax-utils-0.1.10
        !<sys-apps/sandbox-1.6
-       !<sys-apps/portage-2.1.2
-       selinux? ( sys-libs/libselinux )"
-RDEPEND="!sys-kernel/ps3-sources
+       !<sys-apps/portage-2.1.2"
+RDEPEND="${COMMON_DEPEND}
+       !sys-kernel/ps3-sources
        sys-apps/gentoo-functions
-       selinux? ( sys-libs/libselinux )
        !sys-libs/nss-db"
 
 if [[ ${CATEGORY} == cross-* ]] ; then
index 3263afea8618688897330a20c6aa46cae20c5674..7ec51135a9b7d81bb4594d38fcd66c01c6f35147 100644 (file)
@@ -30,7 +30,7 @@ GCC_BOOTSTRAP_VER="4.7.3-r1"
 PATCH_VER=""                                   # Gentoo patchset
 : ${NPTL_KERN_VER:="2.6.32"}                   # min kernel version nptl requires
 
-IUSE="debug gd hardened multilib nscd +rpc selinux systemtap profile suid vanilla crosscompile_opts_headers-only"
+IUSE="audit caps debug gd hardened multilib nscd +rpc selinux systemtap profile suid vanilla crosscompile_opts_headers-only"
 
 # Here's how the cross-compile logic breaks down ...
 #  CTARGET - machine that will target the binaries
@@ -64,13 +64,21 @@ SLOT="2.2"
 
 # General: We need a new-enough binutils/gcc to match upstream baseline.
 # arch: we need to make sure our binutils/gcc supports TLS.
-DEPEND=">=app-misc/pax-utils-0.1.10
+COMMON_DEPEND="
+       nscd? ( selinux? (
+               audit? ( sys-process/audit )
+               caps? ( sys-libs/libcap )
+       ) )
+       suid? ( caps? ( sys-libs/libcap ) )
+       selinux? ( sys-libs/libselinux )
+"
+DEPEND="${COMMON_DEPEND}
+       >=app-misc/pax-utils-0.1.10
        !<sys-apps/sandbox-1.6
-       !<sys-apps/portage-2.1.2
-       selinux? ( sys-libs/libselinux )"
-RDEPEND="!sys-kernel/ps3-sources
+       !<sys-apps/portage-2.1.2"
+RDEPEND="${COMMON_DEPEND}
+       !sys-kernel/ps3-sources
        sys-apps/gentoo-functions
-       selinux? ( sys-libs/libselinux )
        !sys-libs/nss-db"
 
 if [[ ${CATEGORY} == cross-* ]] ; then