Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38500 - Sandbox-violation with pdflib-5.0.2
Summary: Sandbox-violation with pdflib-5.0.2
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 39096 39101 39148 39199 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-17 04:19 UTC by Thomas Seifert
Modified: 2004-05-10 02:49 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Seifert 2004-01-17 04:19:33 UTC
Trying to emerge pdflib-5.0.2 leads to sandbox violations (looking like perl and tcl-related).


make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/java'
make[3]: Entering directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/perl'
../../../libtool --silent --mode=install \
        ../../../config/install-sh -c -m 644 pdflib_pl.la /usr/lib/perl5/site_perl/5.8.2/i686-linux
ACCESS DENIED  open_wr:   /usr/lib/perl5/site_perl/5.8.2/i686-linux/#inst.21905#
cp: cannot create regular file `/usr/lib/perl5/site_perl/5.8.2/i686-linux/#inst.21905#': Permission denied
make[3]: *** [install] Error 1
make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/perl'
make[3]: Entering directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/python'
cp: cannot create regular file `/usr/lib/python2.3/lib-dynload/#inst.21947#': Permission denied
make[3]: [install] Error 1 (ignored)
make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/python'
make[3]: Entering directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/tcl'
if test ! -d /usr/lib/tcl8.4/pdflib ; then      \
    mkdir -p /usr/lib/tcl8.4/pdflib;            \
    chmod 755 /usr/lib/tcl8.4/pdflib;           \
fi
ACCESS DENIED  mkdir:     /usr/lib/tcl8.4/pdflib
mkdir: cannot create directory `/usr/lib/tcl8.4/pdflib': Permission denied
chmod: failed to get attributes of `/usr/lib/tcl8.4/pdflib': No such file or directory
make[3]: *** [install] Error 1
make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/tcl'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind'
make[1]: Entering directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/progs'
make[2]: Entering directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/progs/pdflib'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/progs/pdflib'
make[1]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/progs'
./config/install-sh -c pdflib-config /var/tmp/portage/pdflib-5.0.2/image//usr/bin
install: `doc/pdflib' is a directory
gzip: /var/tmp/portage/pdflib-5.0.2/image/usr/share/doc/pdflib-5.0.2/pdflib: No such file or directory
install: cannot stat `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/java/pdflib.java': No such file or directory
mv: cannot stat `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/java/pdflib.java': No such file or directory
error: cannot read: com/pdflib/pdflib.java
1 error
com/pdflib/*.class : no such file or directory
man:
prepallstrip:
strip: 
strip: 
making executable: /usr/lib/libpdf.so.2.2.0
making executable: /usr/lib/libpdf_java.so.0.0.0
>>> Completed installing into /var/tmp/portage/pdflib-5.0.2/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-pdflib-5.0.2-21455.log"

open_wr:   /usr/lib/perl5/site_perl/5.8.2/i686-linux/#inst.21905#
mkdir:     /usr/lib/tcl8.4/pdflib
--------------------------------------------------------------------------------


Reproducible: Always
Steps to Reproduce:
1. try to emerge pdflib-5.0.2 ;)
Actual Results:  
getting errors about sandbox violations

Expected Results:  
clean build

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.
                        1)
=================================================================
System uname: 2.6.1 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.12
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled
                        ]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1
                        /share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm                         /config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /us        
                r/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/
/var/bind /var/qmail/con                         trol"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc fixpackages sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://linux.rz.ruhr
                        -uni-bochum.de/download/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/ge                         ntoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticd
                        b gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg kde
libg++ libwww mad mikmod                          motif mozilla mpeg mysql
ncurses nls oggvorbis opengl oss pam pdflib perl png p                        
ostgres python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex t
                        ruetype x86 xml2 xmms xv zlib"
Comment 1 Thomas Seifert 2004-01-17 04:26:54 UTC
USE="-tcltk -perl" emerge pdflib

helped as a workaround, still the problem should be solved somewhen ;).
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-22 14:02:08 UTC
fixed in portage
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-22 20:06:04 UTC
*** Bug 39101 has been marked as a duplicate of this bug. ***
Comment 4 Chris Russell (RETIRED) gentoo-dev 2004-01-23 03:05:12 UTC
*** Bug 39096 has been marked as a duplicate of this bug. ***
Comment 5 John Robinson 2004-01-23 18:35:38 UTC
This isn't fixed for me. I can't change the status from RESOLVED FIXED though.

...
libtool: install: warning: remember to run `libtool --finish /usr/lib'
Copy pdflib.jar and javadoc to an appropriate directory,
and include pdflib.jar in your CLASSPATH.
make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/java'
make[3]: Entering directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/perl'
../../../libtool --silent --mode=install \
        ../../../config/install-sh -c -m 644 pdflib_pl.la /usr/lib/perl5/site_perl/5.8.0/i586-linux
ACCESS DENIED  open_wr:   /usr/lib/perl5/site_perl/5.8.0/i586-linux/#inst.21653#
cp: cannot create regular file `/usr/lib/perl5/site_perl/5.8.0/i586-linux/#inst.21653#': Permission denied
make[3]: *** [install] Error 1
make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/perl'
make[3]: Entering directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/python'
cp: cannot create regular file `/usr/lib/python2.2/lib-dynload/#inst.21695#': Permission denied
make[3]: [install] Error 1 (ignored)
make[3]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib/python'
make[2]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/pdflib'
make[1]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind'
make[1]: Entering directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/progs'
make[2]: Entering directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/progs/pdflib'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/progs/pdflib'
make[1]: Leaving directory `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/progs'
./config/install-sh -c pdflib-config /var/tmp/portage/pdflib-5.0.2/image//usr/bin
install: `doc/pdflib' is a directory
gzip: /var/tmp/portage/pdflib-5.0.2/image/usr/share/doc/pdflib-5.0.2/pdflib: No such file or directory
install: cannot stat `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/java/pdflib.java': No such file or directory
mv: cannot stat `/var/tmp/portage/pdflib-5.0.2/work/PDFlib-Lite-5.0.2-Unix-src/bind/java/pdflib.java': No such file or directory
error: cannot read: com/pdflib/pdflib.java
1 error
com/pdflib/*.class : no such file or directory
man:
prepallstrip:
strip:
strip:
making executable: /usr/lib/libpdf.so.2.2.0
making executable: /usr/lib/libpdf_java.so.0.0.0
>>> Completed installing into /var/tmp/portage/pdflib-5.0.2/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-pdflib-5.0.2-21366.log"

open_wr:   /usr/lib/perl5/site_perl/5.8.0/i586-linux/#inst.21653#
--------------------------------------------------------------------------------
#

I only `emerge sync`ed earlier today, and I've checked the ChangeLog and ebuild in my portage dir, I do appear to have the fixed version, even though the version/release didn't change, indeed the fixed fixed version of 23 Jan "sandbox fix0rs, properly this time".

NB on my system, USE="-X -avi -gnome -gtk -kde -motif -opengl -qt -xv 3dnow mmx alsa apache2 arts berkdb emacs gd gdbm gif gpm imap imlib java jikes jpeg ldap libwww mysql nls pam perl png python readline samba sasl sdl slang ssl tcpd tiff usb xml zlib".
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-23 20:04:34 UTC
reopening
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-23 20:04:57 UTC
*** Bug 39199 has been marked as a duplicate of this bug. ***
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-23 20:07:06 UTC
# $Header: /home/cvsroot/gentoo-x86/media-libs/pdflib/pdflib-5.0.2.ebuild,v 1.9 
2004/01/24 01:31:31 seemant Exp $


in the ebuild is the most recent working version (seems to me to be).

as for the javac issue from bug 39199, I'm not sure why that's failing, since it requires a virtual/jdk-1.3 or greater to be installed if "java" in USE.  Can the reporter check where the javac executable is?
Comment 9 John Robinson 2004-01-24 03:16:09 UTC
Thanks Seemant, it was the v1.7 ebuild which failed for me, and v1.9 builds fine for me now.

FYI, my system has javac at /opt/blackdown-jdk-1.4.1/bin/javac, I can imagine that if you emerged a java then tried to emerge pdflib but you hadn't run env-update and sourced /etc/profile in between, the javac wouldn't be on your path.
Comment 10 SpanKY gentoo-dev 2004-01-24 18:49:32 UTC
*** Bug 39148 has been marked as a duplicate of this bug. ***
Comment 11 Henrik Falk 2004-01-27 12:41:17 UTC
I still have this error.
As i just created my account here, i am not sure what information to post.
Here is the header of pdflib-5.0.2.ebuild.

$Header: /home/cvsroot/gentoo-x86/media-libs/pdflib/pdflib-5.0.2.ebuild,v 1.12 2004/01/26 16:32:54 scandium Exp $
Comment 12 Rainer Größlinger (RETIRED) gentoo-dev 2004-04-09 08:42:24 UTC
hu? :)
I think I am the wrong person to assign this bug to.
I just once changed a line in DEPEND because the python depend wasn't correct anymore in 4.0.3-r1 and 5.0.2 and I was in the header line then because since nothing else was changed anymore (when the last comment here was posted).

See:
http://www.gentoo.org/cgi-bin/viewcvs.cgi/media-libs/pdflib/pdflib-5.0.2.ebuild?r1=1.11&r2=1.12


I don't know who is the correct person to assign this to, since seemant doesn't seem to want it anymore ;-)
Comment 13 Rainer Größlinger (RETIRED) gentoo-dev 2004-04-17 04:03:36 UTC
re-assigning to bug-wranglers, see comment #12
Comment 14 Daniel Black (RETIRED) gentoo-dev 2004-04-25 23:38:18 UTC
Has this been solved? I had no problems. Henrik if you have problems can you try emerge -uUvD pdflib. If that fails can you paste an emerge info and a java-config -v

Thanks.
Comment 15 Mr. Bones. (RETIRED) gentoo-dev 2004-05-10 02:49:43 UTC
Works for me and no input for a while.