Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145729 - [tetex] app-text/tetex sandbox violation during install phase if done independently after test phase failure
Summary: [tetex] app-text/tetex sandbox violation during install phase if done indepen...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 227443
  Show dependency tree
 
Reported: 2006-08-31 10:06 UTC by Kevin F. Quinn (RETIRED)
Modified: 2009-05-30 00:48 UTC (History)
1 user (show)

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


Attachments
emerge/ebuild log (app-text:tetex-2.0.2-r9:20060831-161252.log.bz2,134.96 KB, application/octet-stream)
2006-08-31 10:12 UTC, Kevin F. Quinn (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin F. Quinn (RETIRED) gentoo-dev 2006-08-31 10:06:05 UTC
Install phase tries to put stuff directly into the live filesystem:

/bin/install -c -m 644 ./mktex.opt /home/portage/tmp/portage/tetex-2.0.2-r9/image//usr/share/texmf/web2c/mktex.opt
/bin/install -c ./mktexdir /home/portage/tmp/portage/tetex-2.0.2-r9/image//usr/share/texmf/web2c/mktexdir
/bin/install -c -m 644 ./mktexdir.opt /home/portage/tmp/portage/tetex-2.0.2-r9/image//usr/share/texmf/web2c/mktexdir.opt
/bin/install -c ./mktexnam /home/portage/tmp/portage/tetex-2.0.2-r9/image//usr/share/texmf/web2c/mktexnam
/bin/install -c -m 644 ./mktexnam.opt /home/portage/tmp/portage/tetex-2.0.2-r9/image//usr/share/texmf/web2c/mktexnam.opt
/bin/install -c ./mktexupd /home/portage/tmp/portage/tetex-2.0.2-r9/image//usr/share/texmf/web2c/mktexupd
libtool --mode=install /bin/install -c -m 644 libkpathsea.la /usr/lib64
/bin/install -c -m 644 .libs/libkpathsea.so.0.0.0 /usr/lib64/libkpathsea.so.0.0.0
ACCESS DENIED  open_wr:   /usr/lib64/libkpathsea.so.0.0.0
/bin/install: cannot create regular file `/usr/lib64/libkpathsea.so.0.0.0': Permission denied
make[2]: *** [install-exec] Error 1
make[2]: Leaving directory `/home/portage/tmp/portage/tetex-2.0.2-r9/work/tetex-src-2.0.2/texk/kpathsea'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/portage/tmp/portage/tetex-2.0.2-r9/work/tetex-src-2.0.2/texk'
make: *** [install] Error 1

!!! ERROR: app-text/tetex-2.0.2-r9 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_install
  ebuild.sh, line 1017:   Called src_install
  tetex-2.0.2-r9.ebuild, line 50:   Called tetex-2_src_install
  tetex-2.eclass, line 71:   Called tetex_src_install
  tetex.eclass, line 181:   Called tetex_src_install 'all'
  tetex.eclass, line 256:   Called tetex_src_install 'base' 'doc' 'fixup'
  tetex.eclass, line 195:   Called einstall 'bindir=/home/portage/tmp/portage/tetex-2.0.2-r9/image//usr/bin' 'texmf=/home/portage/tmp/portage/tetex-2.0.2-r9/image//usr/share/texmf'
  ebuild.sh, line 578:   Called die

!!! einstall failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-app-text_-_tetex-2.0.2-r9-6072.log"

open_wr:   /usr/lib64/libkpathsea.so.0.0.0
--------------------------------------------------------------------------------

Full build log to follow.

Portage 2.1.1_rc1 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3800+
Gentoo Base System version 1.12.4
Last Sync: Sun, 27 Aug 2006 16:50:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8 -ggdb2 -Wall"
CHOST="x86_64-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="-O2 -pipe -march=k8 -ggdb2 -Wall"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks installsources metadata-transfer multilib-strict parallel-fetch sandbox sfperms splitdebug strict stricter test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.osuosl.org/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en de fr it se"
MAKEOPTS="-j2"
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="/home/portage/tmp"
PORTDIR="/home/portage/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa arts avi berkdb bitmap-fonts bzip2 cairo cdr cli crypt cups dbus dlloader dri dts dv dvb dvd dvdr dvdread elibc_glibc encode fam fbcon ffmpeg firefox flac fortran gdbm gif gpm gtk gtk2 hal ieee1394 imagemagick imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kdeenablefinal kernel_linux ldap libg++ linguas_de linguas_en linguas_en_GB linguas_fr linguas_it linguas_se mad mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pda pdflib perl png povray ppds pppd python qt3 qt4 quicktime readline reflection ruby samba scanner sdl session spell spl ssl svg tcl tcltk tcpd test theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l vcd video_cards_nv video_cards_vesa video_cards_vga vorbis xinerama xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Kevin F. Quinn (RETIRED) gentoo-dev 2006-08-31 10:12:55 UTC
Created attachment 95566 [details]
emerge/ebuild log

emerge originally run with FEATURES="test"; failed (see bug #68878).  Subsequently did:

FEATURES="-test" ebuild ...tetex-2.0.2-r9.ebuild install qmerge

and the results of that are at the end of the same log.

(log attached bzip2 - sorry, bugzilla wouldn't allow it as a text file; too big).

Looks like a configure/makefile error.
Comment 2 Martin Ehmsen (RETIRED) gentoo-dev 2006-08-31 10:41:45 UTC
tetex-3 is soon going stable os i'm not going to spend much time fixing this bug if it's not also present in tetex-3.
If I remember correctly I have done extensive testing to ensure that FEATURES=test works with tetex-3 (it is very broken in tetex-2), but could you please try tetex-3 and see if it works in that version?
Comment 3 Kevin F. Quinn (RETIRED) gentoo-dev 2006-08-31 13:27:17 UTC
Tried app-text/tetex-3.0-r4, but it shows the same sandbox error during the install phase.  Should be reproduceable; just install with the sandbox enabled.  Tests were running fine; ran out of time so killed that (I'll run them overnight) and proceeded to install to see if the sandbox error was still there:

/bin/install -c -m 644 ./mktex.opt /home/portage/tmp/portage/tetex-3.0-r4/image//var/lib/texmf/web2c/mktex.opt
/bin/install -c ./mktexdir /home/portage/tmp/portage/tetex-3.0-r4/image//var/lib/texmf/web2c/mktexdir
/bin/install -c -m 644 ./mktexdir.opt /home/portage/tmp/portage/tetex-3.0-r4/image//var/lib/texmf/web2c/mktexdir.opt
/bin/install -c ./mktexnam /home/portage/tmp/portage/tetex-3.0-r4/image//var/lib/texmf/web2c/mktexnam
/bin/install -c -m 644 ./mktexnam.opt /home/portage/tmp/portage/tetex-3.0-r4/image//var/lib/texmf/web2c/mktexnam.opt
/bin/install -c ./mktexupd /home/portage/tmp/portage/tetex-3.0-r4/image//var/lib/texmf/web2c/mktexupd
'libtool' --mode=install /bin/install -c -m 644 libkpathsea.la /usr/lib64
/bin/install -c -m 644 .libs/libkpathsea.so.4.0.0 /usr/lib64/libkpathsea.so.4.0.0
ACCESS DENIED  open_wr:   /usr/lib64/libkpathsea.so.4.0.0
/bin/install: cannot create regular file `/usr/lib64/libkpathsea.so.4.0.0': Permission denied
make[2]: *** [install-exec] Error 1
make[2]: Leaving directory `/home/portage/tmp/portage/tetex-3.0-r4/work/tetex-src-3.0/texk/kpathsea'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/portage/tmp/portage/tetex-3.0-r4/work/tetex-src-3.0/texk'
make: *** [install] Error 1

!!! ERROR: app-text/tetex-3.0-r4 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_install
  ebuild.sh, line 1017:   Called src_install
  tetex-3.0-r4.ebuild, line 41:   Called tetex-3_src_install
  tetex-3.eclass, line 153:   Called tetex_src_install
  tetex.eclass, line 181:   Called tetex_src_install 'all'
  tetex.eclass, line 256:   Called tetex_src_install 'base' 'doc' 'fixup'
  tetex.eclass, line 195:   Called einstall 'bindir=/home/portage/tmp/portage/tetex-3.0-r4/image//usr/bin' 'texmf=/home/portage/tmp/portage/tetex-3.0-r4/image//var/lib/texmf'
  ebuild.sh, line 578:   Called die

!!! einstall failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-app-text_-_tetex-3.0-r4-17734.log"

open_wr:   /usr/lib64/libkpathsea.so.4.0.0
--------------------------------------------------------------------------------
Comment 4 Kevin F. Quinn (RETIRED) gentoo-dev 2006-09-01 10:09:24 UTC
hmm; how long do the tests take to run?  It has been sitting here:

./mft ./tests/io; mv io.tex tests/io.tex
/home/portage/tmp/portage/tetex-3.0-r4/work/tetex-src-3.0/texk/web2c/.libs/lt-mft: fatal: mft file `plain.mft' not found.
This is MFT, Version 2.0 (Web2C 7.5.4)
./patgen ./tests/dict ./tests/patterns tests/xpatout \
   ./tests/translate <./tests/patgen.in

for some 16 hours so far...  Does it do that "mft file `plain.mft` not found" error for you?
Comment 5 Martin Ehmsen (RETIRED) gentoo-dev 2006-09-01 10:44:34 UTC
I haven't done anything for tests in 3.0. The tests are only supposed to be fixed in 3.0_p1.
Try the lastest version available... And it shouldn't take more than an hour (at most... depends on your box).
Comment 6 Kevin F. Quinn (RETIRED) gentoo-dev 2006-09-02 01:41:12 UTC
OK; something interesting to report.

If I do:

FEATURES="-test" emerge =app-text/tetex-3.0_p1-r3

it installs fine, no sandbox error.  However if I do:

emerge =app-text/tetex-3.0_p1-r3
(fails at test phase)
ebuild .../app-text/tetex/tetex-3.0_p1-r3 install qmerge

then I get the sandbox violation during install.


Looking at the logs it's clear that in the first case everything is fine:

'libtool' --mode=install /bin/install -c -m 644 libkpathsea.la /home/portage/tmp/portage/tetex-3.0_p1-r3/image/usr/lib64
/bin/install -c -m 644 .libs/libkpathsea.so.4.0.0 /home/portage/tmp/portage/tetex-3.0_p1-r3/image/usr/lib64/libkpathsea.so.4.0.0

but in the second case something odd is happening; those same lines are:

'libtool' --mode=install /bin/install -c -m 644 libkpathsea.la /usr/lib64
/bin/install -c -m 644 .libs/libkpathsea.so.4.0.0 /usr/lib64/libkpathsea.so.4.0.0

which is clearly wrong.


It's the same for all versions.  I have no idea how the behaviour changes from one to the other.



Regarding the tests in general, I tried on x86 but while the test phase didn't die, there's lots of stuff in the log that looks like the tests didn't all work properly.
Comment 7 Martin Ehmsen (RETIRED) gentoo-dev 2006-09-03 01:59:01 UTC
The first thing looks strange and should be investigated further.

The issue about tests that does not look like they pass, that is a known issus and is in large not fixable. The tests that does not pass are not critical (if they were they would terminate the install).
I have only fixed the tests that didn't work and were critical. At the time I had better things to do than fix tests :-)
Comment 8 Fabian Groffen gentoo-dev 2007-03-29 08:16:50 UTC
I got the same in prefix, but the order didn't matter.  The makefiles simply don't look "DESTDIR" enabled, so I had to patch the eclass to override more paths to get sandbox happy.

http://overlays.gentoo.org/proj/alt/changeset/4765

(Please ignore the ED, it's D in non-prefix)
Comment 9 Pacho Ramos gentoo-dev 2009-05-18 21:18:30 UTC
tetex was dropped, maybe this should be closed
Comment 10 Pacho Ramos gentoo-dev 2009-05-18 21:19:19 UTC
(In reply to comment #9)
> tetex was dropped, maybe this should be closed
> 

Ups, sorry for the noise, I have just seen bug 145729
Comment 11 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-05-30 00:48:07 UTC
removed from the tree, wontfix