Gentoo Archives: gentoo-portage-dev

From: LinuxGuy@×××.net
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Conary - dispatch-conf
Date: Sun, 28 Nov 2004 20:15:43
Message-Id: 20041128201543.GB19442@monolith.uml.net
In Reply to: Re: [gentoo-portage-dev] Conary - dispatch-conf by Ed Grimm
1 On 09:23 Fri 12 Nov , Ed Grimm wrote:
2 > On Thu, 28 Oct 2004 LinuxGuy@×××.net wrote:
3 > > On 21:55 Wed 27 Oct , Ed Grimm wrote:
4 > >> On Mon, 25 Oct 2004 LinuxGuy@×××.net wrote:
5 > >>
6 > >>> Hi there, i've been putting in alot of work on dispatch-conf lately,
7 > >>> adding features i personally need, and features that it should have.
8 > >>> I have a new version of dispatch-conf posted at bug:
9 > >>> http://bugs.gentoo.org/show_bug.cgi?id=68618
10 > >>>
11 > >>> i believe it will solve one of your major problems with
12 > >>> dispatch-conf as i have added a new option called "config file
13 > >>> freezing" which allows you to specify config files you never want to
14 > >>> be overwritten, like /etc/fstab /etc/password and /etc/group and so
15 > >>> on. instead it will take the new files that portage tries to pass
16 > >>> out and apply them to rcs (or archive them through whatever meathod
17 > >>> you are using). I'm also taking suggestions on features to be added,
18 > >>> so if you, or anyone else feels there are other features that should
19 > >>> be added email me about it and we'll talk about what/how should be
20 > >>> added.
21 > >>
22 > >> This does sound promising. Note that I cannot fathom any reason why I'd
23 > >> want Gentoo's suggested updates archived into RCS for frozen files,
24 > >> unless they were not placed on the main branch - I use RCS to track my
25 > >> own changes, and I don't appreciate <censored>.
26 > >>
27 > >> Ed
28 > >
29 > > A good point i suppose, my reasoning for adding the new files to rcs
30 > > was in case there were important changes in the new gentoo files that
31 > > you needed, though i suppose those files can be grabbed by
32 > > recompiling, however if it's a large app that can be a bit of a
33 > > hassle. perhaps the new configs for frozen files should be added to a
34 > > different archive? or perhaps to another file? filefoo_frozen or
35 > > something? i'd like to hear what others think about the issue.
36 > >
37 > <snip updates plug>
38 > >
39 > > another feature i was thinking of adding was a simple command line based
40 > > way to add/subtract frozen files, like euse -E and -D. anything think
41 > > this is a good or bad idea?
42 > >
43 > > lastly, Ed, i was a little confused by your last statment:
44 > > and I don't appreciate <censored>.
45 > > i can't think of a swear that fits here, should i be offended? or was
46 > > it just a joke? either way, i missed it. oh well.
47 > >
48 > > i appreciate any feedback on this so i can continue to improve
49 > > dispatch-conf
50 >
51 > Not just one word. I think it would've been more clear had I ended with
52 >
53 > and I don't appreciate <rant censored>
54 >
55 > but I didn't think about the inclusion of that additional word. Note
56 > that the censored rant was actually more directed at some various
57 > proprietary programs with which I've interacted, but the behavior you
58 > were talking about sounded the same.
59 >
60 > However, I've since learned that it only updates the RCS in its own RCS
61 > store, leaving the default RCS stores alone. So we're all happy on this
62 > point.
63 >
64 ok, cool, then i'll leave it the way it is, allowing it to add the
65 "gentoo recommended" configs for frozen files to the /etc/config-archive
66 RCS tree.
67 >
68 > That having been said... there's one lesson you should've taken from
69 > etc-update: vimdiff support.
70 >
71 two things here, first off, i think you misunderstand, i am not the
72 orginal coder of dispatch-conf, from what i gather he dissapeared at
73 some point. i just picked up dispatch-conf and started adding features
74 that i needed/wanted.
75
76 also, vimdiff sounds like a great idea! (i didn't even know such a thing
77 existed) but what about our emacs friends? is there an emacsdiff or
78 similar? i'd hate to trap a poor emacs user in a vi session :)
79
80 > Specifically, there appears to be no documentation regarding the
81 > interactive merge option, and it appears to assume a fixed screen
82 > resolution which is not similar enough to my screen resolution, editing
83 > the new file with $EDITOR requires that I make all of my previous edits
84 > by hand, by memory, the first time, and under no circumstances does it
85 > allow you to view the differences while one updates.
86 >
87 > I suspect that one could add support for this option by testing for the
88 > existance of the pager option, and if it is not defined, invoke the
89 > 'diff' program without piping its output anywhere. (Note: I have gotten
90 > some success using a pager of 'cat'. But vimdiff is not really happy
91 > with this option; it complains, and there's added latency, sometimes in
92 > unpleasant parts of the update.)
93 >
94 > Note that the behavior of dispatch-conf without one of its current
95 > mandatory options is probably not what is intended. I cannot be certain
96 > of what was intended, but I'd expect it to completely abort, which is
97 > not what it did. I'm not fully certain of what it did, but it was
98 > something with RCS in its own tree, which did not touch any of my files
99 > so far as I'm able to tell.
100
101 dispatch-conf doesn't have any mandatory options, when run with no
102 options it simply starts an interactive update of your config files. if
103 you have:
104
105 replace-cvs=yes
106 replace-wscomments=yes
107 replace-unmodified=yes
108
109 in your /etc/dispatch-conf.conf then it will automatically merge files
110 with only CVS header differences, whitespace and comments differences,
111 or files that the user has not modified himself (this option doesn't
112 seem to work 100% of the time, i havn't gone into the code to see how it
113 works/what's wrong with it yet)
114
115 thanks for your input Ed, once i get some more time to mess with
116 dispatch-conf i'll take a look at the issues you brought up.
117
118
119 --
120 gentoo-portage-dev@g.o mailing list