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

Bug 165034

Summary: portage-2.1.2-r6 causes sandbox violations on chmod
Product: Gentoo Linux Reporter: Gregg Casillo <gregg.casillo>
Component: [OLD] PrintingAssignee: Portage team <dev-portage>
Status: VERIFIED FIXED    
Severity: normal CC: alex, farcaller, rauchwolke, troworld
Priority: High Keywords: InVCS, REGRESSION
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 162453    

Description Gregg Casillo 2007-02-02 19:45:27 UTC
I get the following "ACCESS VIOLATION SUMMARY" when attempting to emerge ghostscript-gpl-8.54:

Unpacking gdevhl12.c.gz to /var/tmp/portage/app-text/ghostscript-gpl-8.54/work
ACCESS DENIED  chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/ltmain.sh
ACCESS DENIED  chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/config.guess
ACCESS DENIED  chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/install-sh
ACCESS DENIED  chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/config.sub
ACCESS DENIED  chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/missing
ACCESS DENIED  chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/mkinstalldirs
 * Applying gdevcups.patch ...                                                                                                                                        [ ok ]
 * Applying ghostscript-afpl-8.54-cups-destdir.diff ...                                                                                                               [ ok ]
 * Applying ghostscript-afpl-8.54-cups-lib.patch ...                                                                                                                  [ ok ]
 * Applying ghostscript-afpl-8.54-big-cmap-post.patch ...                                                                                                             [ ok ]
 * Applying ghostscript-afpl-8.54-ps2epsi-afpl.diff ...                                                                                                               [ ok ]
 * Applying ghostscript-afpl-8.54-rinkj.patch ...                                                                                                                     [ ok ]
 * Applying ghostscript-afpl-8.54-destdir.diff ...                                                                                                                    [ ok ]
 * Applying ghostscript-afpl-8.54-gtk2.patch ...                                                                                                                      [ ok ]
 * Applying ghostscript-afpl-8.54-segfault.patch ...                                                                                                                  [ ok ]
>>> Source unpacked.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-app-text_-_ghostscript-gpl-8.54-14786.log"

chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/ltmain.sh (symlink to /usr/share/libtool/ltmain.sh)
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/config.guess (symlink to /usr/share/gnuconfig/config.guess)
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/install-sh (symlink to /usr/share/automake-1.6/install-sh)
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/config.sub (symlink to /usr/share/gnuconfig/config.sub)
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/missing (symlink to /usr/share/automake-1.6/missing)
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/mkinstalldirs (symlink to /usr/share/automake-1.6/mkinstalldirs)
--------------------------------------------------------------------------------

The sandbox log is as follows:
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/ltmain.sh (symlink to /usr/share/libtool/ltmain.sh)
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/config.guess (symlink to /usr/share/gnuconfig/config.guess)
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/install-sh (symlink to /usr/share/automake-1.6/install-sh)
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/config.sub (symlink to /usr/share/gnuconfig/config.sub)
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/missing (symlink to /usr/share/automake-1.6/missing)
chmod:     /var/tmp/portage/app-text/ghostscript-gpl-8.54/work/ghostscript-8.54-gpl/ijs/mkinstalldirs (symlink to /usr/share/automake-1.6/mkinstalldirs)


Reproducible: Always

Steps to Reproduce:
1. emerge ghostscript-gpl-8.54
2. emerge brakes with "ACCESS VIOLATION SUMMARY"
3.

Actual Results:  
emerge braked.

Expected Results:  
emerge succeeded.

emerge --info:

Portage 2.1.2-r6 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r3 i686)
=================================================================
System uname: 2.6.19-gentoo-r3 i686 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System version 1.12.9
Timestamp of tree: Fri, 02 Feb 2007 17:00:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://gentoo.chem.wisc.edu/gentoo/ ftp://mirror.datapipe.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa arts asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr cli cracklib crypt ctype cups dlloader dri dv dvd dvdr dvdread encode ffmpeg flac foomaticdb frontendonly ftp gdbm gif iconv imap imlib innodb ip4100 jpeg kde kdeenablefinal kdexdeltas lcms libg++ libwww live lm_sensors logrotate mad maildir matroska midi mime mmx mmxext mng mp3 mpeg mysql ncurses nls nptl nptlonly nvidia ogg oggvorbis openal opengl pcre pdf perl png python qt qt3 quicktime readline sdl session smp speex spl sse sse2 ssl subversion svg syslog tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vhosts vorbis win32codecs x264 x86 xine xinerama xml xml2 xorg xv xvid xvmc zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexander Thier 2007-02-02 21:13:06 UTC
I have this problem with all versions of ghostscript (gpl, esp...)
Comment 2 Herbert Wantesh 2007-02-02 21:28:07 UTC
me too
Comment 3 Christian Heim (RETIRED) gentoo-dev 2007-02-03 07:31:41 UTC
This looks like a portage bug, 2.1.1-r2 works fine for me, 2.1.2-r6 is borked.
Comment 4 Christian Heim (RETIRED) gentoo-dev 2007-02-03 07:33:41 UTC
(In reply to comment #3)
> This looks like a portage bug, 2.1.1-r2 works fine for me, 2.1.2-r6 is borked.

Looks like a bug in 2.1.2-r6, 2.1.2-r5 works just fine.
Comment 5 Zac Medico gentoo-dev 2007-02-03 10:52:48 UTC
This is fixed in svn r5877.  I've punted 2.1.2-r6 from the tree.
Comment 6 Zac Medico gentoo-dev 2007-02-03 14:17:44 UTC
This has been released in 2.1.2-r7.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-02-06 14:44:40 UTC
*** Bug 165625 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-02-07 21:22:59 UTC
*** Bug 165831 has been marked as a duplicate of this bug. ***