Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 27253

Summary: portage updates don't rename ebuilds in db
Product: Portage Development Reporter: TGL <tom.gl>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: portage-2.0.49--rename_ebuilds.patch

Description TGL 2003-08-24 16:04:57 UTC
I'm using portage-2.0.49.

I've noticed that when a package is renamed after a sync (today example was 
app-misc/Welcome2L --> app-misc/welcome2l), what portage does is basically:

  mv /var/db/pkg/app-misc/Welcome2L-xxx /var/db/pkg/app-misc/welcome2l-xxx

This is enough from portage point of view, but disturbes utilities like 'qpkg',
which are based on the names of the ebuilds that are in in the db. For instance,
after the above described move, I still get:

  # qpkg -nc -I Welcome
  app-misc/Welcome2L

which is no more a valid pkg name. This is an issue that qpkg or other such 
scripts output some wrong pkg names, because one can sometimes use this output 
to feed an emerge command, or things like that. 

I will submit a small patch which adds ebuild renaming to the move_ent function.


Reproducible: Always
Steps to Reproduce:
Comment 1 TGL 2003-08-24 16:06:54 UTC
Created attachment 16560 [details, diff]
portage-2.0.49--rename_ebuilds.patch

patch is against portage.py from portage-2.0.49.
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-12-24 18:29:11 UTC
Patch doesn't apply, and portage doesn't use the ebuild.