Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177560 - request: an option that creates .cfg_0000_* also for new files
Summary: request: an option that creates .cfg_0000_* also for new files
Status: RESOLVED LATER
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2007-05-07 21:30 UTC by Benno Schulenberg
Modified: 2007-06-05 17:24 UTC (History)
3 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 Benno Schulenberg 2007-05-07 21:30:06 UTC
When a file under CONFIG_PROTECT doesn't exist yet, Portage simply installs it.  It would be nice to have an option (say --protectforreal) that makes emerge create a .cfg_0000_* file also when the destination file does not exist yet in the CONFIG_PROTECT area.  When first installing a system, one wouldn't want to use this option, but once a system is fully installed and stable, I wish to know about every change and addition in /etc.

In a slightly different form this was discussed earlier:
http://article.gmane.org/gmane.linux.gentoo.devel/42320
http://article.gmane.org/gmane.linux.gentoo.devel/42343
http://article.gmane.org/gmane.linux.gentoo.devel/42359
Comment 1 solar (RETIRED) gentoo-dev 2007-05-07 21:38:45 UTC
I don't think such a feature is useful or desired by the majority of users.
Comment 2 Anno v. Heimburg 2007-05-08 06:44:14 UTC
FYI, here's a reference to the discussion on gentoo-user that was the trigger for this request:

http://thread.gmane.org/gmane.linux.gentoo.user/182695/focus=182701
Comment 3 Benno Schulenberg 2007-05-08 10:24:55 UTC
(In reply to comment #1)
> I don't think such a feature is useful or desired by the majority of users.

If majority is a criterion, then it's time to get rid of options like -B, -d, and -F.  Surely most users have no need or desire for those.
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2007-05-08 13:14:45 UTC
(In reply to comment #3)
> If majority is a criterion, then it's time to get rid of options like -B, -d,
> and -F.  Surely most users have no need or desire for those.

Yes, but those features are already implemented and have been for a very long time. Why would the portage devs spend the time to implement what you're asking when it's not useful to them and very few users would ever use it?

You're always welcome to whip up a patch(es) for this and attach it to this bug.
Comment 5 Benno Schulenberg 2007-05-08 21:45:30 UTC
(In reply to comment #4)
> You're always welcome to whip up a patch(es) for this and attach it to this
> bug.

I've tried.  But it is hell in there.  (In portage.py around line 7708.)

But even if I'd succeed, what are the chances of getting the patch accepted if the feature is not considered useful?
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2007-05-08 22:12:08 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > You're always welcome to whip up a patch(es) for this and attach it to this
> > bug.
> 
> I've tried.  But it is hell in there.  (In portage.py around line 7708.)

Yeah, the vdb merge code isn't as nice as it could be.

> But even if I'd succeed, what are the chances of getting the patch accepted if
> the feature is not considered useful?

Don't let yourself get discouraged by individual opinions. I see how such a feature could be considered useful (though I don't think I'd use it myself). One suggestion for this would be to make this configurable on a per directory base (e.g. by extending the CONFIG_PROTECT syntax somehow or using a new variable eventually) so it could be enabled for things like /etc/foo.d/ only instead of all of /etc.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2007-06-05 17:24:11 UTC
I don't think anyone in the portage team wants to work on this, but we'll look at and consider provided patches.