Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182341 - portage- - UnboundLocalError: local variable 'mymtime'
Summary: portage- - UnboundLocalError: local variable 'mymtime'
Status: RESOLVED DUPLICATE of bug 181387
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-06-17 15:52 UTC by Sumit Khanna
Modified: 2007-06-17 15:56 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Sumit Khanna 2007-06-17 15:52:26 UTC
I get the following when I do an "emerge -uDN world" :

>>> Emerging (1 of 148) sys-apps/portage-2.1.3_rc3 to /
 * portage-2.1.2.tar.bz2 RMD160 ;-) ...                                                              [ ok ]
 * portage-2.1.2.tar.bz2 SHA1 ;-) ...                                                                [ ok ]
 * portage-2.1.2.tar.bz2 SHA256 ;-) ...                                                              [ ok ]
 * portage-2.1.2.tar.bz2 size ;-) ...                                                                [ ok ]
 * portage-2.1.3_rc3.patch.bz2 RMD160 ;-) ...                                                        [ ok ]
 * portage-2.1.3_rc3.patch.bz2 SHA1 ;-) ...                                                          [ ok ]
 * portage-2.1.3_rc3.patch.bz2 SHA256 ;-) ...                                                        [ ok ]
 * portage-2.1.3_rc3.patch.bz2 size ;-) ...                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                               [ ok ]
 * checking portage-2.1.2.tar.bz2 ;-) ...                                                            [ ok ]
 * checking portage-2.1.3_rc3.patch.bz2 ;-) ...                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking portage-2.1.2.tar.bz2 to /var/tmp/portage/sys-apps/portage-2.1.3_rc3/work
>>> Unpacking portage-2.1.3_rc3.patch.bz2 to /var/tmp/portage/sys-apps/portage-2.1.3_rc3/work
 * Applying portage-2.1.3_rc3.patch ...                                                              [ ok ]
 * Setting portage.VERSION to 2.1.3_rc3 ...                                                          [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/portage-2.1.3_rc3/work/portage-2.1.2 ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-apps/portage-2.1.3_rc3

>>> Install portage-2.1.3_rc3 into /var/tmp/portage/sys-apps/portage-2.1.3_rc3/image/ category sys-apps
patching file make.conf
>>> Completed installing portage-2.1.3_rc3 into /var/tmp/portage/sys-apps/portage-2.1.3_rc3/image/

ecompressdir: bzip2 -9 usr/share/man
strip: x86_64-pc-linux-gnu-strip --strip-unneeded
>>> Merging sys-apps/portage-2.1.3_rc3 to /
--- /etc/
Traceback (most recent call last):
  File "/usr/bin/emerge", line 5567, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5562, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 5029, in action_build
    retval = mergetask.merge(pkglist, favorites, mtimedb)
  File "/usr/bin/emerge", line 3185, in merge
  File "/usr/lib64/portage/pym/", line 3790, in doebuild
    vartree=vartree, prev_mtimes=prev_mtimes)
  File "/usr/lib64/portage/pym/", line 4000, in merge
    mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "/usr/lib64/portage/pym/", line 7877, in merge
    cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "/usr/lib64/portage/pym/", line 7519, in treewalk
    if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
  File "/usr/lib64/portage/pym/", line 7797, in mergeme
    join(offset, x), cfgfiledict, thismtime):
  File "/usr/lib64/portage/pym/", line 7853, in mergeme
    if mymtime!=None:
UnboundLocalError: local variable 'mymtime' referenced before assignment

There was a previous bug, 159638, but it's been closed and marked as fixed but I'm still having the same issue.

emerge --info:

Portage (default-linux/amd64/2006.1/desktop, gcc-3.4.6, glibc-2.5-r3, 2.6.17-gentoo-r4 x86_64)
System uname: 2.6.17-gentoo-r4 x86_64 Intel(R) Pentium(R) D CPU 2.80GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 17 Jun 2007 08:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.6-r2, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=nocona"
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/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=nocona"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
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 --filter=H_**/files/digest-*"
USE="X a52 aac aalib acpi aim alsa amd64 audiofile berkdb bitmap-fonts browserplugin bzip2 cairo cdinstall cdparanoia cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds emboss emul-linux-x86 encode exif fam ffmpeg firefox flac fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv ipv6 isdnlog java jpeg kde ldap libg++ lirc mad matroska midi mikmod mono mp3 mpeg msn mudflap mysql ncurses nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl openmp pam pcre pda pdf perl png ppds pppd python qt3 qt4 quicktime readline reflection rtc samba sdl seamonkey session spell spl ssl svg tcpd theora truetype truetype-fonts type1-fonts unicode usb vcd vorbis wmf xinerama xml xorg xscreensaver xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="logitech" USERLAND="GNU" VIDEO_CARDS="nvidia"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-17 15:56:13 UTC

*** This bug has been marked as a duplicate of bug 181387 ***