Gentoo Archives: gentoo-user

From: Rich Freeman <rich0@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: default CONFIG_PROTECT behavior
Date: Mon, 18 Jun 2018 15:34:57
Message-Id: CAGfcS_=fxyYtQsbJoOzB1gqNDL2H_9mr9bCnq0QQLVd+_518uw@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: default CONFIG_PROTECT behavior by Neil Bothwick
1 On Mon, Jun 18, 2018 at 3:27 AM Neil Bothwick <neil@××××××××××.uk> wrote:
2 >
3 > There are other config managers that handle this differently, if you
4 > don't like etc-update try another. I tried a few some years ago and
5 > settled on conf-update, others swear by cfg-update.
6
7 Since nobody else is shilling it, I will. I don't think I could stand
8 Gentoo without cfg-update. When I run Arch in a container it makes me
9 want to port it (maybe Arch has a similar solution - I don't use it
10 enough to know).
11
12 With the automatic 3-way merges 95% of the time I don't even look at
13 config file changes. If the parts of the files I've customized
14 haven't changed, then the diff gets re-applied. Once in a while I get
15 a merge conflict and then meld pops up showing me a 3-way diff.
16
17 I'll admit that it has a few issues. One is that it isn't obvious how
18 to handle manual 3-way merges. The right version is the new upstream
19 file. The left version is your current file. The middle is the
20 previous upstream file, so the diffs on the left show what you changed
21 before, and the diffs on the right show what upstream changed.
22 Chances are you'll want to pass through some of those, so just hit all
23 the merge-to-left buttons on those. I usually just save the new file
24 and don't touch the previous two, so that cfg-update correctly saves
25 the original upstream file for re-use. However, perhaps I should be
26 saving a new middle version merged with the upstream. I haven't
27 confirmed exactly how it behaves.
28
29 Upstream is largely dead on cfg-update, and I'm basically nursing it
30 along since I can't live without it. Feel free to give it a shot.
31
32 In the beginning it won't be much better than dispatch-conf, until it
33 builds up its library of past changes.
34
35 Oh, the other tool you'll want to use is etckeeper to manage /etc in a
36 git repo and auto-commit changes/etc with package manager hooks. That
37 is a cross-distro tool, and will save your butt if you mess something
38 up.
39
40 --
41 Rich

Replies

Subject Author
[gentoo-user] Re: default CONFIG_PROTECT behavior Ian Zimmerman <itz@××××××××××××.org>