Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54425 - Ebuild renaming deprecates /etc/portage/* infos
Summary: Ebuild renaming deprecates /etc/portage/* infos
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All All
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-06-19 09:01 UTC by Camille Huot (RETIRED)
Modified: 2004-10-22 08:48 UTC (History)
0 users

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 Camille Huot (RETIRED) gentoo-dev 2004-06-19 09:01:59 UTC
When 'emerge sync' finish, it sometimes renames ebuild or categories.
User's custom portage configuration in /etc/portage/ becomes invalid.

Example: 
I had "=net-mail/sylpheed-claws-0.9.10" in /etc/portage/package.mask
After an emerge sync, sylpheed claws was put in the "client-mail" category, hence my setting doesn't work anymore.

Todo:
I think emerge sync should do a sed in the /etc/portage/* files to replace any renamed package.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-06-19 11:25:18 UTC
IMO /etc should be read-only for portage
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-06-19 18:28:56 UTC
IMO this is necessary. I was also hit by the net-mail package moves. Most of my use flags are set through /etc/portage/package.mask, including those of postfix. After the package move and upgrading, I rebooted my box after which postfix decided every email was corrupt. I realized the change in use flags, recompiled and everything worked again, but the fixdbentries code on /etc/portage would have saved me the hassle.

I think that in this case, portage editing /etc/portage/* would not be adding or removing anything. It would just be maintaining system consistency. If editing directly is taboo, I think that at minimum portage should create new config files to be merged be etc-update.
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2004-06-21 01:54:18 UTC
New ._config file is a legitimate way to handle this. The issue is
getting it "merged" at the right time. There are no notifications
at this stage in the process. It checks nothing after a sync. So
we'd have to make it a special case check and verify each line in
the files. It's fairly ugly.

Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:48:09 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2