File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 1605, in _get with open(path, 'rb') as stream: PermissionError: [Errno 13] Permission denied: '/usr/lib64/python3.5/site-packages/fail2ban-0.10.3.fix1-py3.5.egg-info/PKG-INFO' * ERROR: dev-python/cloudpickle-0.3.1::gentoo failed (compile phase): * (no error message) * ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-desktop-gnome-systemd_test_20180623-161602 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.0 * Available Python interpreters, in order of preference: [1] python3.5 [2] python2.7 (fallback) java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.8.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm emerge -qpv dev-python/cloudpickle [ebuild N ] dev-python/cloudpickle-0.3.1 USE="{-test}" PYTHON_TARGETS="python2_7 python3_5 -pypy -python3_4 -python3_6"
Created attachment 537120 [details] emerge-info.txt
Created attachment 537122 [details] dev-python:cloudpickle-0.3.1:20180624-191119.log
Created attachment 537124 [details] emerge-history.txt
Created attachment 537126 [details] environment
Created attachment 537128 [details] etc.portage.tbz2
Created attachment 537130 [details] temp.tbz2
*** Bug 681198 has been marked as a duplicate of this bug. ***
*** Bug 680882 has been marked as a duplicate of this bug. ***
*** Bug 660946 has been marked as a duplicate of this bug. ***
OK, I have been able to reproduce this now. Apparently when you emerge with FEATURES=-test the problem does not show up, but with FEATURES=test it does show up on the _next_ emerge.
fail2ban/server/server.py line 99 does: os.umask(0077) so I guess that somehow affects the entire runtime when src_test() is run.
All it takes to change the umask is: fail2ban/tests/fail2banclienttestcase.py:from ..server import server
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c83d223b009069602d896da6eb321aa4ac254db commit 2c83d223b009069602d896da6eb321aa4ac254db Author: Jeroen Roovers <jer@gentoo.org> AuthorDate: 2019-03-27 09:43:19 +0000 Commit: Jeroen Roovers <jer@gentoo.org> CommitDate: 2019-03-27 09:45:02 +0000 net-analyzer/fail2ban: RESTRICT=test Fixes: https://bugs.gentoo.org/659010 Fixes: https://bugs.gentoo.org/681838 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Jeroen Roovers <jer@gentoo.org> net-analyzer/fail2ban/fail2ban-0.10.4-r1.ebuild | 110 ++++++++++++++++++++++++ net-analyzer/fail2ban/fail2ban-0.10.4.ebuild | 9 +- net-analyzer/fail2ban/fail2ban-99999999.ebuild | 7 +- 3 files changed, 113 insertions(+), 13 deletions(-)