Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-29 16:44 UTC by Chris Folsom
Modified: 2014-12-29 16:53 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 16:44:12 UTC
If you enable the python use flag without pip installed, several packages will attempt to install pip on their own. This causes a write outside of the sandbox and the build fails. If you manually install pip, then the packages will build normally. It seems like either these packages should change or enabling the python use flag should pull in pip as a dependency for these packages. 

I had this issue with the following packages:

dev-python/cython-cython-0.21
sys-libs/cracklib-2.9.1-r1
dev-python/zope-interface-4.1.1


Log file Attached.


emerge --info

Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.19-r1, 3.16.5-gentoo x86_64)
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-3610QM_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem:    16405308 total,  13002492 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Mon, 29 Dec 2014 12:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.3.5-r1
dev-util/ccache:          3.1.9-r4
dev-util/cmake:           2.8.12.2-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4::pentoo
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo pentoo palemoon ixit enlightenment
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pentoo /var/lib/layman/palemoon /var/lib/layman/ixit /var/lib/layman/enlightenment"
USE="X a52 aac acl acpi alsa amd64 aspell atmo berkdb bindist branding bzip2 cairo cdda cdr cli consolekit cracklib crypt css cups cxx dbus declarative directfb dri dts dvd dvdr emboss encode exif fam fbcon ffmpeg firefox flac fortran gdbm gif glamor gpm gstreamer gtk hardened iconv icu inotify ipv6 jpeg kde kipi lcms ldap libcaca libnotify mad mmx mng modules mozilla mp3 mp4 mpeg mplayer mtp multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio python qt3support qt4 quicktime razor readline sdl semantic-desktop session sftp skins sound spell sqlite sqlite3 sse sse2 sse3 sse4 ssh ssl startup-notification svg tcpd tiff truetype udev udisks unicode upnp upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xpm xrandr xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Chris Folsom 2014-12-29 16:49:52 UTC
I couldn't attach the log file. Here's the relevant section:

/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Scanning.py to Scanning.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Options.py to Options.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/TreeFragment.py to TreeFragment.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Parsing.py to Parsing.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Optimize.py to Optimize.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/FlowControl.py to FlowControl.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/FusedNode.py to FusedNode.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/TypeSlots.py to TypeSlots.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/CythonScope.py to CythonScope.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Interpreter.py to Interpreter.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/ModuleNode.py to ModuleNode.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Errors.py to Errors.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Annotate.py to Annotate.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Pipeline.py to Pipeline.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/__init__.py to __init__.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Main.py to Main.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/UtilityCode.py to UtilityCode.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/CmdLine.py to CmdLine.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Builtin.py to Builtin.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/ParseTreeTransforms.py to ParseTreeTransforms.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/AnalysedTreeTransforms.py to AnalysedTreeTransforms.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Naming.py to Naming.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/PyrexTypes.py to PyrexTypes.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Future.py to Future.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/UtilNodes.py to UtilNodes.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/TreePath.py to TreePath.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/Lexicon.py to Lexicon.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Compiler/AutoDocTransforms.py to AutoDocTransforms.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/TestUtils.py to TestUtils.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Build/Dependencies.py to Dependencies.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Build/Inline.py to Inline.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Build/Cythonize.py to Cythonize.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Build/Tests/TestIpythonMagic.py to TestIpythonMagic.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Build/Tests/__init__.py to __init__.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Build/Tests/TestInline.py to TestInline.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Build/Tests/TestStripLiterals.py to TestStripLiterals.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Build/__init__.py to __init__.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Build/IpythonMagic.py to IpythonMagic.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Build/BuildExecutable.py to BuildExecutable.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/__init__.py to __init__.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/StringIOTree.py to StringIOTree.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Debugger/libcython.py to libcython.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Debugger/libpython.py to libpython.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Debugger/Tests/TestLibCython.py to TestLibCython.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Debugger/Tests/test_libpython_in_gdb.py to test_libpython_in_gdb.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Debugger/Tests/test_libcython_in_gdb.py to test_libcython_in_gdb.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Debugger/Tests/__init__.py to __init__.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Debugger/__init__.py to __init__.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Debugger/DebugWriter.py to DebugWriter.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Debugger/Cygdb.py to Cygdb.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Tempita/_looper.py to _looper.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Tempita/_tempita.py to _tempita.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Tempita/__init__.py to __init__.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Tempita/compat3.py to compat3.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/CodeWriter.py to CodeWriter.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Utility/__init__.py to __init__.pyc
byte-compiling /var/tmp/portage/dev-python/cython-0.21/image//_python2.7/usr/lib64/python2.7/site-packages/Cython/Utils.py to Utils.pyc
writing byte-compilation script '/var/tmp/portage/dev-python/cython-0.21/temp/tmpa6fVBr.py'
/usr/bin/python2.7 -OO /var/tmp/portage/dev-python/cython-0.21/temp/tmpa6fVBr.py
removing /var/tmp/portage/dev-python/cython-0.21/temp/tmpa6fVBr.py
running install_egg_info
running egg_info
creating /var/tmp/portage/dev-python/cython-0.21/work/Cython-0.21-python2_7/Cython.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/dev-python/cython-0.21/temp/easy_install-9xeq_W/pip-6.0.3/setup.cfg
Running pip-6.0.3/setup.py -q bdist_egg --dist-dir /var/tmp/portage/dev-python/cython-0.21/temp/easy_install-9xeq_W/pip-6.0.3/egg-dist-tmp-SakSL8
error: Setup script exited with error: SandboxViolation: mkdir('/var/tmp/portage/dev-python/cython-0.21/work/Cython-0.21-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: dev-python/cython-0.21::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 4092:  Called distutils-r1_src_install
 [31;01m*[0m   environment, line 1323:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_install'
 [31;01m*[0m   environment, line  288:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_install'
 [31;01m*[0m   environment, line 3582:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
 [31;01m*[0m   environment, line 2699:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
 [31;01m*[0m   environment, line 2697:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_install'
 [31;01m*[0m   environment, line  791:  Called distutils-r1_run_phase 'distutils-r1_python_install'
 [31;01m*[0m   environment, line 1292:  Called distutils-r1_python_install
 [31;01m*[0m   environment, line 1219:  Called esetup.py 'install' '--root=/var/tmp/portage/dev-python/cython-0.21/image//_python2.7'
 [31;01m*[0m   environment, line 1773:  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 '=dev-python/cython-0.21::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-python/cython-0.21::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-python/cython-0.21/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-python/cython-0.21/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/dev-python/cython-0.21/work/Cython-0.21'
 [31;01m*[0m S: '/var/tmp/portage/dev-python/cython-0.21/work/Cython-0.21'
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-29 16:53:46 UTC
ev-python/cython-cython-0.21
sys-libs/cracklib-2.9.1-r1
dev-python/zope-interface-4.1.1

Please file separate bug reports for separate packages.