sys-apps/portage-2.0.49-r18 "emerge sync" crashes with "RSYNC_EXCLUDEFROM". In /usr/bin/emerge, we're conditionally trying to append to "mycommand" in line 1754, while "mycommand" gets initialised in line 1797. Appending to "rsynccommand" instead works as expected. Patch attached. Reproducible: Always Steps to Reproduce: 1. mkdir /etc/portage 2. touch /etc/portage/rsync_excludes 3. RSYNC_EXCLUDEFROM="/etc/portage/rsync_excludes" emerge sync Actual Results: Traceback (most recent call last): File "/usr/bin/emerge", line 1754, in ? mycommand=mycommand+" --exclude-from "+portage.settings["RSYNC_EXCLUDEFROM"] NameError: name 'mycommand' is not defined Expected Results: It should not have crashed. Portage 2.0.49-r18 (default-ppc-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.21-ben2-grsec) ================================================================= System uname: 2.4.21-ben2-grsec ppc Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CFLAGS="-Os -pipe -mcpu=750 -fsigned-char -fomit-frame-pointer -ffast-math -W -Wall" CHOST="powerpc-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /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/env.d" CXXFLAGS="-Os -pipe -mcpu=750 -fsigned-char -fomit-frame-pointer -ffast-math -W -Wall" DISTDIR="/usr/portage/distfiles" FEATURES="ccache sandbox" GENTOO_MIRRORS="http://lucky" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://lucky/gentoo-portage" USE="X aalib alsa apache2 apm avi berkdb bonobo cdr crypt cups dga directfb dvd dvi encode esd fbcon foomaticdb gd gdbm ggi gif gnome gnome-libs gphoto2 gtk gtk2 gtkhtml guile imlib jpeg lcms ldap libwww lua mbox mikmod mitshm motif mozilla moznocompose moznoirc moznomail mozsvg mpeg mysql oggvorbis opengl oss pam perl plotutils png pnp ppc python quicktime readline ruby ruby18 sdl slang spell ssl tcltk tcpd tetex tiff truetype wmf xface xmms xv xvid zlib video_cards_radeon"
Created attachment 21637 [details, diff] change mycommand to rsynccommand for RSYNC_EXCLUDEFROM
It's already fixed in CVS.
In portage 2.0.49-r19 this bugs seems to be back.
ack i get this error with portage-2.0.49-r19
Created attachment 22949 [details, diff] updated patch
*** Bug 36934 has been marked as a duplicate of this bug. ***