Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334297 - Incorrect commands given in code listing 1.8
Summary: Incorrect commands given in code listing 1.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL: http://www.gentoo.org/proj/en/gentoo-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 15:14 UTC by Rachel Greenham
Modified: 2010-09-02 17:22 UTC (History)
0 users

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 Rachel Greenham 2010-08-24 15:14:10 UTC
Code listing 1.8 has errors. :-)

In my case, as my gcc --version did report 4.2.1 I blindly pasted in the given command:

emerge --oneshot --nodeps binutils-apple-3.2

And portage objected saying it wasn't a valid package atom. At this point I stopped blindly pasting and thought about what I was doing. :-)

In the case of gcc 4.2.1, the text above says we need "the latest binutils-apple" so surely all that's needed is

emerge --oneshot --nodeps binutils-apple

(which actually as of now brings in binutils-apple-3.2.2. I followed this route, and the installation seems to be progressing happily.)

Otherwise, for gcc 4.0.1 I think we'd actually need:

emerge --oneshot --nodeps "=sys-devel/binutils-3.2"

(Assuming the version number's correct; I'm unable to test that.)

Reproducible: Always

Steps to Reproduce:
1. Follow the instructions in the URL to the letter as far as code listing 1.8

Actual Results:  
Portage complains of an invalid package atom.

Expected Results:  
With correct instruction, binutils-apple installs without incident. :-)
Comment 1 Fabian Groffen gentoo-dev 2010-09-02 17:22:41 UTC
thanks, fixed!