sox fails to unmerge after emerging 12.17.4-r2 Reproducible: Always Steps to Reproduce: 1. emerge -u sox 2. 3. Actual Results: oot@amilo cbradney # emerge -u sox Calculating dependencies ...done! >>> Auto-cleaning packages ... media-sound/sox selected: 12.17.4-r1 protected: 12.17.4-r2 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 media-sound/sox-12.17.4-r1... No package files given... Grabbing a set. /usr/sbin/ebuild.sh: /var/db/pkg/media-sound/sox-12.17.4-r1/sox-12.17.4-r1.ebuild: line 27: unexpected EOF while looking for matching `"' /usr/sbin/ebuild.sh: /var/db/pkg/media-sound/sox-12.17.4-r1/sox-12.17.4-r1.ebuild: line 47: syntax error: unexpected end of file !!! ERROR: media-sound/sox-12.17.4-r1 failed. !!! Function , Line 1294, Exitcode 1 !!! error sourcing ebuild !!! FAILED prerm: 1 root@amilo cbradney # root@amilo cbradney # emerge info Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz 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.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" 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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.gentoo.skynet.be/pub/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.blueyonder.co.uk/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acpi alsa apache2 apm arts avi berkdb bonobo cdr crypt cups dvd encode esd foomaticdb footmaticdb gd gdbm gif gphoto2 gpm gtk gtk2 gtkhtml guile imlib java jpeg kde lcms libg++ libwww linguas_en_GB mad mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg mysql ncurses nls odbc oggvorbis opengl oss pam pcmcia pdflib perl png ppds python qt quicktime radeon readline samba sdl slang slp spell sse ssl svga tcltk tcpd tiff truetype usb x86 xml xml2 xmms xv zlib"
Did you try to do fsck? :) Pay attention at messages after finishing. It might suggest to run fsck.reiserfs with --rebuild-tree.
Also try to disable sandbox and ccache
I see this problem also. If it really matters this is a reiserfs partition, but there's no evidence I've seen of any disk problems. I do not have sandbox or ccache options turned on: <SNIP> gcc -L. -L./gsm -o soxmix soxmix.o -lst -lgsm -lm -logg -lvorbis -lvorbisfile -lvorbisenc -lmad -lmp3lame >>> Install sox-12.17.4-r2 into /var/tmp/portage/sox-12.17.4-r2/image/ category media-sound man: prepallstrip: strip: strip: usr/bin/sox usr/bin/soxmix >>> Completed installing into /var/tmp/portage/sox-12.17.4-r2/image/ >>> Merging media-sound/sox-12.17.4-r2 to / --- /usr/ --- /usr/bin/ >>> /usr/bin/sox >>> /usr/bin/play >>> /usr/bin/soxmix >>> /usr/bin/soxeffect --- /usr/share/ --- /usr/share/doc/ >>> /usr/share/doc/sox-12.17.4-r2/ >>> /usr/share/doc/sox-12.17.4-r2/README.gz >>> /usr/share/doc/sox-12.17.4-r2/Changelog.gz >>> /usr/share/doc/sox-12.17.4-r2/TODO.gz >>> /usr/share/doc/sox-12.17.4-r2/soxexam.txt.gz >>> /usr/share/doc/sox-12.17.4-r2/sox.txt.gz >>> /usr/share/doc/sox-12.17.4-r2/libst.txt.gz --- /usr/share/man/ --- /usr/share/man/man1/ >>> /usr/share/man/man1/sox.1.gz >>> /usr/share/man/man1/play.1.gz >>> /usr/share/man/man1/soxexam.1.gz * Caching service dependencies... >>> media-sound/sox-12.17.4-r2 merged. media-sound/sox selected: 12.17.4-r1 protected: 12.17.4-r2 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 media-sound/sox-12.17.4-r1... No package files given... Grabbing a set. /usr/sbin/ebuild.sh: /var/db/pkg/media-sound/sox-12.17.4-r1/sox-12.17.4-r1.ebuil d: line 27: unexpected EOF while looking for matching `"' /usr/sbin/ebuild.sh: /var/db/pkg/media-sound/sox-12.17.4-r1/sox-12.17.4-r1.ebuil d: line 47: syntax error: unexpected end of file !!! ERROR: media-sound/sox-12.17.4-r1 failed. !!! Function , Line 1294, Exitcode 1 !!! error sourcing ebuild !!! FAILED prerm: 1 Gentoo2 root #
No reiser here anyway.. Removing ccache didnt help.
Full fsck over all partitions (ext3) via shutdown -Fr now brought no change
I think it would be nice if ebuild was attached.
Sorry I am commiting again :) Here is the link http://forums.gentoo.org/viewtopic.php?t=185481 You just need to change ^A on "
Remove the ^A from /var/db/pkg/media-sound/sox-12.17.4-r1/sox-12.17.4-r1.ebuild and itll unmerge. I guess committing a new version wont fix this, the ebuild is already copied over to the /var dir.
can't fix this as it's a problem with the user's system...
And everyone who has this ebuild on their system, probably quite a few. Seems this needs to be resolved in some way as a general issue. I dont think this should really be closed as for the "average Joe" Gentoo needs some better fix.
Oh come on - what do you mean this can't be fixed? Put something in the -r2 ebuild (a patch?) that will check to see if the -r1 version is already installed and to fix the file in /var that needs to be fixed. Then the subsequent clean will succeed. That is - if /var is reachable from the -r2 ebuild emerge run.
All right - as I sometimes do - I spoke a little hastily. This bug should either be marked as a duplicate of 46096 as bug 58884 is, or a duplicate of 58884. Same goes for 58801.
.
*** This bug has been marked as a duplicate of 46096 ***
Not fair! It wasn't a duplicate, or at least not an exact duplicate. In my case the ^A to " conversion had to happen much earlier in the file. Anyway, it's fixed and the emerge -C worked. thanks!