Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659010 - dev-python/cloud dev-python/cloudpickle-0.3.1 : PermissionError: [Errno 13] Permission denied: /usr/lib64/python3.5/site-packages/fail2ban-0.10.3.fix1-py3.5.egg-info/PKG-INFO
Summary: dev-python/cloud dev-python/cloudpickle-0.3.1 : PermissionError: [Errno 13] P...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 660946 680882 681198 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-24 19:13 UTC by Toralf Förster
Modified: 2023-06-04 06:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.78 KB, text/plain)
2018-06-24 19:13 UTC, Toralf Förster
Details
dev-python:cloudpickle-0.3.1:20180624-191119.log (dev-python:cloudpickle-0.3.1:20180624-191119.log,5.86 KB, text/plain)
2018-06-24 19:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,43.58 KB, text/plain)
2018-06-24 19:13 UTC, Toralf Förster
Details
environment (environment,135.47 KB, text/plain)
2018-06-24 19:13 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.15 KB, application/x-bzip)
2018-06-24 19:13 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,30.10 KB, application/x-bzip)
2018-06-24 19:13 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-06-24 19:13:34 UTC
  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"
Comment 1 Toralf Förster gentoo-dev 2018-06-24 19:13:36 UTC
Created attachment 537120 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-06-24 19:13:39 UTC
Created attachment 537122 [details]
dev-python:cloudpickle-0.3.1:20180624-191119.log
Comment 3 Toralf Förster gentoo-dev 2018-06-24 19:13:42 UTC
Created attachment 537124 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-06-24 19:13:45 UTC
Created attachment 537126 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-06-24 19:13:48 UTC
Created attachment 537128 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-06-24 19:13:51 UTC
Created attachment 537130 [details]
temp.tbz2
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-22 16:58:59 UTC
*** Bug 681198 has been marked as a duplicate of this bug. ***
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-22 16:59:15 UTC
*** Bug 680882 has been marked as a duplicate of this bug. ***
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-22 16:59:25 UTC
*** Bug 660946 has been marked as a duplicate of this bug. ***
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-27 09:12:18 UTC
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.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-27 09:20:32 UTC
fail2ban/server/server.py line 99 does:

                os.umask(0077)

so I guess that somehow affects the entire runtime when src_test() is run.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-27 09:39:45 UTC
All it takes to change the umask is:

fail2ban/tests/fail2banclienttestcase.py:from ..server import server
Comment 13 Larry the Git Cow gentoo-dev 2019-03-27 09:45:09 UTC
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(-)