For example: # emerge libdv [compilation skipped] >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... >>> media-libs/libdv-0.102 merged. >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... x11-wm/afterstep selected: 1.8.11-r2 protected: 2.00.02 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 x11-wm/afterstep-1.8.11-r2... No package files given... Grabbing a set. /usr/lib/portage/bin/ebuild.sh: /var/db/pkg/x11-wm/afterstep-1.8.11-r2/afterstep-1.8.11-r2.ebuild: line 41: unexpected EOF while looking for matching `"' /usr/lib/portage/bin/ebuild.sh: /var/db/pkg/x11-wm/afterstep-1.8.11-r2/afterstep-1.8.11-r2.ebuild: line 68: syntax error: unexpected end of file Reproducible: Always Steps to Reproduce: 1. emerge ANY package 2. wait few minutes while compilation runs Actual Results: package emerged, but unmerging of x11-wm/afterstep-1.8.11-r2 failed Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10 i686) ================================================================= System uname: 2.6.10 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 12 2005, 01:59:25)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.6.3, 1.4_p6, 1.7.9-r1, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.4.3-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=athlon-xp -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.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/X11/xkb /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 -mcpu=athlon-xp -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://10.0.0.10/linux/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.mirror.icd.hu/ http://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.inode.at/ http://gentoo.zie.pg.gda.pl http://gentoo.eliteitminds.com http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.du.se/pub/os/gentoo http://ftp.heanet.ie/pub/gentoo/" LANG="ru_RU.ISO8859-5" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://10.0.0.10/portage/" USE="x86 3dnow X aalib acl alsa apm arts avi berkdb bitmap-fonts cdr cscope cups curl emboss encode esd fam foomaticdb fortran gd gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod mmx motif mp3 mpeg mysql nas ncurses nls ogg oggvorbis opengl oss pam pdflib perl plotutils png python qt quicktime readline samba scanner sdl slang spell sqlite sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS
This is caused by a bug in an old version of portage (specifically the version you had installed when you installed that ebuild). Somehow some ^A's (I'm sure the reason is somewhere in bug 46096) are in that file mentioned in the error. Editing that file and removing the ^A's (as in '^A') should solve the problem. *** This bug has been marked as a duplicate of 46096 ***
script really works. Thanks!