Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 569962

Summary: dev-python/six-1.10.0: loadsaveenv: line 496: temp//python2.7/.pydistutils.cfg: Permission denied
Product: Gentoo Linux Reporter: Lennart Brinkmann <lebrinkma>
Component: [OLD] LibraryAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: alex_y_xu
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: cave install log

Description Lennart Brinkmann 2015-12-28 11:03:26 UTC
Installing dev-python/six-1.10.0 with an alternative package manager like paludis fails with an permission error.

In pkg_setup() the python_foreach_impl function creates working directories und files required for the build, eg. python2.7.
This phase is run with root privileges (according to https://devmanual.gentoo.org/ebuild-writing/functions/pkg_setup/index.html), so these are owned by root.

The src_compile phase is runing as the builduser (https://devmanual.gentoo.org/ebuild-writing/functions/src_compile/index.html) and thus can't create files in those directories, see attached log.

This bug was not present in 1.9.0-r1.

Reproducible: Always

Steps to Reproduce:
1. use paludis as the package manager
2. cave resolve -1xz dev-python/six
Actual Results:  
dev-python/six installation fails with an permission error, see attached log.

Expected Results:  
dev-python/six is installed successfully.
Comment 1 Lennart Brinkmann 2015-12-28 11:04:19 UTC
Created attachment 420980 [details]
cave install log
Comment 2 Mike Gilbert gentoo-dev 2015-12-28 16:28:30 UTC
commit ee672ed083b9ef11353088e6b6252c28404d38c7
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Mon Dec 28 11:27:15 2015 -0500

    dev-python/six: Remove pkg_setup check
    
    Running python_foreach_impl from pkg_setup causes more problems
    than it is worth.
    
    Bug: https://bugs.gentoo.org/569962
    
    Package-Manager: portage-2.2.26_p32

 dev-python/six/six-1.10.0.ebuild | 10 ----------
 1 file changed, 10 deletions(-)