public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: default CONFIG_PROTECT behavior
Date: Mon, 18 Jun 2018 09:45:20 +0100	[thread overview]
Message-ID: <2580973.YgP3Mnn1kF@dell_xps> (raw)
In-Reply-To: <20180618023505.gi2wmq3hvcdkf6cm@matica.foolinux.mooo.com>

[-- Attachment #1: Type: text/plain, Size: 4271 bytes --]

On Monday, 18 June 2018 03:35:05 BST Ian Zimmerman wrote:
> On 2018-06-17 18:12, Mick wrote:
> > From the fine manual:
> >  z      Zap (delete) the new config file and continue.
> 
> So what do you do if the merge of this file is too hard and you want to
> do it another time?  The answer seems to be q (quit) or n (next), but
> _nothing_ in the documentation says this is safe.

I see what you mean.  The responsibility of not breaking your system, 
especially in gentoo, belongs to you, but we could all do with a bit of help 
from the devs.  Most of these config file update commands do not tell you if 
you will be breaking your system when you adopt or reject some new config file 
content or syntax change, although enotices tend to be informative enough in 
this respect.

Regarding the various options in dispatch-conf, this is my understanding of 
their relative safety:

zap - deletes the new config file with its default content.  You can't go back 
to review it to see what the devs are now proposing/mandating.  If the changes 
between your old config and the newly emerged config are significant, you 
could have application/system breakage and/or missing functionality since you 
have not configured it.  Applications and daemons you have set to start up in 
some runlevel can now fail at boot time - e.g. sshd - and leave you stranded.  
You can still re-emerge the package with --noconfmem to pull in afresh the new 
config file.

quit - will just exit dispatch-conf.  The new config files will be available 
for you to update to, next time you run dispatch-conf, or etc-update.  The 
previous points regarding safety also apply to this action.  Some changes in 
the config file can affect your system, or applications.  

next - will not deal at all with the current config file, just load the next 
config file in the queue for you to review.  If there is no other config file 
waiting for an update it will exit dispatch-conf.  Next time you run dispatch-
conf the file you skipped will be there for you to review.  The previous 
points regarding safety also apply to this action.


> > For files which have a lot of changes, some of which I wish to reject
> > and some to accept, I tend to use m (for merging).  Again from the
> > fine manual:
> > 
> > m      Interactively merge the current and new config files.
> 
> The problem (or multiple problems) here is that it doesn't say what is
> being merged into what (no, its not symmetric), and to compound that it
> doesn't just leave this file alone and quit or go on to the next file;
> it shows some diff again.  What does this new diff mean?  I can't make
> sense of it without answering my other questions.

While you're merging the new config content into your existing, a new 
temporary merge_file is created, a hybrid of the two.  Until you accept it, it 
will not replace your old config.

The second diff that comes up (if you press l) shows the changes you have 
accepted/rejected.  It gives you a chance to change your mind and abort this 
merge, so you can try it again, or to return another time to review the 
changes.  If you abort the merge_file is deleted.


> To clarify: I don't think this is simply a usability problem that can be
> addressed by using better or more verbose English.  I think there is a
> "big picture", a concept of what is being done, and this concept has not
> found its way into the documentation or the UI itself.
> 
> In particular, I suspect the developers think of it as merging my mods
> into the "official" packaged versions, while I want to handle it the
> other way: I see my version as the "master" or "trunk", and I want to
> merge the package mods into it.
> 
> But I really don't know.  I am confused :-P

I'm not sure if this is how the devs have been thinking config file updates 
are meant to be handled, but TBH I can't see much of a difference in the 
concept.  When you use m to merge the files, left is your own/old 
configuration settings and right is the devs default settings.  Until you 
accept/reject all or some of these your own config file stays as is.

I haven't found a major difference between dispatch-conf and etc-update in 
their usage, the former uses letters, the latter numbers in their menu of 
actions.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2018-06-18  8:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-17 16:17 [gentoo-user] default CONFIG_PROTECT behavior Ian Zimmerman
2018-06-17 16:42 ` Andrew Udvare
2018-06-17 17:08   ` [gentoo-user] " Ian Zimmerman
2018-06-17 17:12     ` Mick
2018-06-17 22:38       ` Peter Humphrey
2018-06-18 14:05         ` Daniel Frey
2018-06-18  2:35       ` Ian Zimmerman
2018-06-18  7:27         ` Neil Bothwick
2018-06-18 15:34           ` Rich Freeman
2018-06-19 15:15             ` Ian Zimmerman
2018-06-19 16:10               ` Rich Freeman
2018-06-19 17:40               ` Kai Peter
2018-06-20  3:18                 ` Ian Zimmerman
2018-06-18  8:45         ` Mick [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2580973.YgP3Mnn1kF@dell_xps \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox