Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27253 - portage updates don't rename ebuilds in db
Summary: portage updates don't rename ebuilds in db
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-24 16:04 UTC by TGL
Modified: 2011-10-30 22:21 UTC (History)
0 users

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


Attachments
portage-2.0.49--rename_ebuilds.patch (portage-2.0.49--rename_ebuilds.patch,570 bytes, patch)
2003-08-24 16:06 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.