Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54084 - gforth-0.5.0 emerge fails due to sandboxing error
Summary: gforth-0.5.0 emerge fails due to sandboxing error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-16 07:06 UTC by J.C. Wren
Modified: 2004-07-28 18:12 UTC (History)
0 users

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 J.C. Wren 2004-06-16 07:06:48 UTC
ebuild is attempting to write the gforth.el file (something emacs related) outside of the sandbox file system.

Reproducible: Always
Steps to Reproduce:
1.  emerge =gforth-0.5.0


Actual Results:  
sed 's:^\/var/tmp/portage/gforth-0.5.0/work/gforth-0.5.0/:
/var/tmp/portage/gforth-0.5.0/image//usr/share/gforth/0.5.0/:' gforth.TAGS 
>install.TAGS
for i in /var/tmp/portage/gforth-0.5.0/image//usr/bin /var/tmp/portage/gforth-0.
5.0/image//usr/share/man/man1 /var/tmp/portage/gforth-0.5.
0/image//usr/share/info /var/tmp/portage/gforth-0.5.0/image//usr/lib/gforth/0.5.
0 /var/tmp/portage/gforth-0.5.0/image//usr/share/gforth/0.5.0 
/var/tmp/portage/gforth-0.5.0/image//usr/lib/gforth/site-forth 
/var/tmp/portage/gforth-0.5.0/image//usr/share/gforth/site-forth; do \
                /var/tmp/portage/gforth-0.5.0/work/gforth-0.5.0/mkinstalldirs 
$i; \
        done
mkdir /var/tmp/portage/gforth-0.5.0/image/usr
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/bin
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/man
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/man/man1
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/info
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/lib
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/lib/gforth
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/lib/gforth/0.5.0
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/lib/gforth/site-forth
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/site-forth
for i in CVS engine/CVS kernel/CVS doc/CVS asm/CVS ec/CVS test/CVS compat/CVS 
arch/CVS arch/generic/CVS arch/m68k/CVS arch/mips/CVS arch/386/CVS arch/hppa/CVS 
arch/sparc/CVS arch/power/CVS arch/alpha/CVS arch/4stack/CVS arch/misc/CVS 
arch/6502/CVS arch/8086/CVS arch/avr/CVS arch/c165/CVS arch/h8/CVS 
arch/shboom/CVS arch/ia64/CVS; do \
                /var/tmp/portage/gforth-0.5.0/work/gforth-0.5.0/mkinstalldirs 
/var/tmp/portage/gforth-0.5.0/image//usr/share/gforth/0.5.0/`dirname $i`; \
        done
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/engine
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/kernel
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/doc
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/asm
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/ec
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/test
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/compat
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/generic
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/m68k
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/mips
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/386
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/hppa
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/sparc
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/power
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/alpha
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/4stack
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/misc
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/6502
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/8086
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/avr
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/c165
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/h8
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/shboom
mkdir /var/tmp/portage/gforth-0.5.0/image/usr/share/gforth/0.5.0/arch/ia64
rm -rf /var/tmp/portage/gforth-0.5.0/image//usr/share/gforth/0.5.0/engine
touch /var/tmp/portage/gforth-0.5.0/image//usr/share/gforth/site-forth/siteinit.
fs
rm /var/tmp/portage/gforth-0.5.0/image//usr/bin/gforth 
/var/tmp/portage/gforth-0.5.0/image//usr/bin/gforth-0.5.0 
/var/tmp/portage/gforth-0.5.0/image//usr/bin/gforthmi
rm: cannot remove `/var/tmp/portage/gforth-0.5.0/image//usr/bin/gforth': No such 
file or directory
rm: cannot remove `/var/tmp/portage/gforth-0.5.0/image//usr/bin/gforth-0.5.0': 
No such file or directory
rm: cannot remove `/var/tmp/portage/gforth-0.5.0/image//usr/bin/gforthmi': No 
such file or directory
make: [install] Error 1 (ignored)
rm /var/tmp/portage/gforth-0.5.0/image//usr/bin/gforth-fast 
/var/tmp/portage/gforth-0.5.0/image//usr/bin/gforth-fast-0.5.0
rm: cannot remove `/var/tmp/portage/gforth-0.5.0/image//usr/bin/gforth-fast': No 
such file or directory
rm: cannot remove `/var/tmp/portage/gforth-0.5.0/image//usr/bin/gforth-fast-0.5.
0': No such file or directory
make: [install] Error 1 (ignored)
/bin/install -c -s gforth /var/tmp/portage/gforth-0.5.0/image//usr/bin/gforth-0.
5.0
(cd /var/tmp/portage/gforth-0.5.0/image//usr/bin && ln -s gforth-0.5.0 gforth)
/bin/install -c -s gforth-fast /var/tmp/portage/gforth-0.5.
0/image//usr/bin/gforth-fast-0.5.0
(cd /var/tmp/portage/gforth-0.5.0/image//usr/bin && ln -s gforth-fast-0.5.0 
gforth-fast)
/bin/install -c gforthmi /var/tmp/portage/gforth-0.5.
0/image//usr/bin/gforthmi-0.5.0
/bin/install -c gforth-ditc /var/tmp/portage/gforth-0.5.
0/image//usr/lib/gforth/0.5.0
(cd /var/tmp/portage/gforth-0.5.0/image//usr/bin && ln -s gforthmi-0.5.0 
gforthmi)
/bin/install -c -m 644 /var/tmp/portage/gforth-0.5.0/work/gforth-0.5.
0/doc/gforth.1 /var/tmp/portage/gforth-0.5.0/image//usr/share/man/man1
for i in /var/tmp/portage/gforth-0.5.0/work/gforth-0.5.0/doc/gforth.info*; do 
/bin/install -c -m 644 $i /var/tmp/portage/gforth-0.5.0/image//usr/share/info; 
done
for i in mach16b.fs mach16l.fs mach32b.fs mach32l.fs mach64b.fs mach64l.fs 
machpc.fs kernel/aliases0.fs kernel/aliases.fs kernel/args.fs chains.fs 
kernel/cbr.fs kernel/cloop.fs kernel/cond.fs kernel/cond-old.fs cross.fs 
kernel/errore.fs kernel/files.fs kernel/require.fs kernel/paths.fs 
kernel/kernel.fs kernel/main.fs kernel/prim0.fs search.fs kernel/quotes.fs 
kernel/tools.fs kernel/toolsext.fs kernel/vars.fs kernel/accept.fs 
kernel/basics.fs kernel/int.fs kernel/comp.fs kernel/io.fs kernel/license.fs 
kernel/nio.fs kernel/saccept.fs kernel/doers.fs kernel/getdoers.fs kernel/pass.
fs assert.fs backtrac.fs blocked.fb blocks.fs bufio.fs debug.fs debugs.fs ekey.
fs savesys.fs environ.fs errors.fs exboot.fs except.fs extend.fs float.fs 
glocals.fs hash.fs history.fs intcomp.fs locals.fs look.fs search.fs see.fs 
see-ext.fs source.fs startup.fs struct.fs stuff.fs tasker.fs termsize.fs vt100.
fs vt100key.fs wordinfo.fs arch/386/asm.fs arch/386/disasm.fs arch/alpha/asm.fs 
arch/alpha/disasm.fs arch/mips/asm.fs arch/mips/disasm.fs arch/mips/insts.fs 
asm/README asm/bitmask.fs asm/numref.fs asm/basic.fs asm/generic.fs asm/target.
fs ec/README ec/mirror.fs ec/shex.fs ec/builttag.fs ec/dotx.fs ec/nesting.fs 
ans-report.fs ansi.fs answords.fs code.fs colorize.fs comp-i.fs doskey.fs 
ds2texi.fs envos.fs envos.dos envos.os2 etags.fs filedump.fs fi2c.fs glosgen.fs 
gray.fs httpd.fs make-app.fs doc/makedoc.fs more.fs other.fs prims2x.fs random.
fs table.fs string.fs tt.fs sokoban.fs unbuffer.fs wordsets.fs test/tester.fs 
test/coretest.fs test/postpone.fs test/dbltest.fs test/other.fs test/checkans.fs 
bubble.fs siev.fs matrix.fs fib.fs oof.fs oofsampl.fs objects.fs objexamp.fs 
mini-oof.fs moof-exm.fs moofglos.fs add.fs lib.fs sieve.fs compat/README 
compat/anslocal.fs compat/assert.fs compat/control.fs compat/defer.fs 
compat/exception.fs compat/loops.fs compat/required.fs compat/struct.fs 
compat/vocabulary.fs prim; do \
                /bin/install -c -m 644 /var/tmp/portage/gforth-0.5.
0/work/gforth-0.5.0/$i /var/tmp/portage/gforth-0.5.0/image//usr/share/gforth/0.
5.0/$i; \
        done
/bin/install -c -m 644 kernl32l.fi /var/tmp/portage/gforth-0.5.
0/image//usr/share/gforth/0.5.0
ACCESS DENIED  open_wr:   /usr/share/emacs/site-lisp/gforth.el
/bin/install: cannot create regular file `/usr/share/emacs/site-lisp/gforth.el': 
Permission denied
make: *** [install] Error 1

!!! ERROR: dev-lang/gforth-0.5.0 failed.
!!! Function src_install, Line 43, Exitcode 2
!!! (no error message)

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-dev-lang_-_gforth-0.5.0-25139.log"

open_wr:   /usr/share/emacs/site-lisp/gforth.el
--------------------------------------------------------------------------------


Expected Results:  
Correctly install :)

Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.6)
=================================================================
System uname: 2.6.6 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.
2/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/ /usr/share/texmf/tex/platex/config/ 
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif 
gnome gpm gtk gtk2 guile imlib java jpeg kde ldap libg++ libwww mad mikmod motif 
mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt 
quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 
xmms xv zlib"
Comment 1 Jeremy Maitin-Shepard 2004-07-25 16:31:23 UTC
Since this appears to be fixed in 0.6.2, and 0.6.2 is marked stable, while 0.5.0 is marked unstable, I don't think it is worth fixing this version.  If, however, there is some reason why you want this particular version of the package, then I would consider fixing it.
Comment 2 J.C. Wren 2004-07-28 07:01:35 UTC
Unfortunately, the PicForth compiler (which uses gforth) requires 0.5.0.  There have been several Gentoo users who've attempted to use it, and cannot emerge it because of this error.  PicForth won't work with later versions of gforth, although we are trying to remedy that.  

It would be a great help if you could evne just modify the emerge to leave out the emacs related stuff, or if it's the same amount of effort, fix that portion.  The couple people I've talked to aren't emacs users, so this doesn't affect us (no flamewars, darnit!).

I'd like to fix the ebuild myself, but I'm not smart enough to do it properly, it seems.  I've figured out how to *remove* the emacs stuff, but not get it to build properly.

Not sure if the correct action is to leave bug as 'RESOLVED WONTFIX', or re-open it, so I re-opened.  Please advise if this was the correct course of action or not.
Comment 3 Jeremy Maitin-Shepard 2004-07-28 12:02:30 UTC
It was correct to reopen the bug.  I will fix this in a few hours when I am at home.
Comment 4 Jeremy Maitin-Shepard 2004-07-28 18:12:49 UTC
The sandbox violation is now fixed in CVS.  Use dev-lang/gforth-0.5.0-r1.  I also added proper handling of the Emacs support.