Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133402 - A more fleshed out make.conf.example for portage-2.1
Summary: A more fleshed out make.conf.example for portage-2.1
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Documentation (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-05-15 11:05 UTC by nm (RETIRED)
Modified: 2007-09-20 20:33 UTC (History)
0 users

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


Attachments
clarify the gcc targets in the CFLAGS section (make.conf.example-gccinfo.diff,2.89 KB, patch)
2006-08-04 08:11 UTC, Peter Gantner (a.k.a. nephros)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nm (RETIRED) gentoo-dev 2006-05-15 11:05:59 UTC
The last several revisions of the 2.1 series have deprecated a lot of the old configuration lines in /etc/make.conf, yet though some of the new ways to set options are covered, the general *syntax* is not. Instead, I see numerous deprecation warnings during emerges, but with no "this is what it should look like" message.

Example: it looks like PORTAGE_RSYNC_OPTS is the place to specify multiple options, yet there is no syntax for e.g. how to set RSYNC_EXCLUDEFROM. (do we just add a '--' in front of the old one-line setting?)

It'd be nice if make.conf.example was a little more helpful in this regard.
Comment 1 Peter Gantner (a.k.a. nephros) 2006-08-04 08:11:46 UTC
Created attachment 93425 [details, diff]
clarify the gcc targets in the CFLAGS section

Nice bug, I just might throw my little enhancements in here.

On patch:
 * ) Improve (I think) the comments on setting -march targets in the CFLAGS section.
The CPU type descriptions are largely taken from the gcc 4.1.1 manual and edited for shortness. I also sorted them by gcc version which supports them, no guarantees everything is 100% covered, but there shoudn't be any harm in omitting one type or the other.

*) Expanded the list of gccs used in Gentoos history, because nobody who needs to read these comments remembers Gentoo 1.4 anymore ;) 
Info taken from the old profiles in CVS so should be correct.

Hope you like this.
Comment 2 Peter Gantner (a.k.a. nephros) 2006-08-04 08:15:27 UTC
I also added a small line about -O vs -0.
I know this is trivial, stupid and superfluous, but so are the loads of posts on the Forums including that error.
Comment 3 Drake Donahue 2006-10-01 08:41:40 UTC
INPUT_DEVICES=""
VIDEO_CARDS=""
are not in make.conf.example although Xorg 7 builds and wiki claim they are.
man make.conf does not discuss these either.
Comment 4 nm (RETIRED) gentoo-dev 2006-11-03 14:45:08 UTC
(In reply to comment #0)
I finished updating the Portage Handbook for bug 144128 ; so now at least there's a place to find all the info besides /etc/make.conf.example -- if you want to close this, or whatever. :)
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2007-01-10 02:27:38 UTC
(In reply to comment #0)
> Example: it looks like PORTAGE_RSYNC_OPTS is the place to specify multiple
> options, yet there is no syntax for e.g. how to set RSYNC_EXCLUDEFROM. (do we
> just add a '--' in front of the old one-line setting?)

It's PORTAGE_RSYNC_EXTRA_OPTS, and I don't see much use in copying large parts of the rsync manpage into portage docs.
Any other examples? (generic statements aren't of any use)

(In reply to comment #1)
> Created an attachment (id=93425) [edit]
> clarify the gcc targets in the CFLAGS section

Patch applied, thanks.
Comment 6 nm (RETIRED) gentoo-dev 2007-01-10 03:10:21 UTC
(In reply to comment #5)
> It's PORTAGE_RSYNC_EXTRA_OPTS, and I don't see much use in copying large parts
> of the rsync manpage into portage docs.
> Any other examples? (generic statements aren't of any use)

This was quite some time ago. I've since had to dig through all the emerge code to write the new Portage 2.1 handbook (http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=2); the fact is that there is not even a mention of what/how to format choices in PORTAGE_RSYNC*, nor what the available options are. Now you say that they're in the rsync manpage, but that manpage is not mentioned at all in man make.conf. At the very least, you could include a pointer for the PORTAGE_RSYNC* references to read man rsync.

Would it be so much trouble to add just a quick example for rsync excludes, to give an idea of the *EXTRA_OPTS syntax. That's the biggest problem with all the new Portage 2.1 stuff. "config variable FOO is listed here", but there's nothing that says what its syntax should look like.

e.g. is it FOO="option", FOO="--bar=/foobar" FOO="--bar=/foobar --multiple=/bar" or just FOO=/dir/bar.
Comment 7 Zac Medico gentoo-dev 2007-01-13 06:48:39 UTC
The patch from comment #1 is in svn r5505 and has been released in 2.1.2_rc4-r9.patch.
Comment 8 nm (RETIRED) gentoo-dev 2007-09-20 18:56:01 UTC
(In reply to comment #7)
> The patch from comment #1 is in svn r5505 and has been released in
> 2.1.2_rc4-r9.patch.
> 

So, uhhh....is this all fixed? :) Seeing as latest stable is 2.1.3.9...