Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23345 - Intelligent auto-merging in etc-update with (md5) hashing
Summary: Intelligent auto-merging in etc-update with (md5) hashing
Status: RESOLVED DUPLICATE of bug 4709
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-23 15:12 UTC by Brad Grzesiak
Modified: 2005-07-17 13:06 UTC (History)
4 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 Brad Grzesiak 2003-06-23 15:12:35 UTC
There are two things I'd like to see added to the features of etc-update:
1) Similar to the "Automerge all remaining config files" option, etc-update
should allow a user to do the following:
Choose to automerge from a user specified list (ie: option -7).
Continually ask which files to automerge until -1 is entered by the user.
Confirm the automerge of all these files.

2) Another option that should be proposed to the user is to automerge all
untouched files.  This can be accomplished with any config file that uses the
standard "hash means comment" convention.  Essentially, before a config file is
made available to the public, a hash (MD5 or other) should be taken and appended
in a comment at the bottom (or anywhere) of the file.
Then, when a user chooses to automerge all untouched files, etc-update will:
-Check each config file for the hash comment convention.
-If a config file uses the convention, search for a comment containing the hash
of the file in a specified format.  This hash will be called the "original hash."
-etc-update will then take a hash of the file ("generated hash") with the line
containing the "original hash" comment stripped out.
-If the "original hash" and the "generated hash" match, replace the original
file with the update.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-01-08 12:35:02 UTC
As I understood it Karl is working on the new etc-update.
Comment 2 Sean E Russell 2004-06-06 06:21:49 UTC
You should check bugs:

	http://bugs.gentoo.org/show_bug.cgi?id=14666

and

	http://bugs.gentoo.org/show_bug.cgi?id=4709

The first provides MD5 sum based automerging that works pretty well; the second implements a different solution that I haven't tried yet.

--- SER
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2005-05-14 22:07:04 UTC
This is adressed in dispatch-conf and a duplicate of 4709

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