Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93805 - emerge drod-bin fails with sandbox violation
Summary: emerge drod-bin fails with sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-24 07:05 UTC by UncleOwen
Modified: 2005-06-23 15:03 UTC (History)
0 users

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


Attachments
Proposed patch (drod-ebuild-fix-sandbox-violation.patch,464 bytes, patch)
2005-05-24 07:48 UTC, UncleOwen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description UncleOwen 2005-05-24 07:05:59 UTC
# emerge drod-bin
Calculating dependencies  ...done!
>>> emerge (1 of 1) games-puzzle/drod-bin-1.6.6 to /
>>> md5 files   ;-) drod-bin-1.6.6.ebuild
>>> md5 files   ;-) files/digest-drod-bin-1.6.6
>>> md5 files   ;-) files/install.patch
>>> md5 src_uri ;-) CDROD-1.6.6-setup.sh.bin
>>> Unpacking source...
>>> Unpacking CDROD-1.6.6-setup.sh.bin to /var/tmp/portage/drod-bin-1.6.6/work
>>> Source unpacked.
>>> Test phase [not enabled]: games-puzzle/drod-bin-1.6.6

>>> Install drod-bin-1.6.6 into /var/tmp/portage/drod-bin-1.6.6/image/ category
games-puzzle
./install.sh: line 26: type: ginstall: not found
Using install

------------
 Installing
------------

[...]

`./drod' -> `/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/drod'
`./drod.bin' -> `/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/drod.bin'
`./Libs/libgcc_s.so.1' ->
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libgcc_s.so.1'
`./Libs/libstdc++.so.5.0.2' ->
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libstdc++.so.5.0.2'
create symbolic link
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libstdc++.so.5' to
`libstdc++.so.5.0.2'
`./Libs/libfmod-3.73.so' ->
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libfmod-3.73.so'
`./Libs/libexpat.so.0.5.0' ->
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libexpat.so.0.5.0'
create symbolic link
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libexpat.so.0' to
`libexpat.so.0.5.0'
`./Libs/libfreetype.so.6.3.3' ->
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libfreetype.so.6.3.3'
create symbolic link
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libfreetype.so.6' to
`libfreetype.so.6.3.3'
`./Libs/libSDL_ttf-2.0.so.0.6.0' ->
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libSDL_ttf-2.0.so.0.6.0'
create symbolic link
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libSDL_ttf-2.0.so.0' to
`libSDL_ttf-2.0.so.0.6.0'
`./Libs/libSDL-1.2.so.0.7.0' ->
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libSDL-1.2.so.0.7.0'
create symbolic link
`/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Libs/libSDL-1.2.so.0' to
`libSDL-1.2.so.0.7.0'
create symbolic link `/var/tmp/portage/drod-bin-1.6.6/image/opt/drod/Help' to
`/opt/drod/Data/Help'

No errors.
---

Done installing. Run /opt/drod/drod to play.

For the fastest response to anything you might have to ask or state,
post on the DROD.net forum.  This is found at http://www.drod.net/forum/ .
Bugs, installation problems, feature requests, room solutions -- all that
stuff is best-handled on the forum.

But if you'd rather e-mail somebody:
bugs@caravelgames.net   - For bugs and other problems with DROD.
gerryj@caravelgames.net - For Linux-specific questions about DROD.
erikh@caravelgames.net  - Anything else.

Have fun!
man:
>>> Completed installing drod-bin-1.6.6 into /var/tmp/portage/drod-bin-1.6.6/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-games-puzzle_-_drod-bin-1.6.6-24251.log"

chmod:     /var/tmp/portage/drod-bin-1.6.6/image/usr/games/bin/drod (symlink to
/opt/drod/drod)
--------------------------------------------------------------------------------

# cat /tmp/sandbox-games-puzzle_-_drod-bin-1.6.6-24251.log
chmod:     /var/tmp/portage/drod-bin-1.6.6/image/usr/games/bin/drod (symlink to
/opt/drod/drod)

# emerge --info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.12-rc4-200505021 i686)
=================================================================
System uname: 2.6.12-rc4-200505021 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4-r3
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O2 -pipe -fstack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon -O2 -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig autopatch candy ccache distlocks sandbox sfperms strict
userpriv usersandbox"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.easynet.nl/mirror/gentoo/
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://gentoo.inode.at/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/local /usr/local/portage/uncleowen"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apm avi bitmap-fonts cdr crypt cups curl dvb dvd dvdr
emboss encode fam flac foomaticdb fortran gd gif gtk gtk2 guile imagemagick
imlib java jpeg junit libg++ libwww mad mikmod mmx mp3 mpeg ncurses nptl nvidia
ogg oggvorbis opengl pam pdflib perl png python quicktime readline sdl slang
spell ssl tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis win32codecs
xine xml2 xprint xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS


Reproducible: Always
Steps to Reproduce:
Comment 1 UncleOwen 2005-05-24 07:48:28 UTC
Created attachment 59711 [details, diff]
Proposed patch

prepgamesdirs chmods some files - including ${D}/usr/games/bin/drod, which is
unfortunately a symlink to outside ${D}. So create the symlink after
prepgamesdirs.
Comment 2 UncleOwen 2005-05-24 08:35:40 UTC
or maybe teach prepgamesdirs to ignore symlinks?
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2005-06-09 09:02:36 UTC
It should be learnt to ignore symlinks when it comes to chmod.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2005-06-23 15:03:56 UTC
fixed the eclass.  Thanks for the bug report.