Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66529 - emerge -uvD world has failed and now emerge doesn work anymore
Summary: emerge -uvD world has failed and now emerge doesn work anymore
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-06 08:04 UTC by Eduardo Juan
Modified: 2004-10-06 15:07 UTC (History)
0 users

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 Eduardo Juan 2004-10-06 08:04:28 UTC
Yesterday i left my computer making emerge --update --deep world and this morning, the updaqte was broken with this message:

/usr/lib/portage/bin/ebuild.sh: line 1301: : No such file or directory

!!! ERROR: xyz failed.
!!! Function inherit, Line 1302, Exitcode 1
!!! died sourcing in inherit()
!!! If you need support, post the topmost build error, NOT this status message. 

xyz in this case was bash-3.0-r6.

I tried to emerge portage and this is the error:
*****************************
siux ejuan # emerge portage
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.51_rc7 to /
/usr/lib/portage/bin/ebuild.sh: line 1301: : No such file or directory
>>> md5 src_uri ;-) portage-2.0.51_rc7.tar.bz2
/usr/lib/portage/bin/ebuild.sh: line 1301: : No such file or directory
/usr/lib/portage/bin/ebuild.sh: line 1301: : No such file or directory
>>> Unpacking source...
>>> Unpacking portage-2.0.51_rc7.tar.bz2 to /var/tmp/portage/portage-2.0.51_rc7/work
>>> Source unpacked.
/usr/lib/portage/bin/ebuild.sh: line 1301: : No such file or directory
./create-localdecls
Checking truncate argument type... off_t
Checking libc version... libc.so.6
Checking glibc subversion... 2.3


(.........)


>>> Auto-cleaning packages ...

 app-shells/bash
    selected: 3.0-r5
   protected: 3.0-r6
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging app-shells/bash-3.0-r5...
No package files given... Grabbing a set.
/usr/lib/portage/bin/ebuild.sh: line 1301: : No such file or directory
!!! FAILED prerm: 2816

What can i do for bringing back my portage system to work??

Tnx !!



Reproducible: Always
Steps to Reproduce:
1.emerge -uvD world
2.
3.

Actual Results:  
emerge doesn't install any package anymore!! :(

Expected Results:  
to emerge correctly any packet

Portage 2.0.51_rc7 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r6 i686)
=================================================================
System uname: 2.6.8-gentoo-r6 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer
-ftracer -fprefetch-loop-arrays -fno-crossjumping -finline-functions -fgcse
-maccumulate-outgoing-args -fmove-all-movables -freduce-all-givs -fstrict-aliasing"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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/mozilla/defaults/pref /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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer
-ftracer -fprefetch-loop-arrays -fno-crossjumping -finline-functions -fgcse
-maccumulate-outgoing-args -fmove-all-movables -freduce-all-givs
-fstrict-aliasing -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://mirror.iawnet.sandia.gov/pub/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/bmg-main"
SYNC="rsync://rsync1.fi.gentoo.org/gentoo-portage"
USE="X aalib ada alsa arts avi berkdb bitmap-fonts cdr crypt cups dga directfb
dvd dvdr encode esd evo expat fbcon firefox flash foomaticdb gb gcc gdbm ggi gif
glib glibc gnome gphoto2 gpm gtk gtk2 gtkhtml imlib innodb ipv6 java jpeg kde
kdevelop lcms libg++ libwww libxslt mad mikmod motif mozaccess-builtin mozctl
mozilla moznoxft mozxmlterm mpeg msn mysql ncurses nls nptl odbc oggvorbis
opengl oscar oss pam pda pdflib perl plotutils png python qt quicktime readline
samba sdl slang slp snmpsock5 spell sse ssl svga tcltk tcpd tetex thunderbird
tiff truetype usb valgrind vim wxGTK wxwindows x86 xface xml xml2 xmms xorg
xprint xv yahoo zlib"
Comment 1 Eduardo Juan 2004-10-06 08:06:51 UTC
I forgot this is the 1301 line on ebuild.sh thaś installed on my system:

******************
# Sources all eclasses in parameters
declare -ix ECLASS_DEPTH=0
inherit() {
	ECLASS_DEPTH=$(($ECLASS_DEPTH + 1))
	if [[ $ECLASS_DEPTH > 1 ]]; then
		debug-print "*** Multiple Inheritence (Level: ${ECLASS_DEPTH})"
	fi

	local location
	local PECLASS

	local B_IUSE
	local B_DEPEND
	local B_RDEPEND
	local B_CDEPEND
	local B_PDEPEND
	while [ "$1" ]; do
		location="${ECLASSDIR}/${1}.eclass"

		# PECLASS is used to restore the ECLASS var after recursion.
		PECLASS="$ECLASS"
		export ECLASS="$1"

		if [ "$EBUILD_PHASE" != "depend" ]; then
			if ! hasq $ECLASS $INHERITED; then
				echo
				echo "QA Notice: ECLASS '$ECLASS' inherited illegally in $CATEGORY/$PF" >&2
				echo
			fi
		fi

		# any future resolution code goes here
		if [ -n "$PORTDIR_OVERLAY" ]; then
			local overlay
			for overlay in ${PORTDIR_OVERLAY}; do
				olocation="${overlay}/eclass/${1}.eclass"
				if [ -e "$olocation" ]; then
					location="${olocation}"
					debug-print "  eclass exists: ${location}"
				fi
			done
		fi
		debug-print "inherit: $1 -> $location"

		#We need to back up the value of DEPEND and RDEPEND to B_DEPEND and B_RDEPEND
		#(if set).. and then restore them after the inherit call.
	
		#turn off glob expansion
		set -f

		# Retain the old data and restore it later.
		unset B_IUSE B_DEPEND B_RDEPEND B_CDEPEND B_PDEPEND
		[ "${IUSE-unset}"    != "unset" ] && B_IUSE="${IUSE}"
		[ "${DEPEND-unset}"  != "unset" ] && B_DEPEND="${DEPEND}"
		[ "${RDEPEND-unset}" != "unset" ] && B_RDEPEND="${RDEPEND}"
		[ "${CDEPEND-unset}" != "unset" ] && B_CDEPEND="${CDEPEND}"
		[ "${PDEPEND-unset}" != "unset" ] && B_PDEPEND="${PDEPEND}"
		unset   IUSE   DEPEND   RDEPEND   CDEPEND   PDEPEND
		#turn on glob expansion
		set +f
		
		source "$location" || export ERRORMSG="died sourcing $location in inherit()" <<<<<<<<<<<<<---------------------------------------
		[ -z "${ERRORMSG}" ] || die "${ERRORMSG}"
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-10-06 08:49:27 UTC
This is a problem with bash-3/gcc-3.4/-freduce-all-givs
Get a precompiled bash, remove -freduce-all-givs from your CFLAGS and re-emerge bash.
Comment 3 Eduardo Juan 2004-10-06 15:07:57 UTC
OK Found the error..or better...my stupidity!! :D

CFLAGS like "-freduce-all-givs" does make gnu bash goes crazy!!

Just installed a binary bash from my collegue's debian and emerge is normal again.

reemerged bash (without that stupid flag) and now everything works!! Muahahaa

Even configure's are broken on 'trap' due to broken bashes (compiled with that flag!!)