Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486264 - dev-python/stevedore-0.12 - distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: mkdir('/var/tmp/portage/dev-python/stevedore-0.12/work/stevedore-0.12-python[._.]/pbr.egg-info', 511) {}
Summary: dev-python/stevedore-0.12 - distutils.errors.DistutilsError: Setup script exi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 488842 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-28 05:03 UTC by Mike Nerone
Modified: 2014-03-01 02:15 UTC (History)
2 users (show)

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


Attachments
dev-python/stevedore-0.12 build log with sandbox violation (build.log,13.40 KB, text/x-log)
2013-09-28 05:06 UTC, Mike Nerone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Nerone 2013-09-28 05:03:57 UTC
See attached build log.

# emerge --info '=dev-python/stevedore-0.12::gentoo'
Portage 2.2.1 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.15-r3, 3.10.7-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-3840QM_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:    32774788 total,  12373680 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 28 Sep 2013 01:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.6.8-r3, 2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo miramir gamerlay humble niftyrepo steam-overlay nerone-gentoo valkyrie local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
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="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --with-bdeps y --binpkg-respect-use=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect 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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed,-z,now,--hash-style=gnu,--sort-common"
MAKEOPTS="-j9"
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/miramir /var/lib/layman/gamerlay /var/lib/layman/humble /var/lib/layman/niftyrepo /var/lib/layman/steam /var/lib/nerone-gentoo-overlay /var/lib/valkyrie-overlay /usr/local/portage"
USE="X a52 aac acl acpi alsa amd64 audiofile avahi bash-completion berkdb branding bzip2 cairo caps cdaudio cdda cddb cdparanoia cdr cleartype cli consolekit cracklib crypt css cups curl cxx dbus declarative dri dts dv dvd dvdr dvdread emboss encode exif faac faad fam fame fastcgi fat fbsplash ffmpeg fftw firefox flac flash fortran ftp gd gdbm geoip gif git glib glut gmp gnutls gphoto2 gpm gtk hbci iconv icu idn imagemagick imap imlib ipv6 ithreads jack javascript jfs jpeg kde kdehiddenvisibility kipi lame laptop lcms libnotify lighttpd live lzo mad matroska mcal memlimit mjpeg mmap mmx mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses network nls nntp nptl nsplugin ntfs offensive ofx ogg openexr opengl pam pango pch pcre pdf phonon physfs plasma png policykit postgres ppds pulseaudio python python3 qt3support qt4 rackspace rdesktop readline real reiserfs resolvconf rtc schroedinger sdl semantic-desktop session slp speex spell sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg symlink syslog taglib theora threads threadsafe thunderbird tidy tiff tk truetype udev udisks unicode upower usb utempter utf8 v4l vaapi vcd vhosts video vim-syntax vnc vorbis webdav win32codecs wps wxwidgets x264 xattr xcb xcomposite xinerama xml xosd 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="alias auth_basic authn_alias authn_default authn_file authz_default authz_groupfile authz_host authz_user autoindex dav dav_fs dir env expires headers include info log_config mime mime_magic negotiation proxy proxy_http rewrite setenvif status unique_id" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="directory" 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 ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" NERONE_USERS="mike" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

# emerge -pqv '=dev-python/stevedore-0.12::gentoo'
[ebuild     U ] dev-python/stevedore-0.12 [0.11] USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_2 -pypy2_0 -python3_3"
Comment 1 Mike Nerone 2013-09-28 05:06:07 UTC
Created attachment 359660 [details]
dev-python/stevedore-0.12 build log with sandbox violation
Comment 2 Mike Nerone 2013-09-28 05:16:41 UTC
BTW, I checked and this does not happen with dev-python/stevedore-0.11. The ebuilds are identical, so this is caused by an upstream change.
Comment 3 Mike Nerone 2013-09-28 05:49:28 UTC
I see the problem. Look at stevedore 0.12's setup.py: it has a new dependency on pbr[1]. The build attempts to download and install pbr to satisfy the dependency, and it tries to install it outside the stevedore build sandbox, hence boom. I reattempted building stevedore-0.12 with dev-python/pbr-0.5.21 (which is in the tree but unstable) preinstalled, and it works fine that way (which might well explain why this wasn't caught before).

So, what probably needs to happen is to add dev-python/pbr as a build dep in stevedore-0.12.ebuild (note that setup.py specifies a version range for the dep) and either

A. Stabilize dev-python/pbr; or

B. Revert the stabilization of dev-python/stevedore-0.12 until dev-python/pbr is stable.

[1] https://pypi.python.org/pypi/pbr/
Comment 4 Mike Nerone 2013-09-28 05:52:07 UTC
Sorry, I'm being a bonehead and confused myself. dev-python/stevedore is not stable, so ignore the stabilization bits of my last comment. stevedore-0.12.ebuild simply needs to dep dev-python/pbr (perhaps with the version range).
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-10-21 14:05:37 UTC
*** Bug 488842 has been marked as a duplicate of this bug. ***
Comment 6 Ewoud Kohl van Wijngaarden 2014-02-15 17:35:32 UTC
Though not mentioned in any Changelog message, it is in $DEPEND for stevedore-0.12 so I think this can be closed.
Comment 7 Tim Harder gentoo-dev 2014-03-01 02:15:48 UTC
Should be fixed in the tree since pbr is now a build dep.