When attempting to update the emacs-cvs ebuild, I receive the following error: >>> emerge (1 of 1) app-editors/emacs-cvs-21.3.50 to / >>> Unpacking source... * Fetching CVS module emacs into /usr/portage/distfiles/cvs-src... * Running cvs -q -f -z4 -d ":ext:anoncvs@savannah.gnu.org:/cvsroot/emacs" update -dP emacs cvs update: warning: server is not creating directories one at a time cvs [update aborted]: there is a version in emacs already !!! ERROR: app-editors/emacs-cvs-21.3.50 failed. !!! Function cvs_fetch, Line 418, Exitcode 1 !!! cvs update command failed Reproducible: Always Steps to Reproduce: 1. Run `emerge emacs-cvs`. 2. 3. Portage 2.0.50-r2 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.25-pac1) ================================================================= System uname: 2.4.25-pac1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Gentoo Base System version 1.4.3.13p1 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -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/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="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache notitles sandbox" GENTOO_MIRRORS="ftp://ibiblio.org/pub/Linux/distributions/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 avi berkdb bonobo cdr crypt cups curl doc dvd emacs encode esd faad flac foomaticdb gd gdbm gif gnome gphoto2 gstreamer gtk gtk2 gtkhtml guile imagemagick imlib java jbigkit jikes jpeg lcms libg++ libgda libwww mad mbox mmx mozilla mpeg mysql ncurses nls noreiserfs oggvorbis opengl oss pam pcmcia pdflib perl png pnp python quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf x86 xml2 xv zlib"
Updating works for me; it is possible your local checkout is corrupted, try: rm -rf /usr/portage/distfiles/cvs-src/emacs
I tried removing the directory as suggested, but I still get the same exact error message.
Have you tried manually checking out the emacs CVS repository?
Yes, if I cd to the cvs directory and manually run cvs update, cvs pulls all the files, but if I then run emerge emacs-cvs, I get the same error.
As a temporary workaround you can try: ECVS_CVS_COMMAND=/bin/true emerge emacs-cvs (And then manually update, since you say that works.) Also, have you tried running cvs update using the exact same parmaters that cvs.eclass is using, i.e. -q -f -z4 update -dP. I am thinking the various options relating to both compression and directory updating could have an effect.
Running ECVS_CVS_COMMAND=/bin/true emerge emacs-cvs works, and yes, I have tried manually running the same command as emerge emacs-cvs runs, but the effect is the same. I just tried changing the compression level to 3 and it seemed to work fine.
Hmm, so you are saying that with the same options as the ebuild is using, you get the same errors, but when you use -z3, or any other compression level, there is no error? The compression level could be changed in the ebuild, but I find it odd that you are getting this error, but no one else, including myself, seems to.
Basically, yes. If I cd into the emacs-cvs directory and run cvs update with the same options excepting the compression level is set to 3 instead of 4, I get no errors. If I run emerge emacs-cvs, I get the error mentioned above. That's about the extent of the troubleshooting that I've done on this, as I don't know what else to try. If you have any suggestions, please feel free to let me know.
I think this may be a CVS bug, or incompatibility, since I did notice you are using ACCEPT_KEYWORDS=~x86. Which CVS version are you using? I am using 1.11.11.
I'm using cvs-1.11.14.
FYI others are getting this for other apps and it seems related to portage-2.0.50-r2. Downgrading to -r1 fixed it for me and others.
Uh... Do you have an overlay with eclasses in it? Portage should have absolutely nothing to do with that particular part of the ebuild.
No I don't any eclasses in my overlay. I found some other users in the forums who are having this same error as well.
Mr. Seiler was right on the money. I downgraded to portage-2.0.50-r1 and `emerge emacs-cvs` works correctly now. Thanks for the help.
Didn't you say that running cvs update using the same options as the eclass was using also gave the error?
Yes, it was, but now it's not. I'm clueless as to why, though. At any rate, my issue seems to be resolved.
How has this bug been fixed, if I am still getting the described behaviour after syncing portage? What is the fix exactly? Downgrading portage?
The problem seems to be the combination of the -z4 compression option (with some version of CVS) and portage-2.0.50-r2. I do not see any reason why there would be a connection between portage and cvs though.
After upgrading to portage-2.0.50-r3, I'm seeing this same exact problem again. There is definitely something in the new portage code that's causing this.
*** This bug has been marked as a duplicate of 46377 ***
Bug is not a duplicate of 46377.
But it is a dupe of 46879... =] *** This bug has been marked as a duplicate of 46879 ***