patch[1] to portage introduced whitespace that isnt just plain ' ' to the PORTAGE_XATTR_EXCLUDE variable. install-xattr fails to ignore the type right after the tab (in this case security.selinux). Attaching a patch with the fix. Thanks to BinaryKhaos for reporting and helping to debug. [1]: https://archives.gentoo.org/gentoo-portage-dev/message/418cdac9c42bfb1f15864dec245ebbe9 Reproducible: Always Steps to Reproduce: 1. selinux makes the issue really obvious, but should be possible to detect other ways 2. if using <portage-2.2.20, set PORTAGE_XATTR_EXCLUDE in make.conf and put tabs in it for portage 2.2.20, make.globals already has a tab char in by default. 3. emerge cmake 3.2.2 Actual Results: install-xattr: setxattr() failed: Permission denied !!! doins: /usr/portage/dev-util/cmake/files/cmake.vim does not exist * ERROR: dev-util/cmake-3.2.2::gentoo failed (install phase): * doins failed SELinux denial: type=AVC msg=audit(1432821983.222:279238): avc: denied { relabelto } for pid=27805 comm="install-xattr" name="cmake.vim" dev="md3" ino=15664836 scontext=staff_u:sysadm_r:portage_sandbox_t tcontext=system_u:object_r:portage_ebuild_t tclass=file Expected Results: should install correctly
Created attachment 404180 [details, diff] [PATCH] misc/install-xattr: ignore all whitespace in PORTAGE_XATTR_EXCLUDE Patch to ignore all types of whitespace.
Committed. Please test =sys-apps/install-xattr-9999. If its good, I'll push out another release.
install-xattr-9999 works on my machine. thanks! Should portage dep on >=install-xattr-0.5 then?
(In reply to Jason Zaman from comment #3) > install-xattr-9999 works on my machine. thanks! > > Should portage dep on >=install-xattr-0.5 then? i haven't pushed out 0.5. And even then, it needs some testing.
Sorry for the delay: Installed it on my system too, did some random tests (as well as the initial failure case naturally) and so far all is good and working fine. If anything comes up, I will report back.
*** Bug 551038 has been marked as a duplicate of this bug. ***
install-xattr-0.5 is now out with this fix for testing.
(In reply to Anthony Basile from comment #7) > install-xattr-0.5 is now out with this fix for testing. It hasn't been a full month but its a small enough change. Let's stabilize. arch team please target: KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86"
stable for ppc and ppc64
amd64 stable
x86 stable
Stable for HPPA.
arm stable
alpha stable
ia64 stable
sparc stable
ping @arm64. do you want this since I need to drop 0.4 from the tree.
sorry arm64, i'm giving up on you :< i've keyword masked 0.4 for all by arm64.