During an emerge -uD world I get an error while unemerging old mailx: [mailx compilation...] >>> Install mailx-8.1.2.20021129-r3 into /var/tmp/portage/mailx-8.1.2.20021129-r3/image/ category mail-client man: fixing man page symlink: Mail.1.gz removing old symlink: Mail.1 prepallstrip: strip: strip: bin/mail >>> Completed installing into /var/tmp/portage/mailx-8.1.2.20021129-r3/image/ >>> Merging mail-client/mailx-8.1.2.20021129-r3 to / --- /bin/ >>> /bin/Mail -> mail >>> /bin/mail >>> /bin/mailx -> mail --- /etc/ >>> /etc/mail.rc --- /usr/ --- /usr/lib/ >>> /usr/lib/mail.tildehelp >>> /usr/lib/mail.help --- /usr/share/ --- /usr/share/man/ --- /usr/share/man/man1/ >>> /usr/share/man/man1/Mail.1.gz -> mail.1.gz >>> /usr/share/man/man1/mail.1.gz >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... >>> mail-client/mailx-8.1.2.20021129-r3 merged. mail-client/mailx selected: 8.1.2.20021129-r2 protected: 8.1.2.20021129-r3 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 mail-client/mailx-8.1.2.20021129-r2... No package files given... Grabbing a set. /usr/sbin/ebuild.sh: /var/db/pkg/mail-client/mailx-8.1.2.20021129-r2/mailx-8.1.2.20021129-r2.ebuild: line 43: unexpected EOF while looking for matching `"' /usr/sbin/ebuild.sh: /var/db/pkg/mail-client/mailx-8.1.2.20021129-r2/mailx-8.1.2.20021129-r2.ebuild: line 70: syntax error: unexpected end of file !!! ERROR: mail-client/mailx-8.1.2.20021129-r2 failed. !!! Function , Line 1297, Exitcode 1 !!! error sourcing ebuild !!! FAILED prerm: 1 Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium4 -march=pentium4 -funroll-loops -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/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="-O3 -mcpu=pentium4 -march=pentium4 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.rnl.ist.utl.pt/pub/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uninett.no/pub/linux/Gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://descartes/gentoo-portage/" USE="3ds X X509 Xaw3d aalib acpi acpi4linux alsa apache2 auctex avi berkdb bonobo cdr cjk clamav cmucl crypt cups dillo djbfft dv dvd emacs encode esd f77 faad fbcon flac fmod foomaticdb gdbm gif gimpprint ginac gnome gnomedb gnuplot gphoto2 gpm gs gsl gstreamer gtk gtk2 gtkhtml guile hdf5 imlib imlib2 innodb irda java jpeg libg++ libwww lirc mad mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg mpeg4 mpi music ncurses nls offensive oggvorbis opengl oss pam pcmcia pdflib perl pg-intdatetime plotutils png pnp postgres python qhull quicktime radeon readline ruby sdl slang speex spell sse ssl stencil-buffer stroke svga tcltk tcpd tetex theora tiff transcode truetype trusted type1 v4l v4l2 videos virus-scan wsconvert wxwindows x86 xface xine xml2 xmms xv xvid yv12 zlib"
Got same here: mail-client/mailx selected: 8.1.2.20021129-r2 protected: 8.1.2.20021129-r3 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 mail-client/mailx-8.1.2.20021129-r2... No package files given... Grabbing a set. /usr/sbin/ebuild.sh: /var/db/pkg/mail-client/mailx-8.1.2.20021129-r2/mailx-8.1.2.20021129-r2.ebuild: line 43: unexpected EOF while looking for matching `"' /usr/sbin/ebuild.sh: /var/db/pkg/mail-client/mailx-8.1.2.20021129-r2/mailx-8.1.2.20021129-r2.ebuild: line 70: syntax error: unexpected end of file !!! ERROR: mail-client/mailx-8.1.2.20021129-r2 failed. !!! Function , Line 1297, Exitcode 1 !!! error sourcing ebuild !!! FAILED prerm: 1 dotcoder root # dotcoder root # emerge --info Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5) ================================================================= System uname: 2.6.5 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -mfpmath=sse -fforce-addr -fomit-frame-pointer -funroll-loops -funroll-all-loops -fprefetch-loop-arrays -maccumulate-outgoing-args -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 /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -mfpmath=sse -fforce-addr -fomit-frame-pointer -funroll-loops -funroll-all-loops -fprefetch-loop-arrays -maccumulate-outgoing-args -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://81.88.192.4/pub/gentoo/portage http://mirror.gentoo.ru/pub/mirror/gentoo/ rsync://mirror.gentoo.ru/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://81.88.192.4/gentoo-portage" USE="3dnow acpi alsa arts avi berkdb crypt cups dga fbcon gd gdbm gif gpm imap java jpeg kde ldap lesstif maildir mmx mpeg ncurses nls nptl oggvorbis opengl pam png qt quicktime readline samba slang snmp spell sse ssl svga tiff truetype unicode x86 xml xml2 xmms zlib" dotcoder root #
I also started encountering this error a week or two ago, but until now haven't had time to investigate or see if someone submitted a bug.. The following commands fixed the problem for me: # emerge -C =mailx-8.1.2.20021129-r3 # emerge =mailx-8.1.2.20021129-r2 # emerge mailx In english: - unmerge the latest version of mailx (r3) - reemerge r2 - upgrade to r3 (r2 should unmerge correctly this time)
FWIW, I have pinpointed the place where ebuild.sh croaks: it's both in the mailx and the logwatch ebuilds (at least those were the ones that failed on me). The error is at the end of the dependency list (DEPEND="..."). It ends like this: mail-client/mailx-support^A Yes, including that ^A, where a " should be. Naturally, ebuild.sh does not understand that and bombs. How that ^A got there is completely beyond me, though. The logwatch ebuild had the exact same problem. Did some script/portage update tweak the mail-client/mailx-support deps throughout the tree?
The CVS tree and the master RSYNC server both give me files that don't contain any ^A in them, so I'm suspecting you've all hit a bad rsync mirror somewhere.
If this problem persists please re-open the bug with a specific rsync server that gave you the issue. No further problems with this bug at this moment, so closing it. -Jeffrey
I got this problem with the this mirror rsync://156.56.111.198/gentoo-portage The problem was with the mailx ebuild.
This is a duplicate of Bug 46096 . Just replace the ^A with a quote (") in the ebuild: /var/db/pkg/mail-client/mailx-8.1.2.20021129-r2/mailx-8.1.2.20021129-r2.ebuild and then it'll unmerge after that. Someone may want to change the resolution from "WORKSFORME" to "DUPLICATE".
Confirmed duplicate. THanks.
*** Bug 57065 has been marked as a duplicate of this bug. ***
*** Bug 57319 has been marked as a duplicate of this bug. ***
*** Bug 60508 has been marked as a duplicate of this bug. ***
*** Bug 60663 has been marked as a duplicate of this bug. ***
*** Bug 65505 has been marked as a duplicate of this bug. ***
*** Bug 80450 has been marked as a duplicate of this bug. ***