Gentoo Archives: gentoo-dev

From: Marius Mauch <genone@××××××.de>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Some suggestions
Date: Sat, 06 Sep 2003 19:50:45
Message-Id: 20030906215042.7bc68670.genone@genone.de
In Reply to: [gentoo-dev] Some suggestions by David Sankel
1 On 09/06/03 David Sankel wrote:
2
3 > Hello gentoo developers,
4 >
5 > I would like to say great job to all of you. Gentoo is an
6 > exceptional
7 > distribution. I have been using it for about 7 months now. You all
8 > should be very proud of yourselves for creating a very solid software
9 > product.
10 >
11 > I am an independent contractor with several years experience in user
12 > interaction with software systems. I came up with a few suggestions
13 > for the gentoo system. It is my hope that you will find them
14 > interesting or informative.
15 >
16 > 1) etc-update changes for a more automated system update
17 >
18 > etc-update allows you to automatically update (noted) etc files that
19 > one never changed from their last emerge. This could save a lot of
20 > maintenance time if it was put in a cron job to routinely do that
21 > after an "emerge sync;emerge -u world"
22 > The user then wouldn't have to look at all of the etc files to see
23 > if they were changed after every "emerge sync; emerge-u world".
24
25 You don't really use emerge -u world in a cron job? emerge -u world and
26 etc-update can bring severe changes to your system and might create
27 problems if used without caution, so I strongly discourage anyone from
28 running them in a cron-job.
29 But I agree that etc-update needs some improvements, haven't looked at
30 dispatch-conf yet, maybe it does the job better.
31
32 > 2) make.conf updates to be more automated
33 >
34 > Most gentoo users, I believe, modify this file. This specific file
35 > changes quite often with updates. Since most users only modify the
36 > "USE" and "CFLAGS" components, having an update that is automatic is
37 > plausible. This feature is a trade off between the integrity and
38 > consistency of the system verses end-user maintenance time.
39
40 make.conf updates are annoying, maybe we can make an exception in
41 etc-update for it to handle it different (only look for new variables).
42
43 > 3) emerge -u world "NOTICE:" output changes.
44 >
45 > When doing an "emerge -u world" several "NOTICE:"'s fly by on the
46 > screen. For many users, they go unread although they contain important
47 > information in a lot of cases. If these "NOTICE:"'s are cached and
48 > output at the end of an "emerge -u world", their readership would have
49 > a dramatic increase. This would allow interested gentoo users to be
50 > more informed of their system.
51
52 There are several bugs open about this.
53
54 > 4) emerge -u world progress bar option
55 >
56 > Most users probably care less about the compilation stages of their
57 > update in comparison to the percentage of completion. A progress bar
58 > in this area would be a nice aesthetic and informative addition for
59 > most users. In order for this to happen, the output of the "emerge -u
60 > world" command would probably have to be standardized with some flags
61 > to mark the beginning and end of a compile.
62
63 A accurate progress bar is nearly impossible as compile times differ
64 from package to package (and are independent of package size too). The
65 only thing that would be rather easy to implement is a progrssbar that
66 only advance when a package is finished and even then we need something
67 to keep it on the screen, so ncurses or something similar would be
68 needed.
69
70 > 5) A simple graphical front end to maintenance commands such as
71 > "emerge sync", "emerge -u world", and "etc-update".
72
73 kportage, portagemaster and there are several others not in the tree
74 yet.
75
76 > It would be a nice feature if users didn't have to commit these
77 > commands to memory for regular maintenance. The maintenance menu
78 > might have an icon on all of the default desktops. If this type of
79 > program was implemented, it could be prominently displayed and made
80 > known for all new users. Perhaps the install documentation could use
81 > this tool as much as possible.
82
83 I disagree, every user should know the basic system management commands.
84 We really should not rely on GUI tools. It would just add another
85 possible point of failure.
86
87 > 6) A streamlined GUI install.
88 >
89 > I'm sure this one has been brought up before. I consider this the
90 > "1.0" maker of the gentoo distribution. In such an installer, I
91 > suggest that the CFLAGS should not be modified by default. It has
92 > been shown in several places that optimizing these does not give a
93 > significant enough performance increase. It should stay, of course,
94 > as an option though.
95
96 Most people (including me) don't like that, there are other distros for
97 that. One approach I like is glis (gentoo linux install script), beause
98 it doesn't dumb down the install process.
99 Search the forums, there are several threads about this issue.
100
101 > 7) Emerge -S and Emerge -s speed improvements.
102 >
103 > I don't know why these commands perform as slow as they do. My
104 > intuition says that they could be an order of magnitude faster.
105 > Perhaps a reimplementation in C/C++ or a data format change could
106 > help.
107
108 They are slow because they have to access several thousand files. Search
109 the forums or bugzilla for esearch, that is a script using a static
110 index to improve search times to about one second.
111 A rewrite in C/C++ would only cost a lot of time and won't bring much in
112 terms of speed (this has come up several times). One thing that has some
113 potential to improve the speed is to use a database for the portage
114 tree, but that won't happen anytime soon. There is the portagesql
115 project at breakmygentoo.net that tries to achieve such a solution,
116 haven't tried it yet.
117
118 Marius
119
120 --
121 Public Key at http://www.genone.de/info/gpg-key.pub
122
123 In the beginning, there was nothing. And God said, 'Let there be
124 Light.' And there was still nothing, but you could see a bit better.

Replies

Subject Author
Re: [gentoo-dev] Some suggestions Thomas de Grenier de Latour <degrenier@×××××××××××.fr>