public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sven Vermeulen <sven.vermeulen@rug.ac.be>
To: Dhruba Bandopadhyay <dhruba@codewordt.co.uk>
Cc: gentoo-dev@gentoo.org, gentoo-user@gentoo.org
Subject: Re: [gentoo-dev] etc-update & ._cfg* files: major issue with gentoo?
Date: Mon, 6 Jan 2003 08:37:21 +0100	[thread overview]
Message-ID: <20030106073721.GA1312@Daikan.pandora.be> (raw)
In-Reply-To: <33052.192.168.0.8.1041817268.squirrel@webmail.codewordt.co.uk>

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

On Mon, Jan 06, 2003 at 01:41:08AM -0000, Dhruba Bandopadhyay wrote:
> (1) It is not completely clear which files should be deleted and which
> overwritten.

Those that you didn't alter may probably be overwritten by the newer version,
the others would probably be better left alone, but it's still a good idea to
see the new file, for instance if there are new options in the package.

I'm glad that Portage doesn't touch my configfiles. I should be prompted (as
I am) if there are new configfiles available, and I should be asked if I want
to use them or not. So for me Portage is working fine.

> (3) There are no guidelines on the use of etc-update.   Although,
> documentation does warn that etc-update can be dangerous and must be used
> with care, how is the non-expert user to interpret this advice and how
> much does it really tell him about the use of it?

[... From the FAQ ...]

When updating a package using emerge or ebuild, how do I avoid clobbering my
config files? 

Portage now includes config file management support by default. Type emerge
--help config for more details. The (overly) simple answer is that if a
package installs foo somewhere under /etc, and another foo already exists
there, then the new foo will instead be renamed to ._cfgxxxx_foo in that
directory. A useful tool for examining and updating any protected config
files is etc-update, currently obtained by emerge app-admin/gentoolkit. 

[... From the Portage Manual ...]

*  etc-update : shell script using vim to assist with the merging of /etc
		files (can be dangerous if used incorrectly)

If I am not mistaken, these are the only documents that mention etc-update.
In the Portage Manual is said that it can be dangerous if used incorrectly.
This is true, for instace when etc-update wants to use a new /etc/fstab
(which has occured frequently) and the user blindly accepts, he will be
placed with an illegal /etc/fstab.

However, I do believe that the person in question should be held liable for
his own actions. If he doesn't read what etc-update sais, he shouldn't use
it.


Perhaps a nice feature would be that etc-update sais if the original file has
been altered by the user or not, thus helping the user in his decision wheter
or not to use the new configfile.

> (4) If files are not sorted they stay in their locations indefinitely,
> increase in number and portage warns the user about them on its every use.

Don't tell me you want to disable the warning? There are occasions that ppl
just can't easily use etc-update after an emerge -pu world. For instance
systems that monitor the state of the important files with AIDE: they need to
do a lot more than just accept or decline etc-update proposals.

Or you just don't have the time for your configfiles right now; you surely
don't want to forget that there are new configfiles available? 

> (5) Even if one does see differences in older versions and new ones how
> does one tell if these differences should be preserved or discarded?

Lines with a "-" in front are removed, those with "+" in front are added. So
what you see are the differences between the old and the new configfile.

> (6) If errors or difficulties result how does one rollback?

Not. This could be handy, but also makes the system bigger. Not all ppl want
a Portage-handled rollback (I don't), since they have their own way of doing
things (it's called backupsà :).

> I can speak from experience about suffering from problems.  For instance
> today, despite sorting files as carefully as I could, gdm won't load
> anymore and shows no error messages since gdm files were overwritten
> (luckily I use xdm) and also fonts in gnome related applications are now
> huge and different because font locations were changed.  Now, I did look
> at the content of these files before I replaced the older versions but how
> is one to know beforehand what is going to cause issues?

Welcome to the wonderfull world of learning.
 
Wkr,
	Sven Vermeulen
-- 
	Fighting for peace is like fucking for virginity.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2003-01-06  7:39 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-06  1:41 [gentoo-dev] etc-update & ._cfg* files: major issue with gentoo? Dhruba Bandopadhyay
2003-01-06  2:27 ` [gentoo-dev] " Brian Jackson
2003-01-06  5:24   ` Viktor Lakics
2003-01-06  6:03     ` Brian Jackson
2003-01-06 10:49     ` Jeremy Wohl
2003-01-06  6:40   ` Joseph Carter
2003-01-06  7:25 ` Kai Großjohann
2003-01-06 10:26   ` Toby Dickenson
2003-01-06 13:15     ` Thomas T. Veldhouse
2003-01-06 13:02   ` Bengt Gorden
2003-01-10 11:10     ` Kai Großjohann
2003-01-10 15:25       ` Brian Hall
2003-01-10 15:33         ` Oliver Rutherfurd
2003-01-06 15:20   ` Joseph Carter
2003-01-06  7:37 ` Sven Vermeulen [this message]
     [not found] ` <200301060054.29991.absinthe@pobox.com>
2003-01-10 22:38   ` Kai Großjohann
2003-01-10 23:05     ` William Kenworthy
2003-01-11  1:48       ` Joseph Carter
2003-01-11 10:14       ` Kai Großjohann
2003-01-11 15:19         ` [gentoo-dev] Diff alternatives for etc-update (WAS: etc-update & ._cfg* files: major issue with gentoo?) Dylan Carlson
     [not found]           ` <84hecfmmpb.fsf@lucy.cs.uni-dortmund.de>
2003-01-11 21:29             ` [gentoo-dev] Re: Diff alternatives for etc-update Dylan Carlson
2003-01-11 21:44               ` Paul de Vrieze
2003-01-11 23:59                 ` Dylan Carlson
2003-01-13 22:39           ` [gentoo-dev] Diff alternatives for etc-update (WAS: etc-update & ._cfg* files: major issue with gentoo?) Peter Ruskin
2003-01-13 22:50             ` Dylan Carlson

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=20030106073721.GA1312@Daikan.pandora.be \
    --to=sven.vermeulen@rug.ac.be \
    --cc=dhruba@codewordt.co.uk \
    --cc=gentoo-dev@gentoo.org \
    --cc=gentoo-user@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