Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 256834

Summary: java-config triggers sandbox violations with sys-apps/sandbox-1.3.3 due to missing .pyc files
Product: Gentoo Linux Reporter: Patrizio Bassi <patrizio.bassi>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED DUPLICATE    
Severity: normal CC: python, sandbox, spam-hierher, tommy
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 256953    
Bug Blocks: 256823    

Description Patrizio Bassi 2009-01-29 19:51:58 UTC
/mnt/Dati/Gentoo/tmp/portage/sys-devel/gcc-4.3.3/work/build /mnt/Dati/Gentoo/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3                                                             
>>> Source compiled.                                                                                                                                                                    
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-23920.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: unlink
S: deny
P: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
A: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
R: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
C: /usr/bin/python -E /usr/bin/java-config-2 --runtime

F: unlink
S: deny
P: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
A: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
R: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
C: /usr/bin/python -E /usr/bin/java-config-2 --runtime

F: unlink
S: deny
P: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
A: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
R: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
C: /usr/bin/python -E /usr/bin/java-config-2 --runtime

F: unlink
S: deny
P: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
A: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
R: /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.pyc
C: /usr/bin/python -E /usr/bin/java-config-2 --runtime
--------------------------------------------------------------------------------

>>> Failed to emerge sys-devel/gcc-4.3.3, Log file:

>>>  '/mnt/Dati/Gentoo/tmp/portage/sys-devel/gcc-4.3.3/temp/build.log'

 * GNU info directory index is up-to-date.
Comment 1 Patrizio Bassi 2009-01-29 19:52:46 UTC
o
Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28 x86_64)
=================================================================                                     
System uname: Linux-2.6.28-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-glibc2.2.5               
Timestamp of tree: Thu, 29 Jan 2009 17:15:01 +0000                                                    
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                             
ccache version 2.4 [disabled]                                                                         
app-shells/bash:     3.2_p48                                                                          
dev-java/java-config: 1.3.7-r1, 2.1.7                                                                 
dev-lang/python:     2.5.4-r2                                                                         
dev-python/pycrypto: 2.0.1-r6                                                                         
dev-util/ccache:     2.4-r8                                                                           
dev-util/cmake:      2.6.2-r1                                                                         
sys-apps/baselayout: 2.0.0                                                                            
sys-apps/openrc:     0.4.2                                                                            
sys-apps/sandbox:    1.3.3
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.19
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /usr/lib/mozilla/defaults/pref /usr/share/config /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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="-O3 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="39"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/mnt/Dati/Gentoo/tmp/"
PORTDIR="/mnt/Dati/Gentoo/portage/"
PORTDIR_OVERLAY="/usr/local/portage/myportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib ace acl acpi alias alsa amd64 ao apache2 audacious bash-completion berkdb branding bzip2 cairo caps cddb cdio cdparanoia cdr chroot clamav cli connectionstatus cracklib crypt cscope css ctype cups curl custom-cpuopts custom-optimization cvs daemon dbus dga dhcp directfb divx djbfft dri dvd dvdr dvdread eds emboss encode evo exif expat fam ffmpeg fftw firefox firefox3 flac fortran ftp gcj gd gdbm gif glibc-omitfp glitz glut gnutls google-gadgets gpm gstreamer gtk hal hddtemp iconv idn ipod ipv6 irc isdnlog java java6 javascript jpeg jpeg2k justify kde kde4 kdeenablefinal kdehiddenvisibility kqemu lame ldap libnotify libv4l2 lilo live lm_sensors lzo mad matroska mdnsresponder-compat midi mikmod mime mmx mmxext mng mono mozdevelop mozilla mp3 mp4 mp4live mpeg mpeg2 mplayer msn mudflap multilib musepack mysql ncurses network networkmanager nls nntp nptl nptlonly nsplugin ntfs nvidia oav ogg opengl openmp openssl pam pcre pdf perl php plasma png ppds pppd python qt3support qt4 quicktime readline reflection reiserfs rtc samba scanner sdl server session slang smp sockets socks5 speex spell spl sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tao tcpd theora tiff truetype unicode usb userlocales v4l v4l2 vhook vorbis wma wmf wxwindows x264 xanim xcomposite xine xml xorg xpm xprint xsl xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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="keyboardmouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="vga nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 SpanKY gentoo-dev 2009-01-29 20:36:56 UTC
python will need to install a file into /etc/sandbox.d/ like so:
SANDBOX_PREDICT="/usr/lib/python2.0/:/usr/lib/python2.1/:/usr/lib/python2.2/:/usr/lib/python2.3/:/usr/lib/python2.4/:/usr/lib/python2.5/:/usr/lib/python3.0/"

obviously a more fine tuned value would be appropriate ...

also, i think java-config itself is broken because it should have already done a compile of /usr/lib64/python2.5/site-packages/java_config_2/OutputFormatter.py which means there is no need for it to be done otherwise ...

maybe python team thinks we should just avoid the sandbox.d entry though as this will force us to fix the random broken packages out there rather than silently ignoring them ?
Comment 3 Serkan Kaba (RETIRED) gentoo-dev 2009-01-30 17:32:26 UTC
I guess this is not java-config only. See bug #256953.
Comment 4 SpanKY gentoo-dev 2009-01-30 21:39:16 UTC
any package that does not properly handle .pyc compiles will trigger might trigger a violation

personally, i think we should just fix the packages in question rather than ignoring the issue by adding a predict in python
Comment 5 Andreas Bulling 2009-02-01 08:24:33 UTC
one of these packages seems to be eclipse-sdk-3.4-r2.
See http://forums.gentoo.org/viewtopic-p-5439470.html for details
Comment 6 SpanKY gentoo-dev 2009-02-02 05:02:15 UTC
*** Bug 256823 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2009-02-07 12:03:45 UTC
for now, we'll assume it's the same problem as Bug 256953

*** This bug has been marked as a duplicate of bug 256953 ***