Summary: | [PATCH] new/more dispatch-conf fixes | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Heinachi <linuxguy> |
Component: | [OLD] Core system | Assignee: | Portage team <dev-portage> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | CC: | betelgeuse, iyosifov, m.debruijne |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 93874 | ||
Bug Blocks: | |||
Attachments: |
new dispatch-conf
Patch against CVS dispatch-conf more new dispatch-conf added another feature another new feature new patch against the updated portage-2.0.51-r3 dispatch-conf Patch against portage 2.1.2_pre3-r3 |
Description
Heinachi
2004-10-23 01:27:13 UTC
Created attachment 42451 [details]
new dispatch-conf
oops, i forgot to attach the new file..
oh, if you want to diff this file against the current dispatch-conf to see the
changes just use:
s/\s\s\s\s/\t/g
on the old dispatch-conf first, that's 90% of my formating changes right there
and will make it readable
*** Bug 65707 has been marked as a duplicate of this bug. *** Heinachi: from your posting on gentoo-portage-dev I see that there is at least one new feature; would you mind summing the features up for me so I can include it on http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=4 if they make it into the stable portage? Created attachment 42626 [details, diff]
Patch against CVS dispatch-conf
So that other's can see what's changed...
I'll add this to CVS and fix up the lack of tabs, but I disagree with the
cutting of blank lines and contraction of the docstrings.
Created attachment 42659 [details]
more new dispatch-conf
another addition to dispatch-conf, more new features, and some fixes to some
stuff i missed in the last one (sorry).
in light of that i'll just go ever every new feature and/or fix:
1)
-a option removed from all diff commands, no more binary diffing problems
2)
frozen config files: add files to a new option in dispatch-conf.conf to prevent
config files from being overwritten, instead the new file from portage will be
added to rcs (or whatever other system of archiving you have dispatch-conf set
up to use) so you don't "lose" the changes. the list is a space dilimeted list
of files to be "frozen". example of the line in dispatch-conf:
frozen="/etc/fstab /etc/passwd /etc/group"
those files will be "frozen" and therefore never be overwritten by
dispatch-conf.
3)
-c command line option, this is "clobberall", it will cause dispatch-conf to
overwrite all old files with the new ones from portage with the exception of
files that have been "frozen"
4)
-p command line option, this is "pretend", it will print out a list of all
files that have updates, files will be in green unless frozen, then they will
be in blue. if the output is not a tty then there will be no color. frozen
files will have a * appended to the end so with or without color the frozen
files will be easy to spot.
5)
-a command line option, this is "ask", just like emerge ask, prints a pretend
and asks if you want to continue (dispatch-conf -c -a can make updates a
breeze)
6)
-t command line option, this is "testing", this is the option that was there
previously for developer testing, if you follow -t with a directory (or
directories encapsulated in quotes with a space dilimiter) then it will check
those directories rather than the portage config protect directories.
7)
replaced all the spaces with tabs like they should be, also, at jstubbs request
i put back in the blank lines and put the doc strings back the way they were.
i think that's all, if this wasn't clear enough for any of the features let me
know, also, if you find any bugs in this that i missed let me know, considering
how i missed the bugs in the last two patches i wouldn't be surprised. but
third times a charm right? i sure hope so.
Created attachment 42719 [details]
added another feature
added one more feature at the suggestion of a friend:
-f command line option, this is the "force" option, it will override the frozen
files so if you *want* to update a config file that is frozen you can easily
append the -f option (extra useful with -a and/or -c)
Created attachment 43186 [details]
another new feature
another added feature:
-s for "show" this shows a list of config files that have been frozen
also, fixed a minor oops with checking for -p and -a options.
Created attachment 43571 [details, diff]
new patch against the updated portage-2.0.51-r3 dispatch-conf
this is a patch against the new dispatch-conf in portage-2.0.51-r3 which had
some security updates to it.
this includes all of the new features as listed in the last few above posts
not much has changed, a little bit of clean up, and due to the security update
i reverted the spacing back to 4 spaces instead of a tab, though i still
advocate it be changed.
Brilliant. I suggest that the default dispatch.conf when this becomes unmasked should have /etc/fstab in freeze, because it's just too damn easy for a new user to splat it and it's never (?) actually genuinely updated (unlike, for example, rc.conf, which recently had CLOCK and KEYMAP stuff split out). (Another approach might be to make the baselayout ebuild smarter and not generate ._cfg* files for Really Important System Configuration Files that exist and haven't had such a change, but that's probably i) nontrivial ii) a seperate 'bug' iii) flawed in several unpleasant edge cases I haven't forseen.) Putting a hold on feature requests for portage as they are drowning out the bugs. Most of these features should be available in the next major version of portage. But for the time being, they are just drowning out the major bugs and delaying the next version's progress. Any bugs that contain patches and any bugs for etc-update or dispatch-conf can be reopened. Sorry, I'm just not good enough with bugzilla. ;) Created attachment 99876 [details, diff]
Patch against portage 2.1.2_pre3-r3
Following some discussion on gentoo-user, I've fixed this patch to work with the latest dispatch-conf.
Reopen for consideration. |