Gentoo Archives: gentoo-portage-dev

From: Devon Miller <devon.c.miller@×××××.com>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Few things, which imho would make portage better
Date: Tue, 14 Mar 2006 13:20:39
Message-Id: c52221f0603140519x16b641d5t4bf33977cbca9928@mail.gmail.com
In Reply to: Re: [gentoo-portage-dev] Few things, which imho would make portage better by tvali
1 Try "emerge esearch". Replace "emerge --sync" with "esync", "emerge -s" with
2 "esearch", and "emerge -S" with "esearch -S".
3 After running "emerge --update ...", run "eupdatedb".
4
5 As for dependency tree: "emerge --pretend --tree world"
6 Or, to also check additional dependencies: "emerge --deep --pretend --tree
7 world"
8 And, if you want to see how *everything* relates: "emerge --deep --emptytree
9 --pretend --tree"
10
11 dcm
12
13
14 On 3/14/06, tvali <qtvali@×××××.com> wrote:
15 >
16 > Another place, where it would be good, is that it could interact well with
17 > GUI and it's Apply button.
18 >
19 > Another thing, what would be imho improved, is the speed of following
20 > functions:
21 > * emerge -s, emerge -S
22 > They should be cached somehow.
23 >
24 > Also, i think that when speaking about *speed* of portage, which is imho
25 > notably slow right now (speed of searching, building trees and so on),
26 > sql-support should be considered. In /usr/portage/, i see many folders and
27 > files, which tend to contain one or two words, lists of hashes and so on.
28 > Actually i see relational database there. With many caches and other
29 > optimizations it could be tuned fast, but having SQL doing all that, it
30 > would be achieved very simply (maybe it would be a jump to have all linux
31 > configurations in one SQL "filesystem"? ...ok, just fantasy:))
32 >
33 > There are several small and simple SQL databases. With such tool, big
34 > parts of portage become unnessecary, but it's speed will become much faster.
35 > This should be optional if one uses some tiny sql, mysql or big clustered
36 > sql with nas and load-balancer, but by default some tiny version of SQL
37 > should be built.
38 >
39 > Also, i currently dont see a possibility to see dependency tree of
40 > installed package.
41 >
42 >
43 > 2006/3/14, tvali <qtvali@×××××.com>:
44 > >
45 > > I did think about some priorities too, so that it could be perfect for
46 > > me.
47 > >
48 > > It should be possible to add package with a priority. I will give you an
49 > > use case and explanation how i would use portage.
50 > >
51 > > emerge --justadd kdebase-meta kicker --priority 10
52 > > emerge --justadd kdenetwork-meta kdeutils-meta kdeadmin-meta --priority
53 > > 9
54 > > emerge --justadd kdeedu-meta kdetoys-meta kdegames-meta kdeartwork-meta
55 > > --priority 1
56 > > emerge --justadd koffice-meta kdegraphics-meta kdemultimedia-meta
57 > > --priority 5
58 > > emerge --justadd kdewebdev-meta kdevelop htmltidy kompare cervisia
59 > > --priority 7
60 > > emerge --justadd kdepim-meta --priority 3
61 > > emerge --justadd kdeaddons-meta kde-meta --priority 20
62 > > emerge --changepriority kdeaddons-meta kde-meta --priority 0
63 > >
64 > > Now, when i run emerge --update, it should:
65 > >
66 > > * Sort packages in such order that packages with highest priority would
67 > > be installed as soon as possible
68 > > * Start installing
69 > > * If something goes wrong, then skip this package and all, which depend
70 > > on it. This should be optional, if those, which dont depend on it, but are
71 > > needed by same package, will stay in their positions (go to end of same
72 > > priority packages) or go to end.
73 > >
74 > > When i need to use my computer and need much resources, i will press
75 > > ctrl-c, use it, then start (continue) emerge --update.
76 > >
77 > > 2006/3/14, tvali <qtvali@×××××.com>:
78 > > >
79 > > > 2006/3/14, Simon Stelling <blubb@g.o>:
80 > > > >
81 > > > > tvali wrote:
82 > > > > > * Add package to "world" checking all dependencies, but not
83 > > > > emerging
84 > > > > > * Remove package from "world" without unmerging
85 > > > >
86 > > > > Uhm, why would you want that?
87 > > > >
88 > > >
89 > > > On my computer, building takes several hours on some packages. I have
90 > > > used it in such way that it builds in several windows on the same time, but
91 > > > i guess that that's not at all the best practice, especially with some
92 > > > combinations of packages. So i would like to add all packages, seeing all
93 > > > blocks and inter dependencies, then start building when ready (and go out of
94 > > > home, when it builds, and be sure that it will do it's best when i'm away).
95 > > >
96 > > > > * Save all important messages into file instead of beeping (i may be
97 > > > > away
98 > > > > > from home); optionally replay them at end of update
99 > > > >
100 > > > > elog can do this.
101 > > >
102 > > >
103 > > > Will check out.
104 > > >
105 > > > > * When updating or installing new package, if something goes wrong,
106 > > > > still
107 > > > > > emerge other packages, which havent failed packages as
108 > > > > dependencies -- in my
109 > > > > > case, for example, when i do --update, for example, then the fact
110 > > > > that
111 > > > > > update of first package fails does not definitely mean that i dont
112 > > > > want to
113 > > > > > update others
114 > > > >
115 > > > > --resume
116 > > >
117 > > >
118 > > > I know --resume, but that's not what i meant.
119 > > >
120 > > > Imagine the situation:
121 > > > emerge -p package1 package2
122 > > >
123 > > > part1 (needed by package1)
124 > > > part2 (needed by part3)
125 > > > part3 (needed by package2)
126 > > > part4 (needed by package2)
127 > > > part5 (needed by both package1 and package2)
128 > > > package1
129 > > > package2
130 > > >
131 > > > now i start "emerge package1 package2" and go to work (or sleep or
132 > > > party or sauna).
133 > > >
134 > > > part2 fails -- some bug or misconfiguration.
135 > > >
136 > > > currently it means that when i came back home, i see that part1 is
137 > > > built, but nothing more and 4-5 hours are actually just wasted.
138 > > >
139 > > > There should be a way to have all those built when i came home:
140 > > >
141 > > > part1 (needed by package1)
142 > > > part4 (needed by package2)
143 > > > part5 (needed by both package1 and package2)
144 > > > package1
145 > > >
146 > > > There should be an error message listing all others. Also, i would add
147 > > > them to world and then emerge so that --update would try to emerge them
148 > > > again, asking me about all previously failed packages when i start it, if i
149 > > > want to retry this time (yes, no, all, none).
150 > > >
151 > > > --
152 > > > > Kind Regards,
153 > > > >
154 > > > > Simon Stelling
155 > > > > Gentoo/AMD64 Developer
156 > > > > --
157 > > > > gentoo-portage-dev@g.o mailing list
158 > > > >
159 > > > >
160 > > >
161 > > >
162 > > > --
163 > > > tvali
164 > > > (e-mail: " qtvali@×××××.com"; msn: " qtvali@×××××.com";
165 > > > icq: "317-492-912")
166 > > >
167 > > > Ühe eesti internetifirma lehel kohtasin tsitaati:
168 > > > If you don't do it excellently, dont do it at all. Because if it's not
169 > > > excellent, it won't be profitable or fun, and if you're not in business for
170 > > > fun or profit, what the hell are you doing here?
171 > > > Robert Townsend
172 > > >
173 > >
174 > >
175 > >
176 > > --
177 > > tvali
178 > > (e-mail: " qtvali@×××××.com"; msn: "qtvali@×××××.com";
179 > > icq: "317-492-912")
180 > >
181 > > Ühe eesti internetifirma lehel kohtasin tsitaati:
182 > > If you don't do it excellently, dont do it at all. Because if it's not
183 > > excellent, it won't be profitable or fun, and if you're not in business for
184 > > fun or profit, what the hell are you doing here?
185 > > Robert Townsend
186 > >
187 >
188 >
189 >
190 > --
191 > tvali
192 > (e-mail: "qtvali@×××××.com"; msn: "qtvali@×××××.com";
193 > icq: "317-492-912")
194 >
195 > Ühe eesti internetifirma lehel kohtasin tsitaati:
196 > If you don't do it excellently, dont do it at all. Because if it's not
197 > excellent, it won't be profitable or fun, and if you're not in business for
198 > fun or profit, what the hell are you doing here?
199 > Robert Townsend
200 >

Replies