Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41658 - Inform users about the various /etc/portage possibilities
Summary: Inform users about the various /etc/portage possibilities
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
: 48887 54335 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-15 05:46 UTC by Sven Vermeulen (RETIRED)
Modified: 2004-08-12 14:00 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Vermeulen (RETIRED) gentoo-dev 2004-02-15 05:46:45 UTC
We need to inform the users on how to work with the various /etc/portage files that can be created (and used). These are now the preferred methods, but not really well documented.

This includes the files for masking/unmasking/keywords.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-04 00:54:24 UTC
Spanky, any progress on this?
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-04 01:11:33 UTC
I wrote a little guide (only german atm) about the (imo) most useful files
in /etc/portage. (http://www.gentoo.de/main/de/portage-2.0.50.xml)
Maybe it's an option to translate and integrate this into the handbook?
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-28 04:36:53 UTC
*bump*

joooeeehoeeee, spaaaankyyyyy....
Comment 4 SpanKY gentoo-dev 2004-04-25 00:01:15 UTC
*** Bug 48887 has been marked as a duplicate of this bug. ***
Comment 5 Dennis Nienhüser (RETIRED) gentoo-dev 2004-04-25 01:58:53 UTC
Anybody working on this? I had a look at Tobias guide and think it's worth integrating. This could replace and extend the section about "--upgradeonly" and "ACCEPT_KEYWORDS=~arch".
If noone else wants, I can translate it - if someone points me to the handbook's XML source, I can merge it directly.
Comment 6 SpanKY gentoo-dev 2004-04-25 02:03:21 UTC
i have work on my computer to do this

and no i havent looked at using Tobias's work because it's based mostly off of the man page i wrote

my german isnt great but i can understand most of it ;)
Comment 7 Sven Vermeulen (RETIRED) gentoo-dev 2004-05-01 10:25:43 UTC
/me is thinking about spanking SpankY...
Comment 8 Dennis Nienhüser (RETIRED) gentoo-dev 2004-05-11 01:55:39 UTC
Did you do it? ;-)
Comment 9 Tobias Scherbaum (RETIRED) gentoo-dev 2004-06-19 14:26:48 UTC
*** Bug 54335 has been marked as a duplicate of this bug. ***
Comment 10 George Shapovalov (RETIRED) gentoo-dev 2004-06-19 15:15:56 UTC
Hey guys.

What about simply taking a man page, transforming it into the proper xml, putting it up somewhere and linking to it from doc listing/handbook or whatever? Or even just sayng "read the man page"? I think that'll cover 99% of it.

George
Comment 11 George Shapovalov (RETIRED) gentoo-dev 2004-06-19 15:40:39 UTC
Oh, whilw I am at it. Section of this man page:

Format:
...
does not describe all the choices properly, probably relying on example, which, unfortunately, does not cover everything as well.

Example:
 [skip]
                     # use a package that is marked -*
                     >=sys-kernel/linux-headers-2.6 -*
This apparently only covers the explicit "-*". If the package is simply not keyworded for a particular arch you actually have to put "*" there. Well, the intuitivity of such key may be questioned, but this is the one that works.. In any case it may be nice to have the following added to the example. 

                    # use a package that is not keyworded for the $ARCH
                    app-foo/bar *

George
Comment 12 George Shapovalov (RETIRED) gentoo-dev 2004-06-19 15:41:32 UTC
Um, sorry, the last comment was WRT the package.keywords section of the man page.
Comment 13 George Shapovalov (RETIRED) gentoo-dev 2004-06-19 15:51:34 UTC
Still figuring m way around :).

Looks like somehow "~*" may be a better choice at times, as this tends to fetch the latest version, while plain "*" tends to skip versions ?at random?
At least both 0.5.1 and 0.6 (of kmymoney2) are lacking any form of amd64 at the moment (and "*" fetched 0.5.1 and "~*" fetched 0.6). The only difference that might have relation here is that 0.5.1 had "x86 ~sparc" and 0.6 had "~x86 ~sparc ~ppc".  But why that influences the arch outside of that list at all??
Looks like we might want to ask portage people for some clarification first..

George
Comment 14 Sven Vermeulen (RETIRED) gentoo-dev 2004-06-30 09:05:04 UTC
I'm assigning back to docs-team@gentoo.org

Thomas AW Brown has proposed to update the Gentoo Handbook with this documentation. http://article.gmane.org/gmane.linux.gentoo.documentation/1427

George: the man page is good for references, but not to introduce people to "the Portage way".

Just my 2 cents of course
Comment 15 Tommy Brown 2004-06-30 09:30:01 UTC
I'd already written up a text file, ready to put onto the Wiki at http://wiki.gentoo-portage.com and realised it would be better offered to the main doc tree. I'll just get to grips with the XML styles used in the docs, and get a proposal up...

Tommy.
Comment 16 Dennis Nienhüser (RETIRED) gentoo-dev 2004-07-29 16:00:18 UTC
Using this old bug as it's not closed: just noticed that the handbook still says

> In certain cases, an update may mean a downgrade 
> (i.e. install an older version instead of a newer version). 
> If you don't want this to happen, use the --upgradeonly option (-U in short): 
> Code Listing 30: Upgrading your entire system
> # emerge --update --upgradeonly world

I think it shouldn't look like this. Even the portage docs now state

--upgradeonly (-U short option)
      [...]
      WARNING: This option is deprecated and shouldn't be used anymore.
      Please use the /etc/portage/package.* files from now on.

At least world should be replaced by a package, even better drop the whole section.

Another thing: Just some lines above there is

> R (reemerge) The package isn't new, but needs to be reemerged 

"needs to be reemerged"? I guess that should read "R (replace) ... will be remerged" and maybe explicitly state that there is _no need_ for a remerge.
Comment 17 Aaron Peterson 2004-07-30 03:32:44 UTC
Actually, just creating the directory /etc/portage and having a few files in it with commented out examples and brief text would help 80 percent of us...


base team should be added?
Comment 18 Dennis Nienhüser (RETIRED) gentoo-dev 2004-07-30 07:41:47 UTC
@Aaron: That's what bug #45926 was about... marked as WONTFIX
Comment 19 Sven Vermeulen (RETIRED) gentoo-dev 2004-07-31 04:43:22 UTC
*** Bug 55207 has been marked as a duplicate of this bug. ***
Comment 20 Sven Vermeulen (RETIRED) gentoo-dev 2004-08-01 06:08:36 UTC
Updated in the Gentoo Handbook.
Comment 21 Dennis Nienhüser (RETIRED) gentoo-dev 2004-08-02 14:42:48 UTC
Am I too silly to find it or did you forget to commit the changes?
Comment 22 SpanKY gentoo-dev 2004-08-02 15:34:26 UTC
the website isnt updated instantly from cvs, give it a while
Comment 23 Sven Vermeulen (RETIRED) gentoo-dev 2004-08-03 02:54:06 UTC
The various files of /etc/portage have been integrated in the current text of the second part of the handbook. 

/etc/portage/package.use has been integrated in the chapter on USE flags (more precisely in "Using USE-flags").

/etc/portage/package.{keywords, unmask, mask} has been integrated in the chapter on "Portage and Software", more precisely in "Working with Masked Packages".

/etc/portage/mirrors has been integrated in the chapter on "Controlling Portage Behaviour", more precisely in "Networking Options".
Comment 24 Dennis Nienhüser (RETIRED) gentoo-dev 2004-08-03 09:02:16 UTC
Ok so far, but what about comment #16?
Comment 25 Sven Vermeulen (RETIRED) gentoo-dev 2004-08-04 00:06:21 UTC
Ah yes, my apologies; I overlooked that one. My fault for assuming a bugreport is about one bug :) I've removed the section on --upgradeonly and changed reemerge with replace.
Comment 26 Dennis Nienhüser (RETIRED) gentoo-dev 2004-08-05 09:08:34 UTC
I should have opened an own bug for it. My main concern is
>  The package isn't new, but needs to be reemerged
which is just a wrong statement. Choose any up-to-date package on your system and run "emerge <pkg> -p" to see what I mean. Anyone who is not too used to portage would have to assume everything on his system "needs to be reemerged".
Comment 27 Camille Huot (RETIRED) gentoo-dev 2004-08-05 09:42:06 UTC
"emerge <pkg> --pretend" explicitely say "what emerge will reinstall if I reinstall <pkg>?"

here, the command line is "emerge --pretend --update <pkg>", and you'll see that there is nothing to upgrade (if pkg is up to date).
Comment 28 Dennis Nienhüser (RETIRED) gentoo-dev 2004-08-12 14:00:10 UTC
The "R" flag will not occur in combination with "--update".
Portage does not (yet) have the intelligence to decide whether a package _needs_ to be reemerged. IMHO it makes no sense to list it there.