Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138195 - portage- 2.1.1_pre1-r4 emerge gives error after rsync
Summary: portage- 2.1.1_pre1-r4 emerge gives error after rsync
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
: 138248 138269 138317 (view as bug list)
Depends on:
Blocks: 136244
  Show dependency tree
 
Reported: 2006-06-27 06:26 UTC by Jetchko Jekov
Modified: 2006-07-06 09:28 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix the NameError that occurs after sync (NameError.patch,313 bytes, patch)
2006-06-27 11:00 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jetchko Jekov 2006-06-27 06:26:44 UTC
emerge --sync
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3724, in ?
    emerge_main()
  File "/usr/bin/emerge", line 3693, in emerge_main
    action_sync(myopts, myaction)
  File "/usr/bin/emerge", line 2734, in action_sync
    chk_updated_cfg_files("/", settings.get("CONFIG_PROTECT","").split())
NameError: global name 'settings' is not defined

Portage 2.1.1_pre1-r4 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.16-gentoo-r8 i686)
Comment 1 Silas Snider 2006-06-27 09:13:59 UTC
Same exact problem. emerge --info follows

Portage 2.1.1_pre1-r4 (default-linux/x86/no-nptl, gcc-3.4.4/vanilla, glibc-2.3.6-r4, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/bmg-main"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib alsa apache2 apm arts asf audiofile avi berkdb bitmap-fonts
 bzip2 cddb cdr cli crypt ctype cups dba dri dts dv dvb dvd dvdread dxr3 eds eli
bc_glibc emboss encode esd ethereal exif expat fam fastbuild ffmpeg flac foomati
cdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk 
gtk2 gtkhtml guile idn imagemagick imlib ipv6 isdnlog jpeg kde kernel_linux lcms
 libcaca libg++ libwww mad matroska matrox memlimit mikmod mng modplug motif moz
illa mp3 mpeg mplayer ncurses nls nsplugin ogg opengl oss pam pcre pdflib perl p
ng posix pppd python qt quicktime readline real reflection rtsp samba screen sdl
 session simplexml slang soap sockets speex spell spl sqlite ssl stream svg svga
 tcltk tcpd tga theora tiff tokenizer truetype truetype-fonts type1-fonts udev u
serland_GNU v4l v4l2 vcd vidix vorbis win32codecs x86 xanim xine xml xml2 xmms x
org xsl xv xvid xvmc zlib input_devices_keyboard input_devices_mouse video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 spiralvoice 2006-06-27 10:35:43 UTC
Same here:
Portage 2.1.1_pre1-r4 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo i686)
=================================================================
System uname: 2.6.17-gentoo i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -Os -fforce-addr -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -Os -fforce-addr -fomit-frame-pointer -ftracer -pipe -fvisibility-inlines-hidden -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo http://gentoo.inode.at http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.osuosl.org/ http://ftp.easynet.nl/mirror/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/ecatmur"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac acpi alsa arts automount avi berkdb bitmap-fonts bzip2 cairo cddb cdparanoia cdr cli cups dbus dri dvd dvdr dvdread eds emboss encode ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif glitz gmp gnokii gpm graphviz gs gtk gtk2 hal howl idn ieee1394 imagemagick imap imlib isdnlog jbig joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lame lcms libg++ libwww lzo mad matroska mbox mhash mikmod mmx mng mozilla mozsvg mp3 mpeg mplayer ncurses nls nptl nsplugin nvidia ogg openexr opengl oss pam pcre pdflib perl pic png ppds pppd qt qt3 qt4 quicktime readline real reflection samba session slp sndfile spell spl sse ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vorbis win32codecs wmf xine xinerama xml xmms xorg xprint xv xvid zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick kernel_linux linguas_de userland_GNU video_cards_nv video_cards_nvidia video_cards_v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Zac Medico gentoo-dev 2006-06-27 11:00:20 UTC
Created attachment 90298 [details, diff]
fix the NameError that occurs after sync

This bug is pretty harmless.  Just make sure to run etc-update or dispatch-conf (or whatever you use) after the error occurs.

If this patch is saved as /tmp/NameError.patch, it can be applied as follows:

cd /usr/lib/portage
patch -p0 < /tmp/NameError.patch
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-06-27 12:14:41 UTC
*** Bug 138248 has been marked as a duplicate of this bug. ***
Comment 5 spiralvoice 2006-06-27 13:11:25 UTC
(In reply to comment #3)
> This bug is pretty harmless.

Unfortunately it breaks esync from app-portage/esearch, maybe
because returncode <> 0 is returned from emerge --sync.
Please include the patch in portage.
Comment 6 Zac Medico gentoo-dev 2006-06-27 13:31:18 UTC
I'll have a revbump in the tree in a few minutes.  BTW, you can use eupdatedb to work around the esync problem.
Comment 7 Zac Medico gentoo-dev 2006-06-27 13:56:17 UTC
This is fixed in svn r3674 and released in 2.1.1_pre1-r5.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-06-27 15:07:12 UTC
*** Bug 138269 has been marked as a duplicate of this bug. ***
Comment 9 Zac Medico gentoo-dev 2006-06-28 01:00:22 UTC
*** Bug 138317 has been marked as a duplicate of this bug. ***
Comment 10 David Li 2006-07-06 09:14:57 UTC
Is there a reason the bug is still open?
Comment 11 Zac Medico gentoo-dev 2006-07-06 09:28:30 UTC
Well, sometimes we get fewer duplicate reports if we leave the bug open.  Anyway, it's been over a week now, so I'll close it.