Gentoo Archives: gentoo-dev

From: Brian Jackson <brian-lists@××××.com>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Re: etc-update & ._cfg* files: major issue with gentoo?
Date: Mon, 06 Jan 2003 05:58:00
Message-Id: 20030106060303.5316.qmail@escalade.vistahp.com
In Reply to: Re: [gentoo-dev] Re: etc-update & ._cfg* files: major issue with gentoo? by Viktor Lakics
1 I like my menus better ;) Mine will save the diff to a file and clean up the
2 cfg file if you want. I don like that ability to show the diff again though.
3 I think I might add it. I guess it is good to have choices. I was even
4 thinking about writing a PyQT version.
5
6 Viktor Lakics writes:
7
8 > Brian and Dhruba,
9 >
10 > This is exactly what etc-update does...I use it with vim diff mode,
11 > which shows you diff side by side and let you make the changes if
12 > you want, and drops you back to the selection of action...
13
14 Thats nice if you use vim. I don't.
15
16 >
17 > etc-update even has an ncurses interface (undocumented), just set
18 > mode="1" in /etc/etc-update.conf.
19
20 I just tried it out and it seems like only the first screen is curses, with
21 everything else being text based.
22
23 >
24 > For vim mode uncomment the relevant section in the same file.
25 >
26 > There is a script published in the forums
27 >
28 > (http://forums.gentoo.org/viewtopic.php?t=13390&sid=8a5a38efe9621ddcc819c58efd50abbf),
29 >
30 > which can "auto-update" your config files -> this is GREAT because
31 > it helps you with those files YOU have not tuoched before (these are
32 > updated) as for the rest what you custumised, you will want to know
33 > what portage does with them...
34 >
35 > Hope this helps... -- Viktor
36 >
37 >
38 >
39 >
40 > On Sun, Jan 05, 2003 at 08:27:40PM -0600, Brian Jackson wrote:
41 >> I didn't even know about etc-update until I saw you mention it in your
42 >> email. So, being the good sysadmin I am, I wrote a script that has similar
43 >> functionality. I have actually been getting it ready to release for the
44 >> past week or 2. I put it up at http://www.mdrx.com/brian/ It finds all the
45 >> rogue ._cfg* files and diff's them against the real cfg file and displays
46 >> the diff's. Let me know if you find any problems with it. Also let me know
47 >> if you would like to see any other features.
48 >>
49 >> --Brian Jackson
50 >>
51 >> Dhruba Bandopadhyay writes:
52 >>
53 >> >Hello,
54 >> >
55 >> >I am having great difficulty dealing with one particular feature of gentoo
56 >> >and would like to bring it to your attention. I am writing in length
57 >> >since I very much like gentoo and would like to do whatever I can to
58 >> >further its progress.
59 >> >
60 >> >When emerging packages configuration files beginning with ._cfg* are left
61 >> >in /etc and other locations and on subsequent emerges portage warns that
62 >> >one has X number of files remaining. Now, on many occassions I have had
63 >> >several of these files on my system and have postponed dealing with them
64 >> >simply because they are a hassle. Once in a while however, I use
65 >> >etc-update to sort them with care.
66 >> >
67 >> >There are many problems with the way this is done for a non-expert user
68 >> >(which may include myself) and the ones below are only a few of them.
69 >> >
70 >> >(1) It is not completely clear which files should be deleted and which
71 >> >overwritten.
72 >> >(2) Errors can result from making necessary changes using etc-update.
73 >> >(3) There are no guidelines on the use of etc-update. Although,
74 >> >documentation does warn that etc-update can be dangerous and must be used
75 >> >with care, how is the non-expert user to interpret this advice and how
76 >> >much does it really tell him about the use of it?
77 >> >(4) If files are not sorted they stay in their locations indefinitely,
78 >> >increase in number and portage warns the user about them on its every use.
79 >> >(5) Even if one does see differences in older versions and new ones how
80 >> >does one tell if these differences should be preserved or discarded?
81 >> >(6) If errors or difficulties result how does one rollback?
82 >> >(7) Shoud sorting be as time consuming as it is currently especially with
83 >> >the interactive merging of text?
84 >> >
85 >> >I can speak from experience about suffering from problems. For instance
86 >> >today, despite sorting files as carefully as I could, gdm won't load
87 >> >anymore and shows no error messages since gdm files were overwritten
88 >> >(luckily I use xdm) and also fonts in gnome related applications are now
89 >> >huge and different because font locations were changed. Now, I did look
90 >> >at the content of these files before I replaced the older versions but how
91 >> >is one to know beforehand what is going to cause issues?
92 >> >
93 >> >I am not referring to specific errors here but discussing the
94 >> >functionality of this feature. Does this really have to be as much of an
95 >> >effort and annoyance as it is now and must one lose out on the benefits of
96 >> >new files simply because they do not dare overwrite the older files? I
97 >> >would hate for something like this to be a drawback of an otherwise
98 >> >automated and applaudable OS.
99 >> >
100 >> >I hope I have been clear in expressing myself and I don't think for a
101 >> >minute that I'm alone in this issue. Hence, I would very much like to
102 >> >hear comments and suggestions whatever they may be from users and
103 >> >developers alike.
104 >> >
105 >> >Best wishes.
106 >> >--
107 >> >Dhruba Bandopadhyay | dhruba@××××××××××××.uk | ICQ 31628525
108 >> >Gentoo Linux 1.4rc1 | Vanilla Sources 2.4.20 | Enlightenment 16.5
109 >> >
110 >> >
111 >> >
112 >> >--
113 >> >gentoo-dev@g.o mailing list
114 >> >
115 >>
116 >>
117 >> --
118 >> gentoo-dev@g.o mailing list
119 >>
120 >
121 > --
122 > _______________________________________
123 > Viktor Lakics
124 > email: viktor@××××××.net
125 >
126 > --
127 > gentoo-dev@g.o mailing list
128 >
129
130
131 --
132 gentoo-dev@g.o mailing list