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
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.
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.
./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?
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?
Created attachment 34825 [details] psi-0.9.2-r1.ebuild Please test this version.
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.
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.
*tada.wav* Setting PORTAGE_TMPDIR to /tmp/portage emerged psi without any tweaking. Thanks.