1 |
On Wed, 7 Apr 2004 00:58:49 -0400 |
2 |
Mike Frysinger <vapier@g.o> wrote: |
3 |
|
4 |
> On Wednesday 07 April 2004 12:42 am, Norberto Bensa wrote: |
5 |
> > What's wrong with: --oneshot ? |
6 |
> |
7 |
> to quote the original e-mail: |
8 |
> yes, you can explicitly exclude things w '--oneshot', |
9 |
> but that has to be done each time & has no short equivalent. |
10 |
|
11 |
I fully agree it needs a shortcut, and I would add that it needs |
12 |
more visibility in the docs. When you read forums, you realize |
13 |
that users almost never use this option when they should: each |
14 |
time somebody has a problem that can be solved by remerging a |
15 |
dependency (for instance a library, to add a USE flag or to bump |
16 |
it because a bug is solved), the answer other users give is |
17 |
"emerge libfoobar". And when I advice somebody to do an "emerge |
18 |
--oneshot something", I always get a "What is --oneshot, why |
19 |
should I use that here?". |
20 |
|
21 |
Sure, in an ideal world, users should never need to use this |
22 |
option. But because things are not always perfect, because |
23 |
packages sometimes have bugs and because portage has some |
24 |
limitations, the need to reemerge some libs happens from time to |
25 |
time. There are even some ebuilds that advice it in their einfo |
26 |
messages (maybe adding the command with --oneshot there would be |
27 |
a good start to teach users when to use it). |
28 |
|
29 |
I think the portage user guide needs a paragraph that would say, |
30 |
in short: |
31 |
-------- |
32 |
When you want to install a new package, use "emerge package". |
33 |
But when you want to re-emerge something that is already |
34 |
installed, for instance to update it or change its USE flags, use |
35 |
"emerge--oneshot package". You may want to define an alias for |
36 |
this to be sure you won't forget, in your ~/.bashrc: |
37 |
alias remerge='emerge --oneshot' |
38 |
-------- |
39 |
|
40 |
There also seems to be a confusion in users mind with the "-u" |
41 |
option. Many of them think that the way to update one, and only |
42 |
one, package is "emerge -u package" (whereas it is again "emerge |
43 |
--oneshot package"). I don't know exactly where it comes from |
44 |
(probably wrong assumptions based on the word "update"), but |
45 |
that's something I often read. |
46 |
|
47 |
|
48 |
-- |
49 |
TGL. |
50 |
|
51 |
-- |
52 |
gentoo-dev@g.o mailing list |