Summary: | psi-0.9.2 emerge fails with ACCESS DENIED errors | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | William Arlofski <waa-gentoo> |
Component: | Current packages | Assignee: | Gustavo Felisberto (RETIRED) <humpback> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | disp.reg.bugs.gentoo, troll |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | same with version 0.9.2-r1 and 0.9.3 | ||
Package list: | Runtime testing required: | --- | |
Attachments: |
psi-0.9.2.ebuild
psi-0.9.3-r2.ebuild psi-pathfix.patch |
Description
William Arlofski
2004-11-26 06:09:24 UTC
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 |