Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61375 - emerge db-3.2.9-r10 fails: rm: cannot remove `/var/tmp/portage/db-3.2.9-r10/image//usr/include/db.h
Summary: emerge db-3.2.9-r10 fails: rm: cannot remove `/var/tmp/portage/db-3.2.9-r10/i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 61380 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-23 07:27 UTC by Andreas Waschbuesch
Modified: 2004-08-24 12:47 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Waschbuesch 2004-08-23 07:27:32 UTC
emerge interrupts with the following message:

rm: cannot remove `/var/tmp/portage/db-3.2.9-r10/image//usr/include/db.h': No such file or directory
rm: cannot remove `/var/tmp/portage/db-3.2.9-r10/image//usr/include/db_185.h': No such file or directory

!!! ERROR: sys-libs/db-3.2.9-r10 failed.
!!! Function src_install, Line 146, Exitcode 1
!!! db_src_install_usrlibcleanup failed!

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



In fact - the files reside in the directory db3 in the above mentioned path.
Comment 1 Andreas Waschbuesch 2004-08-23 07:28:52 UTC
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r1)
=================================================================
System uname: 2.6.8-gentoo-r1 i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -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.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache notitles sandbox strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/comp/Linux/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aalib alsa arts avi berkdb cdr crypt cups dga divx4linux dvd dvdr encode faad fam foomaticdb freetype gdbm gif gphoto2 gtk gtk2 guile imlib java jpeg kde libg++ libwww mad maildir mikmod motif mpeg mplayer ncurses nls offensive oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline sasl scanner slang spell sse ssl svga tcc tcltk tcpd tetex truetype vim-with-x x86 xml2 xmms xv zlib"
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-23 07:51:07 UTC
*** Bug 61380 has been marked as a duplicate of this bug. ***
Comment 3 splite 2004-08-23 08:03:45 UTC
I'm seeing this too.  The error is caused by the last line of db_src_install_usrlibcleanup in /usr/portage/eclass/db.eclass:

  rm ${D}/usr/include/db.h ${D}/usr/include/db_185.h

A quick fix would be to add the "-f" flag to rm:

  rm -f ${D}/usr/include/db.h ${D}/usr/include/db_185.h
Comment 4 Olivier Crete (RETIRED) gentoo-dev 2004-08-23 18:14:00 UTC
Alright, I've added a -f.. it fixes the problem for me...
A few QA comments... 
First, the herd in the metadata.xml doesn't exist in the herds.xml file... BAD!

Please dont mark stable stuff that you've just modified if there is not urgent security matter..  Ok in this case you broke the eclass, but its still good QA..
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2004-08-24 12:47:24 UTC
Thanks tester ;-) Maybe I should have tested on the existence.