Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119352 - emerge throws errors after last emerge sync
Summary: emerge throws errors after last emerge sync
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 119360 119392 119527 119777 120911 124273 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-17 16:53 UTC by Derk W te Bokkel
Modified: 2006-02-27 08:41 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derk W te Bokkel 2006-01-17 16:53:48 UTC
see forum discussion
http://forums.gentoo.org/viewtopic-t-424160-highlight-emerge.html

this one is bad you can't even emerge sync
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2006-01-17 17:04:45 UTC
move dev-perl/DateTime-0.2901 dev-perl/DateTime-0.29.01

Is not a valid package move. "move" is for renames only.
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-01-17 17:07:57 UTC
(In reply to comment #0)
> see forum discussion
> http://forums.gentoo.org/viewtopic-t-424160-highlight-emerge.html
> 
> this one is bad you can't even emerge sync
> 

Please refrain from linking to forums posts with no data in the bug, most people don't want to clickly click forever to get to the bug related information :
However, a developer made a mistake making a package move.

Please wait ~1 hour and then:
"rm -rf ${PORTDIR}/profiles/updates/1Q-2006"
and then run
"emerge sync"


Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-17 17:10:49 UTC
For the record:

Performing Global Updates: /usr/portage/profiles/updates/1Q-2006
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
........Traceback (most recent call last):
File "/usr/bin/emerge", line 10, in ?
import portage
File "/usr/lib/portage/pym/portage.py", line 7480, in ?
do_upgrade(mykey)
File "/usr/lib/portage/pym/portage.py", line 7372, in do_upgrade
db["/"]["vartree"].dbapi.move_ent(mysplit)
File "/usr/lib/portage/pym/portage.py", line 4683, in move_ent
origmatches=self.match(origcp,use_cache=0)
File "/usr/lib/portage/pym/portage.py", line 4829, in match
return match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
File "/usr/lib/portage/pym/portage.py", line 4134, in match_from_list
raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (dev-perl/DateTime-0.2901) (try adding an '=')"
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2006-01-17 17:17:23 UTC
Fixed it for now.
Comment 5 Derk W te Bokkel 2006-01-17 17:40:10 UTC
my appologies for the bad form but I was in a hurry I'll remember not do do it that way the next time.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-01-17 17:53:21 UTC
*** Bug 119360 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-01-18 01:02:27 UTC
*** Bug 119392 has been marked as a duplicate of this bug. ***
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2006-01-18 02:23:10 UTC
My post to -dev about this, pasted here for those of you not on the gentoo-dev mailing list (sign up so you can join in the fun ;) Marking closed since genone took care of this while i was asleep.

=============================

Protocol doesn't demand it - but human decency sure as heck does. I just
wanted to apologize to everyone for my erroneous commit to the 1Q-2006
file yesterday.

The boring background is that some upstream cpan authors use a numbering
scheme that makes sense in a decimal fashion, where .29001 is less
than .30 (expand the 0's, yada yada yada, ask your kid sibling about
math at school today), but portage expects that numbering scheme to
actually be a version identifier (so to speak, its the gist I'm going
for here, don't flame me on the technicalities of how portage reads a
version number). dev-perl/DateTime came out with a .2901 release, which
I put in the tree as such many a moon ago (about 1.4 moons ago to be
exact), and recently .30 came out. Because of the math business I just
mentioned, .30 would never get picked up by anyone since (dropping the
decimal point) 2901 > 30. I 'moved' .2901 to .29.01 to make this work
better. All was good. 

Then I had this brilliant idea - use the quarterly file to help people
migrate that number, no bizarre downgrades when the emerge world. 'cept
move in the quarterly isn't for moving a version, its for moving between
categories, package names, etc., and as such I made a mistake.

No need to respond to this message (i'd prefer it if you didn't actually
- between the 'stuff happens' and the 'your an idiot, revoke that bad
boys right to a keyboard' messages, i think it would all even out).

~mcummings
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-01-19 03:28:33 UTC
*** Bug 119527 has been marked as a duplicate of this bug. ***
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-01-21 02:10:48 UTC
*** Bug 119777 has been marked as a duplicate of this bug. ***
Comment 11 Attila Stehr 2006-01-21 09:16:33 UTC
Please reopen this bug. The solution does not work for me!


magic media # date
Sa Jan 21 11:51:40 CET 2006
magic media # emerge sync


Performing Global Updates: /usr/portage/profiles/updates/1Q-2006
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
........Traceback (most recent call last):
  File "/usr/bin/emerge", line 10, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 7480, in ?
    do_upgrade(mykey)
  File "/usr/lib/portage/pym/portage.py", line 7372, in do_upgrade
    db["/"]["vartree"].dbapi.move_ent(mysplit)
  File "/usr/lib/portage/pym/portage.py", line 4683, in move_ent
    origmatches=self.match(origcp,use_cache=0)
  File "/usr/lib/portage/pym/portage.py", line 4829, in match
    return match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
  File "/usr/lib/portage/pym/portage.py", line 4134, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (dev-perl/DateTime-0.2901) (try adding an '=')"
magic media # date
Sa Jan 21 11:51:45 CET 2006
magic media # rm -rf ${PORTDIR}/profiles/updates/1Q-2006
magic media # emerge sync


Performing Global Updates: /usr/portage/profiles/updates/1Q-2006
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
........Traceback (most recent call last):
  File "/usr/bin/emerge", line 10, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 7480, in ?
    do_upgrade(mykey)
  File "/usr/lib/portage/pym/portage.py", line 7372, in do_upgrade
    db["/"]["vartree"].dbapi.move_ent(mysplit)
  File "/usr/lib/portage/pym/portage.py", line 4683, in move_ent
    origmatches=self.match(origcp,use_cache=0)
  File "/usr/lib/portage/pym/portage.py", line 4829, in match
    return match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
  File "/usr/lib/portage/pym/portage.py", line 4134, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (dev-perl/DateTime-0.2901) (try adding an '=')"
magic media # date
Sa Jan 21 18:14:55 CET 2006
magic media #
Comment 12 Brian Harring (RETIRED) gentoo-dev 2006-01-21 14:03:51 UTC
(In reply to comment #11)
> Please reopen this bug. The solution does not work for me!
> magic media # date
> Sa Jan 21 11:51:45 CET 2006
> magic media # rm -rf ${PORTDIR}/profiles/updates/1Q-2006
> magic media # emerge sync

Attach your emerge --info.

I'm wondering what mirror you're hitting- I'd bet the mirror probably is lagging behind the rest.
also, tag in the output of $PORTDIR/metadata/timestamp
please.
Comment 13 Marius Mauch (RETIRED) gentoo-dev 2006-01-21 22:05:06 UTC
Ehm, did you just forget to replace $PORTDIR with /usr/portage maybe?
Comment 14 Attila Stehr 2006-01-22 02:46:53 UTC
magic media # emerge --info

Performing Global Updates: /usr/portage/profiles/updates/1Q-2006
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
........Traceback (most recent call last):
  File "/usr/bin/emerge", line 10, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 7480, in ?
    do_upgrade(mykey)
  File "/usr/lib/portage/pym/portage.py", line 7372, in do_upgrade
    db["/"]["vartree"].dbapi.move_ent(mysplit)
  File "/usr/lib/portage/pym/portage.py", line 4683, in move_ent
    origmatches=self.match(origcp,use_cache=0)
  File "/usr/lib/portage/pym/portage.py", line 4829, in match
    return match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
  File "/usr/lib/portage/pym/portage.py", line 4134, in match_from_list
    raise KeyError, "Specific key requires an operator (%s) (try adding an '=')" % (mydep)
KeyError: "Specific key requires an operator (dev-perl/DateTime-0.2901) (try adding an '=')"
magic media #

-----------------------------------------------------

magic media # cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example

CHOST           ="x86_64-pc-linux-gnu"

##############################################
# gcc FLAGS SECTION

### recommendation by AMD for AMD64
CFLAGS          ="-march=athlon64 -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -pipe -fomit-frame-pointer"

#### safe CFLAGS
# CFLAGS                ="-march=athlon64 -O3 -pipe -fomit-frame-pointer"

### FLAGS for debugging
#CFLAGS         ="-march=athlon64 -O1 -pipe -fomit-frame-pointer -g -ggdb3"
#LDFLAGS                ="-Wl,-O1"

CXXFLAGS        ="${CFLAGS}"

###############################################

# MAKEOPTS      ="-j2"
FEATURES        ="candy severe sfperms test"
# FEATURES      ="candy severe sfperms"

PORT_LOGDIR     ="/var/log/portage"

# we have: amd64
# graphics: dga gnome gtk gtk2 opengl svga X
# x-specific: dlloader xprint xosd
# gnome specific: dbus hal howl
# mplayer specific: dvdread encode matroska sdl
# firefox: mozdevelop mozsvg -java -mozilla mozcalendar
# printing: cups, foomaticdb, gimpprint, ppds
# misc hardware: acpi cdr dvd dvdr usb
# compression support: bzlib lzo rle 7zip
# language support: nls unicode
# sound: aac alsa audiofile dts libsamplerate
# audio support: oggvorbis openal cdda cdio sndfile
# image support: gif jpeg jpeg2k mng png svg tga yv12 openexr ... exif
# video support: asf avi mjpeg mpeg quicktime real xvid xvmc ffmpeg theora win32codecs ggi vcd xine
# more security: hardened memlimit pam ssl tcpd
# links2 specific: directfb fbcon javascript
# misc sw: crypt emacs on-the-fly-crypt pda pdflib tidy truetype videos lcms sysfs tetex toolbar xmms xtermtoolbar
# performance: 3dnowext nvidia   mmap ithreads nptl threads linuxthreads-tls
# always test: test
# always update kernel: symlink
# nptlonly
# FS: fat, ntfs, reiserfs
# other: a52 css dpms dmalloc fame firefox gs mpi xml stream freetype dnd gcj
# NOT: flac fortran java mad mikmod mozilla
# antivirus: milter (mbox sasl)

USE     ="amd64 3dnowext 7zip a52 aac acpi alsa asf audiofile avi bzlib cdda cdio cdr crypt css cups dbus dga directfb dlloader dmalloc dnd dpms dts dvd dvdr dvdread emacs encode exif fame fat fbcon ffmpeg firefox foomaticdb freetype gcj ggi gif gimpprint gnome gs gtk gtk2 hal hardened howl ithreads javascript jpeg jpeg2k lcms libsamplerate linuxthreads-tls lzo matroska memlimit mjpeg mmap mng mozcalendar mbox milter mozdevelop mozsvg mpeg mpi nls nptl nptlonly ntfs nvidia oggvorbis on-the-fly-crypt openal openexr opengl pam pdflib png ppds qt quicktime real reiserfs rle sasl sdl sndfile ssl stream svg svga symlink tcpd test tetex tga theora threads tidy toolbar truetype unicode usb vcd videos win32codecs wmf X xine xml xmms xosd xprint xtermtoolbar xvid xvmc yv12 -flac -fortran -java -mad -mikmod -mozilla"

CONFIG_PROTECT_MASK=/etc/conf.d/gpm
CONFIG_PROTECT_MASK=/usr/X11R6/bin/startx

GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"

ALSA_CARDS="via82xx"

### for audacity:
LANG="C audacity"
LC_ALL="C audacity"

LINGUAS="de"


# PORTDIR_OVERLAY="/usr/local/portage"
magic media #

magic media # echo $PORTDIR

magic media #

After executing 'export PORTDIR="/usr/portage"' I was able to remove the faulty file. How come $PORTDIR is 'empty' on my system?!
Comment 15 Jason Stubbs (RETIRED) gentoo-dev 2006-01-22 03:45:06 UTC
It's empty on all systems. The need to replace ${PORTDIR} with your actual directory was assumed knowledge.
Comment 16 Attila Stehr 2006-01-22 04:49:44 UTC
Oh, lol ... I didn't dig it :->
Comment 17 Attila Stehr 2006-01-22 04:50:34 UTC
thanks for that enlightenment ;)
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2006-01-30 01:37:55 UTC
*** Bug 120911 has been marked as a duplicate of this bug. ***
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-02-27 08:22:32 UTC
*** Bug 124273 has been marked as a duplicate of this bug. ***
Comment 20 eromang 2006-02-27 08:32:38 UTC
Hello,

And what's the solution to this bug ?

Regards.
Comment 21 Ciaran McCreesh 2006-02-27 08:41:42 UTC
The solution is in comment #2.