Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7737 - CONFIG_PROTECT-ed files and upgrading
Summary: CONFIG_PROTECT-ed files and upgrading
Status: RESOLVED DUPLICATE of bug 11763
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 8416
Blocks: 4709 7248 11763
  Show dependency tree
 
Reported: 2002-09-10 04:39 UTC by Wout Mertens (RETIRED)
Modified: 2011-10-30 22:38 UTC (History)
1 user (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 Wout Mertens (RETIRED) gentoo-dev 2002-09-10 04:39:53 UTC
Two ideas: 
 
- When etc-update updates a file, the previous version should be checked in 
with rcs to keep a history of changes. This should be one of the portage 
features. 
 
- If a protected file is updated, and the file is still the file that came 
with the original emerge, it should be overwritten without asking (checking it 
into rcs like etc-update). This is based on the fact that the ebuild 
maintainer knows what goes on in the ebuild. 
 
This bug is dependant on bug #7596, because it relies on the config file 
details being known.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-09-10 10:26:21 UTC
I have not yet considered the possibility of using rcs, but the auto-upgrade
capability is something that will be coming soon.
Comment 2 Philippe Fremy 2002-12-01 09:39:21 UTC
Nice suggestion. I was going to ask for a finer control on config_protect
because typically, I want portage to update all the files that I haven't touched. 

I was thinking about a timestamp thing, but of course souce control is far better.
Comment 3 Alain Penders (RETIRED) gentoo-dev 2003-02-02 14:35:29 UTC
The only way that it's safe to overwrite config files -- even if they haven't been 
changed -- is by knowing that the config files are "compatible".  Meaning, if
todays Apache uses /var/http as the default directory, and tomorrow they decide to 
change that to /home/http, your web server is toast.  The package maintainer can
make sure that the directory doesn't change, but since he needs to check that
stuff anyway, it makes sense for the ebuild to include information about whether
or not its config files are suitable to replace older ones or not.  (Or need to
replace older ones because the format changed.)
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2003-10-09 15:40:33 UTC

*** This bug has been marked as a duplicate of 11736 ***
Comment 5 Wayne Davison 2003-10-09 16:10:11 UTC
I assume you meant to mark this as a duplicate of 11763, not 11736.
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-10-15 12:02:51 UTC
wrong bug
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-10-15 12:03:05 UTC

*** This bug has been marked as a duplicate of 11763 ***