Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72545 - psi-0.9.2 emerge fails with ACCESS DENIED errors
Summary: psi-0.9.2 emerge fails with ACCESS DENIED errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gustavo Felisberto (RETIRED)
URL:
Whiteboard: same with version 0.9.2-r1 and 0.9.3
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-26 06:09 UTC by William Arlofski
Modified: 2005-06-26 07:35 UTC (History)
2 users (show)

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


Attachments
psi-0.9.2.ebuild (psi-0.9.2.ebuild2,767 bytes, text/plain)
2004-12-26 16:11 UTC, Przemyslaw Maciag (RETIRED)
Details
psi-0.9.3-r2.ebuild (psi-0.9.3-r2.ebuild,7.97 KB, text/plain)
2005-01-28 06:21 UTC, Gustavo Felisberto (RETIRED)
Details
psi-pathfix.patch (psi-pathfix.patch,224 bytes, text/plain)
2005-01-28 06:22 UTC, Gustavo Felisberto (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Arlofski 2004-11-26 06:09:24 UTC
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"
Comment 1 Gustavo Felisberto (RETIRED) gentoo-dev 2004-11-26 07:05:26 UTC
Please attach: /tmp/sandbox-net-im_-_psi-0.9.2-23673.log
Comment 2 William Arlofski 2004-11-26 09:44:45 UTC
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
Comment 3 William Arlofski 2004-12-02 14:11:24 UTC
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. :)
Comment 4 Przemyslaw Maciag (RETIRED) gentoo-dev 2004-12-26 16:11:04 UTC
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
Comment 5 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-15 04:05:52 UTC
Please try 0.9.2-r1 or 0.9.3 and report back.
Comment 6 William Arlofski 2005-01-15 13:30:10 UTC
_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 #
Comment 7 William Arlofski 2005-01-15 15:12:10 UTC
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 #
Comment 8 William Arlofski 2005-01-27 21:02:25 UTC
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 .
Comment 9 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-28 06:20:50 UTC
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.
Comment 10 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-28 06:21:44 UTC
Created attachment 49734 [details]
psi-0.9.3-r2.ebuild
Comment 11 Gustavo Felisberto (RETIRED) gentoo-dev 2005-01-28 06:22:04 UTC
Created attachment 49735 [details]
psi-pathfix.patch
Comment 12 Christophe Meron 2005-03-30 21:35:48 UTC
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
Comment 13 Christophe Meron 2005-03-30 21:35:48 UTC
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
--------------------------------------------------------------------------------
Comment 14 Gustavo Felisberto (RETIRED) gentoo-dev 2005-06-26 07:35:54 UTC
This is fixed in 0.9.3-r4 that i hope to commit today