Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483054 - dev-python/numpydoc-0.4 installs egg-info with insufficient permissions
Summary: dev-python/numpydoc-0.4 installs egg-info with insufficient permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-30 19:54 UTC by Martin von Gagern
Modified: 2013-09-07 19:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2013-08-30 19:54:39 UTC
Installing dev-python/werkzeug-0.9.4 failed for me:

  File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 1426, in _get
    stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/usr/lib64/python2.6/site-packages/numpydoc-0.4-py2.6.egg-info/entry_points.txt'
 * ERROR: dev-python/werkzeug-0.9.4::gentoo failed (compile phase):

The cause seems to be permissions on those files:

$ ls -la /usr/lib64/python2.6/site-packages/numpydoc-0.4-py2.6.egg-info/
total 68
drwxr-xr-x   2 root root  4096 30. Aug 21:26 .
drwxr-xr-x 181 root root 32768 30. Aug 21:09 ..
-rw-r-----   1 root root     1 30. Aug 21:26 dependency_links.txt
-rw-r-----   1 root root    77 30. Aug 21:26 entry_points.txt
-rw-r-----   1 root root     1  1. Okt 2010  not-zip-safe
-rw-r-----   1 root root   480 30. Aug 21:26 PKG-INFO
-rw-r-----   1 root root    15 30. Aug 21:26 requires.txt
-rw-r-----   1 root root   445 30. Aug 21:26 SOURCES.txt
-rw-r-----   1 root root     9 30. Aug 21:26 top_level.txt

The most likely cause for these seem to be the file permissions as stored in the numpydoc tarball.

$ tar tvf numpydoc-0.4.tar.gz | cut -d\  -f-2 | sort | uniq -c
      3 drwxr-x--- pauli/pauli
     23 -rw-r----- pauli/pauli

So here is how I fixed this for myself:

# ebuild /usr/portage/dev-python/numpydoc/numpydoc-0.4.ebuild clean prepare
# chmod -R a+r /var/tmp/portage/dev-python/numpydoc-0.4/work/numpydoc-0.4
# ebuild /usr/portage/dev-python/numpydoc/numpydoc-0.4.ebuild merge

After doing this, the permissions were as expected, and werkzeug emerged fine. I suggest you add a custom src_unpack function to the numpydoc ebuild, and do that chmod there.
Comment 1 Mike Gilbert gentoo-dev 2013-09-07 19:00:24 UTC
I just ran into this myself.

*numpydoc-0.4-r1 (07 Sep 2013)

  07 Sep 2013; Mike Gilbert <floppym@gentoo.org> +numpydoc-0.4-r1.ebuild,
  -numpydoc-0.4.ebuild:
  Fix permissions on egg-info files.