Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 124927

Summary: sys-apps/coreutils-5.94-r1 ignores USE="-acl"
Product: Gentoo Linux Reporter: Torsten Kaiser <Storklerk>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Torsten Kaiser 2006-03-04 03:27:09 UTC
The ebuild of coreutils-5.94-r1 ignorese the acl useflag.

From coreutils-5.93:
        # Apply the ACL/SELINUX patches.
        if use selinux ; then
                EPATCH_MULTI_MSG="Applying SELINUX patches ..." \
                EPATCH_SUFFIX="patch" epatch "${PATCHDIR}"/selinux
                ( cd "${PATCHDIR}" ; epatch selinux/GLUE* ) || die "glue failed"
        elif use acl ; then
                EPATCH_MULTI_MSG="Applying ACL patches ..." \
                EPATCH_SUFFIX="patch" epatch "${PATCHDIR}"/acl
        fi

From coreutils-5.94-r1:
        # Apply the ACL/SELINUX patches.
        if use selinux ; then
                EPATCH_MULTI_MSG="Applying SELINUX patches ..." \
                EPATCH_SUFFIX="patch" epatch "${PATCHDIR}"/selinux
                ( cd "${PATCHDIR}" ; epatch selinux/GLUE* ) || die "glue failed"
        else
                EPATCH_MULTI_MSG="Applying ACL patches ..." \
                EPATCH_SUFFIX="patch" epatch "${PATCHDIR}"/acl
        fi

The "elif use acl ; then" was replaced by a lone "else"
This will build any non-selinux system with acl, but --depclean will happylie remove sys-apps/acl if the acl useflag is missing.
This will break the complete system, as things like ls and mv will no longer work.

Changing the mentioned line back, will build programs not depending on libacl.so.1
Comment 1 Luca Barbato gentoo-dev 2006-03-04 14:17:46 UTC
added this bit, vapier, please doublecheck