psi-0.9.2 fails to emerge. Multiple ACCESS DENIED errors copying files and creating directories at end of build. Reproducible: Always Steps to Reproduce: 1. emerge -v psi 2. 3. Actual Results: ...much snipped make[1]: Entering directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.2/work/psi-0.9.2/src' cp -f "psi" "/usr/local/src/portage_tmpdir/portage/psi-0.9.2/image/../../../../../../../../bin/psi" ACCESS DENIED open_wr: /bin/psi cp: cannot create regular file `/usr/local/src/portage_tmpdir/portage/psi-0.9.2/image/../../../../../../../../bin/psi': Permission denied make[1]: [install_target] Error 1 (ignored) strip "/usr/local/src/portage_tmpdir/portage/psi-0.9.2/image/../../../../../../../../bin/psi" strip: '/usr/local/src/portage_tmpdir/portage/psi-0.9.2/image/../../../../../../../../bin/psi': No such file ACCESS DENIED mkdir: /share mkdir: cannot create directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.2/image/../../../../../../../../share': Permission denied make[1]: *** [install_sharedfiles] Error 1 make[1]: Leaving directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.2/work/psi-0.9.2/src' man: prepallstrip: strip: >>> Completed installing into /usr/local/src/portage_tmpdir/portage/psi-0.9.2/image/ --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-net-im_-_psi-0.9.2-23673.log" open_wr: /bin/psi mkdir: /share -------------------------------------------------------------------------------- Expected Results: proper installation # emerge --info Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r9 i686) ================================================================= System uname: 2.4.26-gentoo-r9 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/fax /usr/share/config /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer" DISTDIR="/usr/local/src/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/Linux/distributions/gentoo/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.seren.com/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/local/src/portage/packages" PORTAGE_TMPDIR="/usr/local/src/portage_tmpdir" PORTDIR="/usr/local/src/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd f77 fam flac foomaticdb fortran gdbm gif gpm gtk gtk2 imlib jpeg kde ldap libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline samba scanner sdl slang snmp spell ssl svga tcltk tcpd tiff truetype usb x86 xml xml2 xmms xpm xv zlib video_cards_rage128"
Please attach: /tmp/sandbox-net-im_-_psi-0.9.2-23673.log
The contents of /tmp/sandbox-net-im_-_psi-0.9.2-23673.log are shown as art of the original post. At the end of the build... Here is what is currently in /tmp/sandbox-net-im_-_psi-0.9.2-23673.log: open_wr: /bin/psi mkdir: /share
Not sure if this helps, but both my portage dir and portage temp dir are in a non-standard places and I have seen this cause a problem in the past with other apps. Thanks. :)
Created attachment 46923 [details] psi-0.9.2.ebuild Hi! As I checked makefiles, the first Makefile is invoking second in the src directory, but I don't see that first is passing the second INSTALL_ROOT var? Sorry - I'm not a guru :( but try the ebuild I attached to this post - maybe it will help. Regards, Przemek
Please try 0.9.2-r1 or 0.9.3 and report back.
_psi-0.9.2-r1 still fails. Log below: Will try 0.9.3. next make[1]: Leaving directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/work/ psi-0.9.2/src' >>> Test phase [not enabled]: net-im/psi-0.9.2-r1 >>> Install psi-0.9.2-r1 into /usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/ima ge/ category net-im ( [ -d libpsi/psiwidgets ] && cd libpsi/psiwidgets ; grep "^qmake_all:" Makefile && make -f Makefile qmake_all; ) || true ( [ -d src ] && cd src ; grep "^qmake_all:" Makefile && make -f Makefile qmake_all; ) || true ( [ -d libpsi/psiwidgets ] && cd libpsi/psiwidgets ; make -f Makefile install; ) || true make[1]: Entering directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/work/psi-0.9.2/libpsi/psiwidgets' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/work/psi-0.9.2/libpsi/psiwidgets' ( [ -d src ] && cd src ; make -f Makefile install; ) || true make[1]: Entering directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/work/psi-0.9.2/src' cp -f "psi" "/usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/image/../../../../../../../../bin/psi" ACCESS DENIED open_wr: /bin/psi cp: cannot create regular file `/usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/image/../../../../../../../../bin/psi': Permission denied make[1]: [install_target] Error 1 (ignored) strip "/usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/image/../../../../../../../../bin/psi" strip: '/usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/image/../../../../../../../../bin/psi': No such file ACCESS DENIED mkdir: /share mkdir: cannot create directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/image/../../../../../../../../share': Permission denied make[1]: *** [install_sharedfiles] Error 1 make[1]: Leaving directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/work/psi-0.9.2/src' man: prepallstrip: strip: >>> Completed installing into /usr/local/src/portage_tmpdir/portage/psi-0.9.2-r1/image/ --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-net-im_-_psi-0.9.2-r1-4285.log" open_wr: /bin/psi mkdir: /share -------------------------------------------------------------------------------- pokey root # cat /tmp/sandbox-net-im_-_psi-0.9.2-r1-4285.log open_wr: /bin/psi mkdir: /share pokey root #
rm -f ../psi ; ln -s src/psi ../psi make[1]: Leaving directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.3/work/psi -0.9.3/src' * Building language packs >>> Test phase [not enabled]: net-im/psi-0.9.3 >>> Install psi-0.9.3 into /usr/local/src/portage_tmpdir/portage/psi-0.9.3/image/ ca tegory net-im ( [ -d libpsi/psiwidgets ] && cd libpsi/psiwidgets ; grep "^qmake_all:" Makefile && make -f Makefile qmake_all; ) || true ( [ -d src ] && cd src ; grep "^qmake_all:" Makefile && make -f Makefile qmake_all;) || true ( [ -d libpsi/psiwidgets ] && cd libpsi/psiwidgets ; make -f Makefile install; ) ||true make[1]: Entering directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.3/work/psi-0.9.3/libpsi/psiwidgets' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.3/work/psi-0.9.3/libpsi/psiwidgets' ( [ -d src ] && cd src ; make -f Makefile install; ) || true make[1]: Entering directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.3/work/psi-0.9.3/src' cp -f "psi" "/usr/local/src/portage_tmpdir/portage/psi-0.9.3/image/../../../../../../../../bin/psi" ACCESS DENIED open_wr: /bin/psi cp: cannot create regular file `/usr/local/src/portage_tmpdir/portage/psi-0.9.3/image/../../../../../../../../bin/psi': Permission denied make[1]: [install_target] Error 1 (ignored) ACCESS DENIED mkdir: /share mkdir: cannot create directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.3/image/../../../../../../../../share': Permission denied make[1]: *** [install_sharedfiles] Error 1 make[1]: Leaving directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.3/work/psi-0.9.3/src' cp: cannot stat `/usr/local/src/portage_tmpdir/portage/psi-0.9.3/work/langs/psi_*.qm': No such file or directory man: prepallstrip: strip: >>> Completed installing into /usr/local/src/portage_tmpdir/portage/psi-0.9.3/image/ --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-net-im_-_psi-0.9.3-12504.log" open_wr: /bin/psi mkdir: /share -------------------------------------------------------------------------------- pokey root #
If I cd into /usr/local/src/portage_tmpdir/portage/psi-0.9.3-r1/work/psi-0.9.3 after a failed istall, and simply type: make install It installs and runs fine... Here's the output of the "manual" make install command: psi-0.9.3 # make install ( [ -d libpsi/psiwidgets ] && cd libpsi/psiwidgets ; grep "^qmake_all:" Makefile &&make -f Makefile qmake_all; ) || true ( [ -d src ] && cd src ; grep "^qmake_all:" Makefile && make -f Makefile qmake_all;) || true ( [ -d libpsi/psiwidgets ] && cd libpsi/psiwidgets ; make -f Makefile install; ) ||true make[1]: Entering directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.3-r1/work/psi-0.9.3/libpsi/psiwidgets' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.3-r1/work/psi-0.9.3/libpsi/psiwidgets' ( [ -d src ] && cd src ; make -f Makefile install; ) || true make[1]: Entering directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.3-r1/work/psi-0.9.3/src' cp -f "psi" "../../../../../../../../bin/psi" cp -f "../README" "../../../../../../../../share/psi/" cp -f "../COPYING" "../../../../../../../../share/psi/" cp -f -r "../iconsets" "../../../../../../../../share/psi/" cp -f -r "../sound" "../../../../../../../../share/psi/" cp -f -r "../certs" "../../../../../../../../share/psi/" cp -f -p ../psi.desktop /usr/kde/3.3/share/applnk/Internet/ cp -f -p ../iconsets/system/default/icon_16.png /usr/kde/3.3/share/icons/hicolor/16x16/apps/psi.png cp -f -p ../iconsets/system/default/icon_32.png /usr/kde/3.3/share/icons/hicolor/32x32/apps/psi.png cp -f -p ../iconsets/system/default/icon_48.png /usr/kde/3.3/share/icons/hicolor/48x48/apps/psi.png make[1]: Leaving directory `/usr/local/src/portage_tmpdir/portage/psi-0.9.3-r1/work/psi-0.9.3/src' pokey psi-0.9.3 # psi pokey psi-0.9.3 # pwd /usr/local/src/portage_tmpdir/portage/psi-0.9.3-r1/work/psi-0.9.3 So PSI works, but the ebuild is not fully functional still. I'd be happy to help in any other way I can .
You are having sandbox violations, so runing make install manually does not use the sandbox so it will run ok. I'll upload a new version and a patch to go into the files dir, please try those and report back.
Created attachment 49734 [details] psi-0.9.3-r2.ebuild
Created attachment 49735 [details] psi-pathfix.patch
I ve got the same problem with psi 0.9.3-r2. Actually i found why it went wrong (at least for me): Times ago, as my /var was too small, i symlinked /var/tmp to /usr/var/tmp. Actually, this broke the cp ../../[...]/../.. It is trying to install to /share/psi && /bin/psi instead of /usr/share/psi && /usr/bin/psi it works well if i remove the /var/tmp/ symlink (anyway its the first package with which i've such a problem, all others ebuilds i emerged didnt used relative directory for install) i hope this may help :) log: (sorry, too lazy to restart the whole compilation with LANG=C but it is similar to the first report) cp -f "psi" "/var/tmp/portage/psi-0.9.3-r1/image/../../../../../../../bin/psi" ACCESS DENIED open_wr: /bin/psi cp: ne peut cr
I ve got the same problem with psi 0.9.3-r2. Actually i found why it went wrong (at least for me): Times ago, as my /var was too small, i symlinked /var/tmp to /usr/var/tmp. Actually, this broke the cp ../../[...]/../.. It is trying to install to /share/psi && /bin/psi instead of /usr/share/psi && /usr/bin/psi it works well if i remove the /var/tmp/ symlink (anyway its the first package with which i've such a problem, all others ebuilds i emerged didnt used relative directory for install) i hope this may help :) log: (sorry, too lazy to restart the whole compilation with LANG=C but it is similar to the first report) cp -f "psi" "/var/tmp/portage/psi-0.9.3-r1/image/../../../../../../../bin/psi" ACCESS DENIED open_wr: /bin/psi cp: ne peut créer le fichier régulier `/var/tmp/portage/psi-0.9.3-r1/image/../../../../../../../bin/psi': Permission non accordée make[1]: [install_target] Erreur 1 (ignorée) ACCESS DENIED mkdir: /share/psi mkdir: Ne peut créer le répertoire `/var/tmp/portage/psi-0.9.3-r1/image/../../../../../../../share/psi': Permission non accordée make[1]: *** [install_sharedfiles] Erreur 1 make[1]: Leaving directory `/usr/var/tmp/portage/psi-0.9.3-r1/work/psi-0.9.3/src' cp: ne peut évaluer `/var/tmp/portage/psi-0.9.3-r1/work/langs/psi_*.qm': Aucun fichier ou répertoire de ce type man: prepallstrip: strip: i686-pc-linux-gnu-strip --strip-unneeded >>> Completed installing psi-0.9.3-r1 into /var/tmp/portage/psi-0.9.3-r1/image/ --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-net-im_-_psi-0.9.3-r1-7119.log" open_wr: /bin/psi mkdir: /share/psi --------------------------------------------------------------------------------
This is fixed in 0.9.3-r4 that i hope to commit today