In the course of upgrading from python-2.5 to 2.6, I also upgraded to sphinx-0.6.1. After that, emerging of several packages (dev-python/jinja2, mpmath, sympy, maybe more) with USE=doc fails in the same way. sphinx_build wants to write /usr/lib/python2.6/site-packages/sphinx/pycode/Grammar2.6.1final.0.pickle and sandbox, naturally, complains. This problem did not exist with sphinx-0.5.2 (and with python-2.5, haven't tested with 2.6). Reproducible: Always
Followup: the combination python-2.6.1/sphinx-0.5.2 works OK, I've successfully emerged jinja2, mpmath, and sympy with it. So, the problem is in sphinx-0.6.1.
Please post your "emerge --info" and attach the build.log file of the failed emerges to this bug.
gdh-zimmer201 ~ # emerge --info Portage 2.2_rc29 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-tuxonice i686) ================================================================= System uname: Linux-2.6.29-tuxonice-i686-Intel-R-_Pentium-R-_M_processor_1400MHz-with-gentoo-2.0.0 Timestamp of tree: Sat, 11 Apr 2009 14:45:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1 dev-lang/python: 2.5.4-r2, 2.6.1-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.9 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" FFLAGS="-O2 -march=pentium-m" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/" LANG="C" LDFLAGS="-Wl,-O1" LINGUAS="ru" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/layman/lisp /usr/local/layman/science /usr/local/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac acl acpi alsa bash-completion berkdb blas bluetooth boehm-gc branding browserplugin bzip2 cairo cdr cli cracklib crypt css cups curl dbus doc dri dvd dvdr dvdread eds emacs emboss encode esd evo fam ffmpeg fftw firefox fltk fortran gd gdbm gif gmp gnome gpm gsl gstreamer gtk hal iconv imagemagick isdnlog jpeg kde lapack latex ldap leim libnotify mad midi mikmod mmx mozilla mp3 mpeg mudflap mule ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf perl plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session speex spell spl ssl startup-notification svg sysfs tcl tcpd tetex tiff tk truetype umfpack unicode usb vcd vorbis win32codecs wxwindows x86 xine xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 188272 [details] build log For example, the log of emerge jinja2 (for mpmath, sympy they are similar).
You did run python-updater after the upgrade, right?
Of course. I found this bug while running python-updater -i. Then I downgraded sphinx, and completed python-updater successfully. The current situation: I'm using python-2.6.1, fully python-updated. 1. With sphinx-0.6.1, if I emerge, e.g., jinja2 with USE=doc, I have the error (the log attached). 2. With sphinx-0.5.2, emerge jinja2 with USE=doc succeeds.
*** Bug 266325 has been marked as a duplicate of this bug. ***
Fixed in 0.6.1-r1.
The same sandbox violation again, now with sphinx-0.6.3. Emerging dev-python/sympy-0.6.5, I get /var/log/sandbox/sandbox-13405.log: VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: open_wr S: deny P: /usr/lib/python2.6/site-packages/sphinx/pycode/Grammar2.6.3.final.0.pickle A: /usr/lib/python2.6/site-packages/sphinx/pycode/Grammar2.6.3.final.0.pickle R: /usr/lib/python2.6/site-packages/sphinx/pycode/Grammar2.6.3.final.0.pickle C: /usr/bin/python2.6 /usr/bin/sphinx-build -b html -d _build/doctrees -D latex_paper_size= src _build/html
*** Bug 290943 has been marked as a duplicate of this bug. ***
dev-python/sphinx needs to be reinstalled after upgrade/downgrade of dev-lang/python in given slot (e.g. 2.6.3 -> 2.6.4).
Confirmed, reinstalling sphinx (0.6.3) solves problem. Although I didnt updated python recently.
*** Bug 299770 has been marked as a duplicate of this bug. ***
*** Bug 302445 has been marked as a duplicate of this bug. ***
After updating sphinx to 0.6.4, the sandbox violation disappeared and e.g. jinj2 could be merged successfully with the doc useflag set.
*** Bug 310855 has been marked as a duplicate of this bug. ***
*** Bug 310933 has been marked as a duplicate of this bug. ***
*** Bug 311069 has been marked as a duplicate of this bug. ***
I can confirm that re-emerging dev-python/sphinx-0.6.5 solved the problem here, too. Though it's strange that a pure bug fix release of Python 2.6.4-r1 -> 2.6.5 requires re-emerging of Python packages.
*** Bug 314997 has been marked as a duplicate of this bug. ***
*** Bug 315575 has been marked as a duplicate of this bug. ***
*** Bug 321787 has been marked as a duplicate of this bug. ***
*** Bug 322097 has been marked as a duplicate of this bug. ***
*** Bug 322397 has been marked as a duplicate of this bug. ***
*** Bug 341153 has been marked as a duplicate of this bug. ***
*** Bug 341541 has been marked as a duplicate of this bug. ***
I suggest adding a reminder in elog for dev-lang/python like "If you are upgrading from previous minor upstream release (e.g. 2.6.5 -> 2.6.6), re-emerge dev-python/sphinx due to bug #266015". Using "has_version dev-python/sphinx", of course. It'd inform users hitting the bug the first time and remind about solution those who already stumbled upon it.
Got hit by this one while rebuilding matplotlib after adding the "doc" use flag. I updated Python to 2.6.6-r1 and did not rebuild sphinx-1.0.3. Some kind of warning would definitely help.
Fixed in dev-python/sphinx-1.0.6.
*** Bug 351870 has been marked as a duplicate of this bug. ***