(Bug for tracking related bugs) Gentoo portage can use one of two install-xattr implementations (PORTAGE_INSTALL_XATTR_IMPLEMENTATION): “c” (default, from package “sys-apps/install-xattr”) and “python” (built in implementation). Both implementations incorrectly process “-Z” flag, which may lead to failed build (installation phase). As I understand “install-xattr” tries to mimic “install” from package “sys-apps/coreutils” with some additional “xattr” features. According “install” manual, it have following flags related selinux to set selinux context: -Z : set default selinux context (no any options!!!) --context : set default selinux context --context=CTX : set selinux context to CTX But (due programmers’ sloppiness?) in “python” case option for “-Z” flag is required but in “c” case it is allowed for “-Z” flag to have optional options, which lead to strange errors.
I don't really see the need for a tracker for two bugs. Assigning this back to you since there's nothing for the Portage team to do on this.
IMHO - install-xattr is important part of portage on Selinux systems - because blocker bugs may lead to very different strange errors (depending on package), _ALL_ open bugs related to build fails at installation phase on Selinux profiles must be considered as blockers of this bug - until dependant bugs are fixed, portage on Selinux profiles should be considered broken. - Portage team is responsible for portage If you do not agree, please close this bug.
*** This bug has been marked as a duplicate of bug 699548 ***