Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561266 - =dev-python/google-apputils-0.4.2: wrong file perms on site-packages/ at hardened
Summary: =dev-python/google-apputils-0.4.2: wrong file perms on site-packages/ at hard...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-23 13:57 UTC by Toralf Förster
Modified: 2015-09-27 13:08 UTC (History)
1 user (show)

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


Attachments
emerge log (dev-python-mysqlclient-1.3.6-20150923-133926.log,7.77 KB, text/plain)
2015-09-23 13:57 UTC, Toralf Förster
Details
emerge --info (info.txt,6.51 KB, text/plain)
2015-09-23 13:58 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 2015-09-23 13:57:42 UTC
Created attachment 412638 [details]
emerge log

realized this on the 2nd chroot image in a row here at my tinderbox :

-rw-r----- 1 root root 7 Sep 23 14:55 amd64-kde-unstable_20150918-212343/usr/lib64/python2.7/site-packages/google_apputils-0.4.2-py2.7.egg-info/namespace_packages.txt



This yields into breakages like :

    return yield_lines(self.get_metadata(name))
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1617, in get_metadata
    return self._get(self._fn(self.egg_info, name))
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1728, in _get
    with open(path, 'rb') as stream:
IOError: [Errno 13] Permission denied: '/usr/lib64/python2.7/site-packages/google_apputils-0.4.2-py2.7.egg-info/namespace_packages.txt'
 * ERROR: dev-python/mysqlclient-1.3.6::gentoo failed (compile phase):
 *   (no error message)

example attached
Comment 1 Toralf Förster gentoo-dev 2015-09-23 13:58:31 UTC
Created attachment 412640 [details]
emerge --info
Comment 2 Toralf Förster gentoo-dev 2015-09-23 14:40:36 UTC
FWIW all fiels in that dir are affected, this helps :

chmod a+r amd64-kde-unstable_20150918-212343//usr/lib64/python2.7/site-packages/google_apputils-0.4.2-py2.7.egg-info/*
Comment 3 Toralf Förster gentoo-dev 2015-09-23 18:56:46 UTC
The perms are wrong immediately after install :

# ls -l /usr/lib64/python2.7/site-packages/google_apputils-0.4.2-py2.7.egg-info/
total 28
-rw-r----- 1 root root    1 Sep 23 20:54 dependency_links.txt
-rw-r----- 1 root root  175 Sep 23 20:54 entry_points.txt
-rw-r----- 1 root root    7 Sep 23 20:54 namespace_packages.txt
-rw-r----- 1 root root  247 Sep 23 20:54 PKG-INFO
-rw-r----- 1 root root   51 Sep 23 20:54 requires.txt
-rw-r----- 1 root root 1131 Sep 23 20:54 SOURCES.txt
-rw-r----- 1 root root    7 Sep 23 20:54 top_level.txt

but just at one of 7 images AFAICT - so if you need more info ....
Comment 4 Toralf Förster gentoo-dev 2015-09-26 09:24:47 UTC

*** This bug has been marked as a duplicate of bug 561546 ***
Comment 5 Mike Gilbert gentoo-dev 2015-09-27 12:51:21 UTC
commit 7d482d7eae4fd3b807a7a4a4ebbf09cb9e25700d
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun Sep 27 08:49:12 2015 -0400

    dev-python/google-apputils: Fix permissions on unpacked files
    
    Bug: https://bugs.gentoo.org/561266
    
    Package-Manager: portage-2.2.22_p3

 ...google-apputils-0.4.0.ebuild => google-apputils-0.4.0-r1.ebuild} | 6 ++++++
 ...google-apputils-0.4.2.ebuild => google-apputils-0.4.2-r1.ebuild} | 6 ++++++
 2 files changed, 12 insertions(+)