Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 7061

Summary: emerge --usepkg does not use binary packages
Product: Portage Development Reporter: Antonio Dolcetta <zagarna>
Component: UnclassifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kevin
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Antonio Dolcetta 2002-08-26 12:13:50 UTC
I tried to update gcc to gcc 3.2 using spider's howto as posted on gentoo-dev
(actually I found about it on gentoo forums:
http://forums.gentoo.org/viewtopic.php?t=11963&postdays=0&postorder=asc&start=50 )
the instructions make use of the emerge --usepkg feature like so:

<start paste>
2) build an replacement gcc systems
change the profile to default-x86-2.0

export USE="-* build"
emerge --buildpkg gcc
emerge --buildpkg binutils gettext texinfo glibc
unset USE

This will now replace your gcc with one without c++ and other such
things.. "oops" gcc is now gcc 3.2.. thats good.

Now, We remove all traces of gcc, *shudder*
emerge -C gcc
and install the binary again:
emerge --usepkg gcc 
<end paste, more stuff after here>

after removing gcc emerge fails with:

# emerge --usepkg gcc
Calculating dependencies ...done!
>>> emerge sys-devel/gcc-3.2 to /
>>> md5 ;-) gcc-3.2.tar.bz2
>>> Unpacking source...
>>> Unpacking gcc-3.2.tar.bz2
 * Working directory: /var/tmp/portage/gcc-3.2/work/gcc-3.2...
 * Applying libtool-test.patch...
 * Applying libtool-tmp.patch...
 * Applying libtool-portage.patch...
patching file gcc/config/i386/i386.c
>>> Source unpacked.
/usr/sbin/ebuild.sh: gcc: command not found
Created "Makefile" in /var/tmp/portage/gcc-3.2/work/build using "mh-frag" and
"mt-frag"
/var/tmp/portage/gcc-3.2/work/gcc-3.2/configure: cc: command not found
*** The command 'cc -o conftest -march=i686  -pipe   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


I have a gcc-3.2.tbz2 binary package in the /usr/portage/packages/All directory
but emerge refuses to use it even if I export PKGDIR=/usr/portage/packages or
PKGDIR=/usr/portage/packages/ALL
Comment 1 SpanKY gentoo-dev 2002-08-26 13:28:24 UTC

*** This bug has been marked as a duplicate of 4508 ***