Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55762 - emerging psi (0.9.1 as well 0.9.2) fails with sandbox errors (permission denied)
Summary: emerging psi (0.9.1 as well 0.9.2) fails with sandbox errors (permission denied)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gustavo Felisberto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 46805
  Show dependency tree
 
Reported: 2004-07-01 01:18 UTC by eleven
Modified: 2004-07-06 10:49 UTC (History)
0 users

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


Attachments
psi-0.9.2-r1.ebuild (psi-0.9.2-r1.ebuild,874 bytes, text/plain)
2004-07-05 11:19 UTC, Gustavo Felisberto (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eleven 2004-07-01 01:18:06 UTC
make[1]: Entering directory `/usr/local/portage/portage/psi-0.9.1/work/psi-0.9.1/src'
cp -f "psi" "/usr/local/portage/portage/psi-0.9.1/image/../../../../../../../bin/psi"
ACCESS DENIED  open_wr:   /bin/psi
cp: cannot create regular file `/usr/local/portage/portage/psi-0.9.1/image/../../../../../../../bin/psi': Permission denied
make[1]: [install_target] Error 1 (ignored)
strip "/usr/local/portage/portage/psi-0.9.1/image/../../../../../../../bin/psi"
strip: '/usr/local/portage/portage/psi-0.9.1/image/../../../../../../../bin/psi': No such file
ACCESS DENIED  mkdir:     /share
mkdir: cannot create directory `/usr/local/portage/portage/psi-0.9.1/image/../../../../../../../share': Permission denied
<snip>
>>> Completed installing into /usr/local/portage/portage/psi-0.9.1/image/
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-net-im_-_psi-0.9.1-10537.log"
open_wr:   /bin/psi
mkdir:     /share

emerging it with FEATURES="-sandbox" behaves like it was configured with --prefix=/ - it installs files into /bin/psi, /share/psi and so on.
 

Reproducible: Always
Steps to Reproduce:
1. emerge psi
2. 
3.

Actual Results:  
psi fails to install properly.

Expected Results:  
install psi.

Gentoo Base System version 1.4.16
Portage 2.0.50-r8 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.4.20040605-r0, 2.
6.7-gentoo-r
2)
=================================================================
System uname: 2.6.7-gentoo-r2 x86_64 12
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.
2/share/conf
ig /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ 
/usr/share/te
xmf/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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.
org/pub/Linux/distribut
ions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/local/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa amd64 apm avi berkdb crypt encode foomaticdb gdbm gif gphoto2 
gpm imlib j
peg kde libcaca libg++ libwww mikmod motif mpeg ncurses nls nogcj oggvorbis 
opengl pam pdflib perl png postgres python qt quicktime radeon readline sdl 
slang spell ssl tcpd tetex tru
etype xinerama xml2 xmms xv zlib"

# cat /tmp/sandbox-net-im_-_psi-0.9.1-10537.log 
open_wr:   /bin/psi
mkdir:     /share
Comment 1 Gustavo Felisberto (RETIRED) gentoo-dev 2004-07-01 14:26:56 UTC
You talk about having -sandbox and then your emerge info shows that you have sandbox in FEATURES. Please explain you problem better as i have never seend psi give sandbox violations.
Comment 2 eleven 2004-07-05 00:46:33 UTC
no, no! emerge FAILS with sandbox enabled (it gives the output I've pasted in the bug report). it does not fail with sandbox disabled, _but_ installs stuff into / (as it was configured with --prefix=/ instead of /usr). so I end up with /bin/psi, /share/psi and so on. and psi doesn't work, of course.
Comment 3 Gustavo Felisberto (RETIRED) gentoo-dev 2004-07-05 09:44:02 UTC
 ./configure --prefix=/usr $myconf || die
I canot duplicate this so I have no idea on how to fix it because configure is run with --prefix=/usr and you talk about: (as it was configured with --prefix=/ instead of /usr)
Did you change the ebuild?
Comment 4 eleven 2004-07-05 10:18:06 UTC
I haven't touched them. I've synced many times since first occurence of that bug. Both ebuilds contain:

[...]
src_compile() {
    use kde || myconf="${myconf} --disable-kde"
    ./configure --prefix=/usr $myconf || die
    addwrite "$HOME/.qt"
    addwrite "$QTDIR/etc/settings"
    emake || die
}

src_install() {
    dodoc README TODO
    make INSTALL_ROOT="${D}" install
}

I've said it behaves like it was configured with --prefix=/ because when I disable sandbox it installs files into /bin, /share and so on. So any further hints on fixing it? What data I should provide?
Comment 5 Gustavo Felisberto (RETIRED) gentoo-dev 2004-07-05 11:19:21 UTC
Created attachment 34825 [details]
psi-0.9.2-r1.ebuild

Please test this version.
Comment 6 Gustavo Felisberto (RETIRED) gentoo-dev 2004-07-05 11:52:10 UTC
Well with some help from the people on #g.bugs we managed to track down this to the: PORTAGE_TMPDIR="/usr/local/portage" can someone from the dev-portage team take a look.
Comment 7 Gustavo Felisberto (RETIRED) gentoo-dev 2004-07-05 13:03:51 UTC
swegener managed to find this:
http://mythtv.org/pipermail/mythtv-dev/2004-January/018279.html

So it seems like a qmake bug, please set your PORTAGE_TMPDIR="/usr/local/portage" to something not in /usr.  And please report back.
Comment 8 eleven 2004-07-05 13:52:18 UTC
*tada.wav*
Setting PORTAGE_TMPDIR to /tmp/portage emerged psi without any tweaking.
Thanks.