Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266015 - Sandbox violations during generation of Grammar pickle of dev-python/sphinx
Summary: Sandbox violations during generation of Grammar pickle of dev-python/sphinx
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal with 1 vote (vote)
Assignee: Python Gentoo Team
URL: https://bitbucket.org/birkenfeld/sphi...
Whiteboard:
Keywords:
: 266325 290943 299770 302445 310855 311069 314997 315575 321787 322097 322397 341153 341541 351870 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-13 15:27 UTC by Andrey Grozin
Modified: 2011-01-16 23:32 UTC (History)
20 users (show)

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


Attachments
build log (dev-python:jinja2-2.1.1:20090414-045650.log,4.78 KB, text/plain)
2009-04-13 22:02 UTC, Andrey Grozin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Grozin gentoo-dev 2009-04-13 15:27:48 UTC
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
Comment 1 Andrey Grozin gentoo-dev 2009-04-13 17:54:39 UTC
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.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-13 19:30:31 UTC
Please post your "emerge --info" and attach the build.log file of the failed emerges to this bug.
Comment 3 Andrey Grozin gentoo-dev 2009-04-13 21:59:37 UTC
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
Comment 4 Andrey Grozin gentoo-dev 2009-04-13 22:02:03 UTC
Created attachment 188272 [details]
build log

For example, the log of emerge jinja2 (for mpmath, sympy they are similar).
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-16 04:24:38 UTC
You did run python-updater after the upgrade, right?
Comment 6 Andrey Grozin gentoo-dev 2009-04-16 07:50:04 UTC
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.
Comment 7 Sébastien Fabbro (RETIRED) gentoo-dev 2009-04-17 11:07:55 UTC
*** Bug 266325 has been marked as a duplicate of this bug. ***
Comment 8 Tiziano Müller (RETIRED) gentoo-dev 2009-05-13 08:58:41 UTC
Fixed in 0.6.1-r1.
Comment 9 Andrey Grozin gentoo-dev 2009-10-15 16:27:43 UTC
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
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-30 14:15:20 UTC
*** Bug 290943 has been marked as a duplicate of this bug. ***
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-30 14:24:19 UTC
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).
Comment 12 Vadim Fint 2009-11-10 14:04:47 UTC
Confirmed, reinstalling sphinx (0.6.3) solves problem. Although I didnt updated python recently.
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-05 16:15:16 UTC
*** Bug 299770 has been marked as a duplicate of this bug. ***
Comment 14 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-28 13:04:28 UTC
*** Bug 302445 has been marked as a duplicate of this bug. ***
Comment 15 Steffen Hau 2010-01-28 14:53:22 UTC
After updating sphinx to 0.6.4, the sandbox violation disappeared and e.g.
jinj2 could be merged successfully with the doc useflag set.
Comment 16 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-23 15:56:21 UTC
*** Bug 310855 has been marked as a duplicate of this bug. ***
Comment 17 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-23 16:00:54 UTC
*** Bug 310933 has been marked as a duplicate of this bug. ***
Comment 18 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-03-24 08:06:22 UTC
*** Bug 311069 has been marked as a duplicate of this bug. ***
Comment 19 Helmut Jarausch 2010-03-24 10:26:04 UTC
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.
Comment 20 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-04-13 16:00:41 UTC
*** Bug 314997 has been marked as a duplicate of this bug. ***
Comment 21 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-04-16 12:55:26 UTC
*** Bug 315575 has been marked as a duplicate of this bug. ***
Comment 22 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-05-28 15:21:44 UTC
*** Bug 321787 has been marked as a duplicate of this bug. ***
Comment 23 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-05-30 15:09:16 UTC
*** Bug 322097 has been marked as a duplicate of this bug. ***
Comment 24 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-06-01 21:10:48 UTC
*** Bug 322397 has been marked as a duplicate of this bug. ***
Comment 25 Rafael Martins (RETIRED) gentoo-dev 2010-10-15 23:24:55 UTC
*** Bug 341153 has been marked as a duplicate of this bug. ***
Comment 26 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-10-18 00:28:03 UTC
*** Bug 341541 has been marked as a duplicate of this bug. ***
Comment 27 Nikolaj Šujskij 2010-10-18 08:00:32 UTC
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.
Comment 28 Simone 2010-10-20 10:02:56 UTC
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.
Comment 29 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-06 22:18:36 UTC
Fixed in dev-python/sphinx-1.0.6.
Comment 30 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-16 22:35:26 UTC
*** Bug 351870 has been marked as a duplicate of this bug. ***