public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Cleaning redundant configuration files
Date: Tue, 31 May 2011 08:45:58 +0200	[thread overview]
Message-ID: <BANLkTimi+22ttK-PNtL=d34uu7qPG+Fydw@mail.gmail.com> (raw)
In-Reply-To: <20110530230808.41ecb29a@karnak.local>

On Tue, May 31, 2011 at 12:08 AM, David W Noon <dwnoon@ntlworld.com> wrote:
> On Mon, 30 May 2011 21:20:01 +0200, Neil Bothwick wrote about Re:
> [gentoo-user] Cleaning redundant configuration files:
>
>>On Mon, 30 May 2011 19:05:10 +0100, David W Noon wrote:
> [snip]
>>> The only algorithmic approach with which I would feel comfortable
>>> would be if the file were checked against the previous contents of a
>>> package and found present, but has disappeared from the new contents
>>> of that same package.  Even then, I would want manual confirmation.
>>
>>That omits the most common cause of orphaned files, that the package
>>owning it has been unmerged.
>
> You have just touched on an annoyance of unmerge, in that it does not
> clean up configuration files that have been modified.  It removes files
> that are still in the same state as when the package was emerged, but
> not those modified by the user.  I don't see how user changes make the
> file more important than would be in its vanilla state.
>
> Perhaps an option to remove (by an unmerge, not etc-update or the
> like) these genuinely orphaned files could be set in /etc/make.conf.

The logic appears to be that an unmodified file will be re-instated
as-is should the package be re-merged, so nothing changes. A modified
config file is more problematic - if the package is re-merged, which
version should be used? The old one or the new vanilla one? Presumably
the user modified the file last time round for a reason and that
reason might still be valid.

Only one sensible choice remains - present both files to the human
user and ask them to decide.

If memory serves, this is in some doc somewhere, I know I read it long
ago but don't remember where.


-- 
Alan McKinnon
alan dot mckinnon at gmail dot com



  parent reply	other threads:[~2011-05-31  6:47 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gYf4B-3WW-9@gated-at.bofh.it>
     [not found] ` <gYf4B-3WW-11@gated-at.bofh.it>
     [not found]   ` <gYf4B-3WW-13@gated-at.bofh.it>
     [not found]     ` <gYf4B-3WW-15@gated-at.bofh.it>
     [not found]       ` <gYf4B-3WW-17@gated-at.bofh.it>
     [not found]         ` <gYf4B-3WW-7@gated-at.bofh.it>
     [not found]           ` <gYgal-5KW-13@gated-at.bofh.it>
2011-05-30 22:08             ` [gentoo-user] Cleaning redundant configuration files David W Noon
2011-05-31  2:29               ` Dale
2011-05-31  5:35                 ` Graham Murray
2011-05-31  6:22                   ` Dale
2011-05-31  6:45               ` Alan McKinnon [this message]
2011-05-31  7:01                 ` Volker Armin Hemmann
2011-05-31  7:59               ` Neil Bothwick
2011-05-31 12:34                 ` James Wall
2011-05-31 13:54                   ` Neil Bothwick
     [not found] <gYZ7s-6da-9@gated-at.bofh.it>
     [not found] ` <gZj69-67O-3@gated-at.bofh.it>
     [not found]   ` <gZj69-67O-5@gated-at.bofh.it>
     [not found]     ` <gZj69-67O-7@gated-at.bofh.it>
     [not found]       ` <gZj69-67O-1@gated-at.bofh.it>
     [not found]         ` <gZjpw-6zt-9@gated-at.bofh.it>
2011-06-02 20:28           ` David W Noon
2011-06-02 22:46             ` Volker Armin Hemmann
2011-06-02 23:56             ` Neil Bothwick
     [not found] ` <gZE0Y-7Qm-45@gated-at.bofh.it>
     [not found]   ` <gZE0Y-7Qm-47@gated-at.bofh.it>
     [not found]     ` <gZE0Y-7Qm-49@gated-at.bofh.it>
     [not found]       ` <gZE0Y-7Qm-43@gated-at.bofh.it>
     [not found]         ` <gZEki-7L-15@gated-at.bofh.it>
2011-06-03 16:27           ` David W Noon
     [not found] <gYVZV-Ko-33@gated-at.bofh.it>
     [not found] ` <gYXIm-3Ig-7@gated-at.bofh.it>
     [not found]   ` <gYXIm-3Ig-9@gated-at.bofh.it>
     [not found]     ` <gYXIm-3Ig-11@gated-at.bofh.it>
     [not found]       ` <gYXIm-3Ig-13@gated-at.bofh.it>
     [not found]         ` <gYXIm-3Ig-15@gated-at.bofh.it>
     [not found]           ` <gYXIm-3Ig-17@gated-at.bofh.it>
     [not found]             ` <gYXIm-3Ig-19@gated-at.bofh.it>
     [not found]               ` <gYXIm-3Ig-21@gated-at.bofh.it>
     [not found]                 ` <gYXIm-3Ig-23@gated-at.bofh.it>
     [not found]                   ` <gYVZV-Ko-35@gated-at.bofh.it>
     [not found]                     ` <gYVZV-Ko-37@gated-at.bofh.it>
     [not found]                       ` <gYXIm-3Ig-25@gated-at.bofh.it>
     [not found]                         ` <gYXIm-3Ig-5@gated-at.bofh.it>
     [not found]                           ` <gYYbo-4Dw-9@gated-at.bofh.it>
2011-06-01 19:00                             ` David W Noon
2011-06-01 20:01                               ` Todd Goodman
2011-06-01 21:07                                 ` Dale
     [not found]                           ` <gYYbn-4Dw-1@gated-at.bofh.it>
2011-06-01 18:58                             ` David W Noon
2011-06-02 13:18                             ` Indi
2011-06-02 14:22                               ` Neil Bothwick
2011-06-02 14:40                                 ` Doug Hunley
2011-06-02 19:33                                   ` Mick
     [not found] ` <gZfYC-Um-17@gated-at.bofh.it>
     [not found]   ` <gZfYC-Um-9@gated-at.bofh.it>
     [not found]     ` <gZhnI-3aX-19@gated-at.bofh.it>
2011-06-02 16:24       ` Indi
     [not found] ` <gYVZV-Ko-39@gated-at.bofh.it>
     [not found]   ` <gYVZV-Ko-31@gated-at.bofh.it>
     [not found]     ` <gZ2I2-3TH-27@gated-at.bofh.it>
2011-06-02 16:26       ` David W Noon
2011-06-02 16:47         ` Neil Bothwick
2011-06-02 19:08         ` Alan McKinnon
     [not found] ` <gYYXM-5ZG-7@gated-at.bofh.it>
     [not found]   ` <gYYXM-5ZG-5@gated-at.bofh.it>
     [not found]     ` <gZp1U-7Eo-7@gated-at.bofh.it>
2011-06-03 14:52       ` David W Noon
2011-06-03 15:06         ` Bill Longman
2011-06-03 15:43         ` Alan McKinnon
2011-06-03 17:24         ` Volker Armin Hemmann
2011-06-03 17:32           ` Michael Orlitzky
2011-06-03 17:59         ` Dale
     [not found] <gYFV8-7a4-9@gated-at.bofh.it>
     [not found] ` <gYVdw-82K-5@gated-at.bofh.it>
     [not found]   ` <gYVdw-82K-7@gated-at.bofh.it>
     [not found]     ` <gYVdw-82K-9@gated-at.bofh.it>
     [not found]       ` <gYVdw-82K-11@gated-at.bofh.it>
     [not found]         ` <gYVdw-82K-13@gated-at.bofh.it>
     [not found]           ` <gYVdw-82K-15@gated-at.bofh.it>
     [not found]             ` <gYVdw-82K-17@gated-at.bofh.it>
     [not found]               ` <gYFV8-7a4-11@gated-at.bofh.it>
     [not found] ` <gYQ4a-7xc-5@gated-at.bofh.it>
     [not found]   ` <gYVdw-82K-3@gated-at.bofh.it>
     [not found]     ` <gYVnd-8jd-31@gated-at.bofh.it>
2011-06-01 15:52       ` David W Noon
2011-06-01 22:54         ` Alan McKinnon
     [not found]     ` <gYWjg-1rR-11@gated-at.bofh.it>
2011-06-01 17:35       ` David W Noon
2011-06-01 17:39         ` Todd Goodman
2011-06-01 18:06         ` Dale
2011-06-01 22:54           ` Neil Bothwick
2011-06-01 23:15             ` Dale
     [not found]     ` <gYYbo-4Dw-17@gated-at.bofh.it>
2011-06-01 18:53       ` David W Noon
2011-06-01 21:11         ` Dale
2011-06-02 22:45         ` Volker Armin Hemmann
2011-06-03  7:06           ` Alan McKinnon
     [not found] ` <gYQ4a-7xc-7@gated-at.bofh.it>
     [not found]   ` <gYQ4a-7xc-3@gated-at.bofh.it>
     [not found]     ` <gYQnv-7YP-7@gated-at.bofh.it>
     [not found]       ` <gYUAO-6SO-15@gated-at.bofh.it>
2011-06-02 13:09         ` Indi
2011-06-02 14:38           ` Alan McKinnon
     [not found]       ` <gZfOX-Gd-31@gated-at.bofh.it>
     [not found]         ` <gZhxo-3p9-37@gated-at.bofh.it>
2011-06-02 16:29           ` Indi
     [not found]           ` <gZpXX-KN-1@gated-at.bofh.it>
2011-06-03  8:37             ` Indi
     [not found] <gYA95-5RI-23@gated-at.bofh.it>
     [not found] ` <gYA95-5RI-25@gated-at.bofh.it>
     [not found]   ` <gYA95-5RI-27@gated-at.bofh.it>
     [not found]     ` <gYA95-5RI-29@gated-at.bofh.it>
     [not found]       ` <gYA95-5RI-31@gated-at.bofh.it>
     [not found]         ` <gYA95-5RI-33@gated-at.bofh.it>
     [not found]           ` <gYA95-5RI-35@gated-at.bofh.it>
     [not found] ` <gYA95-5RI-39@gated-at.bofh.it>
     [not found]   ` <gYA95-5RI-21@gated-at.bofh.it>
     [not found]     ` <gYDTj-3L9-11@gated-at.bofh.it>
2011-05-31 22:43       ` David W Noon
2011-05-31 22:56         ` Dale
2011-05-31 23:05         ` Neil Bothwick
2011-05-31 23:55           ` Dale
     [not found]     ` <gYGoa-84w-5@gated-at.bofh.it>
     [not found]       ` <gYH0R-uD-3@gated-at.bofh.it>
2011-06-01  9:31         ` Indi
2011-06-01  9:47           ` Alan McKinnon
2011-06-01 14:18             ` Mike Edenfield
2011-06-02 13:05             ` Indi
2011-06-02 14:48               ` Alan McKinnon
2011-06-02 23:48                 ` Stroller
2011-06-03  1:13                   ` Adam Carter
2011-06-03  1:40                     ` Volker Armin Hemmann
2011-06-03 15:54                   ` Alan McKinnon
2011-06-04  1:06                     ` Stroller
2011-06-01 15:04         ` David W Noon
2011-06-01 14:57       ` David W Noon
2011-06-01 15:06         ` Alan McKinnon
2011-06-01 16:12         ` Neil Bothwick
2011-06-01 18:10         ` Volker Armin Hemmann
     [not found] <gYiYx-29D-9@gated-at.bofh.it>
     [not found] ` <gYiYx-29D-11@gated-at.bofh.it>
     [not found]   ` <gYiYx-29D-13@gated-at.bofh.it>
     [not found]     ` <gYiYx-29D-15@gated-at.bofh.it>
     [not found]       ` <gYiYx-29D-17@gated-at.bofh.it>
     [not found]         ` <gYiYx-29D-19@gated-at.bofh.it>
     [not found]           ` <gYiYx-29D-21@gated-at.bofh.it>
     [not found]             ` <gYiYx-29D-7@gated-at.bofh.it>
     [not found]               ` <gYsbv-OD-21@gated-at.bofh.it>
2011-05-31 16:26                 ` David W Noon
2011-05-31 20:29                   ` Mick
2011-05-31 23:14                   ` Neil Bothwick
2011-05-31 23:48                     ` Peter Humphrey
2011-06-01  8:46                       ` Alan McKinnon
2011-06-01  9:04                       ` Neil Bothwick
     [not found] <gYc6K-790-11@gated-at.bofh.it>
     [not found] ` <gYc6K-790-13@gated-at.bofh.it>
     [not found]   ` <gYc6K-790-15@gated-at.bofh.it>
     [not found]     ` <gYc6K-790-9@gated-at.bofh.it>
     [not found]       ` <gYdcu-LK-1@gated-at.bofh.it>
2011-05-30 18:05         ` David W Noon
2011-05-30 19:05           ` Neil Bothwick
2011-05-30 20:41           ` Florian Philipp
     [not found] <gWtbJ-3ey-43@gated-at.bofh.it>
     [not found] ` <gWtlo-3t9-7@gated-at.bofh.it>
     [not found]   ` <gY4iS-2dC-25@gated-at.bofh.it>
2011-05-30 14:48     ` David W Noon
2011-05-30 15:58       ` Neil Bothwick

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='BANLkTimi+22ttK-PNtL=d34uu7qPG+Fydw@mail.gmail.com' \
    --to=alan.mckinnon@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