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.
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"
*** Bug 61380 has been marked as a duplicate of this bug. ***
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
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..
Thanks tester ;-) Maybe I should have tested on the existence.