Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533968 - sys-libs/cracklib-2.9.1-r1 USE=python without dev-python/pip - The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted.
Summary: sys-libs/cracklib-2.9.1-r1 USE=python without dev-python/pip - The package se...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-29 20:45 UTC by Chris Folsom
Modified: 2014-12-30 16:50 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 Chris Folsom 2014-12-29 20:45:07 UTC
Installing sys-libs/cracklib-2.9.1-r1 fails when python use flag is set. Pip is not pulled in as a dependency by portage, but when the build runs, easy_install attempts to fetch pip and install it outside the sandbox causing the build to fail.

Reproducible: Always

Steps to Reproduce:
1. euse -E python
2. emerge -C dev-python/pip
3. emerge sys-libs/cracklib
Actual Results:  
creating /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image/_python2.7
creating /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image/_python2.7/usr
creating /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image/_python2.7/usr/lib64
creating /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image/_python2.7/usr/lib64/python2.7
creating /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image/_python2.7/usr/lib64/python2.7/site-packages
copying /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/work/cracklib-2.9.1-abi_x86_64.amd64-python2_7/lib/test_cracklib.py -> /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image//_python2.7/usr/lib64/python2.7/site-packages
copying /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/work/cracklib-2.9.1-abi_x86_64.amd64-python2_7/lib/cracklib.py -> /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image//_python2.7/usr/lib64/python2.7/site-packages
copying /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/work/cracklib-2.9.1-abi_x86_64.amd64-python2_7/lib/_cracklib.so -> /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image//_python2.7/usr/lib64/python2.7/site-packages
byte-compiling /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image//_python2.7/usr/lib64/python2.7/site-packages/test_cracklib.py to test_cracklib.pyc
byte-compiling /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image//_python2.7/usr/lib64/python2.7/site-packages/cracklib.py to cracklib.pyc
writing byte-compilation script '/var/tmp/portage/sys-libs/cracklib-2.9.1-r1/temp/tmp5Vv9gR.py'
/usr/bin/python2.7 -OO /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/temp/tmp5Vv9gR.py
removing /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/temp/tmp5Vv9gR.py
running install_egg_info
running egg_info
creating /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/work/cracklib-2.9.1-abi_x86_64.amd64-python2_7/cracklib.egg-info
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 6.0.3
Downloading https://pypi.python.org/packages/source/p/pip/pip-6.0.3.tar.gz#md5=1ca6788e57a176abbdf6d99d69f54ae0
Processing pip-6.0.3.tar.gz
Writing /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/temp/easy_install-1NMkT2/pip-6.0.3/setup.cfg
Running pip-6.0.3/setup.py -q bdist_egg --dist-dir /var/tmp/portage/sys-libs/cracklib-2.9.1-r1/temp/easy_install-1NMkT2/pip-6.0.3/egg-dist-tmp-1eItJM
error: Setup script exited with error: SandboxViolation: mkdir('/var/tmp/portage/sys-libs/cracklib-2.9.1-r1/work/cracklib-2.9.1-abi_x86_64.amd64-python2_7/pip.egg-info', 511) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
 [31;01m*[0m ERROR: sys-libs/cracklib-2.9.1-r1::gentoo failed (install phase):
 [31;01m*[0m   (no error message)
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line   93:  Called src_install
 [31;01m*[0m   environment, line 4578:  Called multilib-minimal_src_install
 [31;01m*[0m   environment, line 3086:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 [31;01m*[0m   environment, line 3273:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 [31;01m*[0m   environment, line 2905:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 [31;01m*[0m   environment, line 2903:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 [31;01m*[0m   environment, line  605:  Called multilib-minimal_abi_src_install
 [31;01m*[0m   environment, line 3076:  Called multilib_src_install
 [31;01m*[0m   environment, line 3501:  Called do_python
 [31;01m*[0m   environment, line 1418:  Called distutils-r1_src_install
 [31;01m*[0m   environment, line 1332:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_install'
 [31;01m*[0m   environment, line  397:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_install'
 [31;01m*[0m   environment, line 4171:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
 [31;01m*[0m   environment, line 2905:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
 [31;01m*[0m   environment, line 2903:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_install'
 [31;01m*[0m   environment, line  882:  Called distutils-r1_run_phase 'distutils-r1_python_install'
 [31;01m*[0m   environment, line 1301:  Called distutils-r1_python_install
 [31;01m*[0m   environment, line 1228:  Called esetup.py 'install' '--root=/var/tmp/portage/sys-libs/cracklib-2.9.1-r1/image//_python2.7'
 [31;01m*[0m   environment, line 2074:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       "${@}" || die
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=sys-libs/cracklib-2.9.1-r1::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=sys-libs/cracklib-2.9.1-r1::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/sys-libs/cracklib-2.9.1-r1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/sys-libs/cracklib-2.9.1-r1/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/sys-libs/cracklib-2.9.1-r1/work/cracklib-2.9.1-abi_x86_64.amd64/python'
 [31;01m*[0m S: '/var/tmp/portage/sys-libs/cracklib-2.9.1-r1/work/cracklib-2.9.1'

Expected Results:  
PIP is pulled in as part of the dependency tree when python use flag is set or installation proceeds using setuptools without installing pip.

Work around: Manually install pip.
Comment 1 Mike Gilbert gentoo-dev 2014-12-30 02:21:18 UTC
Given that the reporter filed two similar bugs consecutively, this is likely the same issue as bug 533970. I suspect that something is wrong with his system.