Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38228 - openmotif-2.1.30-r3: Error when installing: rm: cannot remove `/var/tmp/portage/openmotif-2.1.30-r3/image/usr/X11R6/bin/ll': No such file or directory
Summary: openmotif-2.1.30-r3: Error when installing: rm: cannot remove `/var/tmp/por...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-14 15:45 UTC by Joshua Lambert
Modified: 2004-01-18 02:50 UTC (History)
5 users (show)

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


Attachments
emerge openmotif log (openmotif-2.1.30-r3.log.bz2,38.12 KB, application/octet-stream)
2004-01-17 11:00 UTC, Ronald Hummelink
Details
openmotif-2.1.30-r3_srcprms.diff (openmotif-2.1.30-r3_srcprms.diff,908 bytes, patch)
2004-01-17 17:26 UTC, bartron
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Lambert 2004-01-14 15:45:59 UTC
after emerging the new build that is in stable x86:  I get

 * Cleaning up X11 stuff
rm: cannot remove `/var/tmp/portage/openmotif-2.1.30-r3/image/usr/X11R6/bin/ll': No such file or directory


!!! ERROR: x11-libs/openmotif-2.1.30-r3 failed.
!!! Function src_install, Line 73, Exitcode 1

I tried reinstalling and it still failed.
!!! rm /var/tmp/portage/openmotif-2.1.30-r3/image/usr/X11R6/bin/ll



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

Actual Results:  
Fails to install.

Expected Results:  
Completed successfully.

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0)
=================================================================
System uname: 2.6.0 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm avi berkdb crypt cups encode esd foomaticdb gdbm gif gpm
gtk gtk2 imlib java jpeg libg++ libwww mad mikmod mmx motif mpeg ncurses nls
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang
spell sse ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-15 00:24:55 UTC
very strange, please rsync and try again
Comment 2 jochen 2004-01-16 06:00:14 UTC
same here
Comment 3 peter hiltz 2004-01-16 08:24:52 UTC
Fractionally different here: Instead of  /var, it is using /opt, but otherwise same bug?
make[3]: Leaving directory `/opt/tmp/portage/openmotif-2.1.30-r3/work/motif/doc/man/man5'
make[2]: Leaving directory `/opt/tmp/portage/openmotif-2.1.30-r3/work/motif/doc/man'
make[1]: Leaving directory `/opt/tmp/portage/openmotif-2.1.30-r3/work/motif'
 * Cleaning up X11 stuff
rm: cannot remove `/opt/tmp/portage/openmotif-2.1.30-r3/image/usr/X11R6/bin/ll': No such file or directory

!!! ERROR: x11-libs/openmotif-2.1.30-r3 failed.
!!! Function src_install, Line 73, Exitcode 1
!!! rm /opt/tmp/portage/openmotif-2.1.30-r3/image/usr/X11R6/bin/ll

emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.1-mm2)
=================================================================
System uname: 2.6.1-mm2 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-tbird -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://gentoo.linux.no/pub/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://gentoo.inode.at/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/opt/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cups dvd encode esd foomaticdb gd gdbm ggi gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad matrox mbox mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang snmp spell ssl svga tcltk tcpd tetex tiff truetype x86 xml xml2 xmms xv zlib"
Comment 4 Jason Toffaletti 2004-01-16 13:54:39 UTC
I had a similar problem with this ebuild getting a lot of permission denied messages. I tracked the problem down to the permissions from the extracted tarball being like this:
-r--r----- 
Comment 5 Jason Toffaletti 2004-01-16 13:54:39 UTC
I had a similar problem with this ebuild getting a lot of permission denied messages. I tracked the problem down to the permissions from the extracted tarball being like this:
-r--r-----    1 portage  portage       16K Jun  3  2000 Imake.cf
because there are no write permissions the ebuild isn't able to apply patches, etc... that are required for it to work. the solution for me was to turn off FEATURES="userpriv usersandbox" and do the emerge as root.
Comment 6 Jon Portnoy (RETIRED) gentoo-dev 2004-01-16 15:57:47 UTC
Reproducible on all of my systems.
Comment 7 REMOVED ACCOUNT 2004-01-16 16:17:16 UTC
I'm getting this error even if FEATURES="ccache" only.
Comment 8 Christopher Smith 2004-01-17 00:33:29 UTC
Yup, trimming FEATURES does not seem to help me either.
Comment 9 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-17 03:14:55 UTC
can somebody please attach a complete emerge log
Comment 10 toni 2004-01-17 05:13:13 UTC
there is a small bug in ebuild file; 

-----8<-----
41c41
< egin "patching 'clients/mwm/Imakefile' (mwm confdir)"
---
>       ebegin "patching 'clients/mwm/Imakefile' (mwm confdir)"
----->8-----

however fixing it did not resolve this bug. 

Should there be ll binary in openmotif? Couldn't find any reference to it from the motif source (using a quick find/grep command)?
Comment 11 Vermyndax 2004-01-17 09:08:41 UTC
Happens to me also, and I just did an emerge sync (11:08am 1/17/04 CST)
Comment 12 Ronald Hummelink 2004-01-17 11:00:35 UTC
Created attachment 23996 [details]
emerge openmotif log

Heinrich, i hope this is what you wanted.

system has openmotif-2.2.2-r2 installed atm.
Comment 13 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-17 11:41:08 UTC
uil failed to compile, maybe that's the problem

I commited a fix, please rsync and try again or add the following to src_unpack:

sed -i -e "s:#define USE_BYACC               YES:#undef USE_BYACC:" config/cf/host.def
Comment 14 peter hiltz 2004-01-17 12:02:03 UTC
working for me now.
Comment 15 Ronald Hummelink 2004-01-17 12:33:42 UTC
Works for me too, thank you ;-)
Comment 16 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-17 12:38:48 UTC
fine -> close :)
Comment 17 bartron 2004-01-17 17:24:35 UTC
  Uil tries to build with byacc because the ebuild failed to copy 
`site.def' with "userpriv" in features (see also comment #4) :

===CUT===
cp: cannot create regular file `/var/tmp/portage/openmotif-2.1.30-r3/work/motif/config/cf/site.def': Permission denied
/usr/sbin/ebuild.sh: line 33: /var/tmp/portage/openmotif-2.1.30-r3/work/motif/config/cf/site.def: Permission denied
/usr/sbin/ebuild.sh: line 34: /var/tmp/portage/openmotif-2.1.30-r3/work/motif/config/cf/site.def: Permission denied
/usr/sbin/ebuild.sh: line 35: /var/tmp/portage/openmotif-2.1.30-r3/work/motif/config/cf/site.def: Permission denied
/usr/sbin/ebuild.sh: line 36: /var/tmp/portage/openmotif-2.1.30-r3/work/motif/config/cf/site.def: Permission denied
/usr/sbin/ebuild.sh: line 37: /var/tmp/portage/openmotif-2.1.30-r3/work/motif/config/cf/site.def: Permission denied
===CUT===

(seems to be unrelated to the "egin" (comment #9 and comment #11) and
"ll" errors though)
Comment 18 bartron 2004-01-17 17:26:14 UTC
Created attachment 24016 [details, diff]
openmotif-2.1.30-r3_srcprms.diff

(diffed against cvs rev 1.10)

* makes source tree writable
* adds some extra checks
Comment 19 Christopher Smith 2004-01-17 17:51:28 UTC
Works for me now too. Great work guys!
Comment 20 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-18 02:50:55 UTC
it also wanted to build with byacc here without my patch and without userpriv, so we need both patches :)