Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299688 - app-admin/eselect-python: Set a+rx permissions on /usr/bin/python-config to work around systems with broken configuration of umask
Summary: app-admin/eselect-python: Set a+rx permissions on /usr/bin/python-config to w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2010-01-05 01:58 UTC by Michiel
Modified: 2010-03-21 22:02 UTC (History)
1 user (show)

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 Michiel 2010-01-05 01:58:20 UTC
When switching between python versions eselect-python resets the permissions on /usr/bin/python-config to root's umask. While root has a umask that does not permit 'others' to execute root's files, emerge of ebuilds that need python fail. This happens only when building as another user than root ofcourse. In my case I think it's caused by FEATURES='usersandbox userpriv', which compiles as user portage:portage.

What it comes down to is that user portage should have the ability to execute the file /usr/bin/python-config.

Reproducible: Always

Steps to Reproduce:
1. Set root's umask to 0027.
2. Set FEATURES='userpriv usersandbox'
3. Change python profile with eselect-python
4. Emerge some ebuild that needs python. dev-python/numpy for instance.

Actual Results:  
This error:
>>> Compiling source in /var/tmp/portage/dev-python/numpy-1.3.0-r2/work/numpy-1.3.0 ...
/var/tmp/portage/dev-python/numpy-1.3.0-r2/temp/environment: line 4831: /usr/bin/python-config: Permission denied
 * ERROR: dev-python/numpy-1.3.0-r2 failed:
 *   '/usr/bin/python-config' isn't valid script

Expected Results:  
A successful emerge.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-21 12:07:11 UTC
Fixed in r314.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-21 22:02:44 UTC
Fixed in app-admin/eselect-python-20100321.