Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7061 - emerge --usepkg does not use binary packages
Summary: emerge --usepkg does not use binary packages
Status: RESOLVED DUPLICATE of bug 4508
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-26 12:13 UTC by Antonio Dolcetta
Modified: 2011-10-30 22:22 UTC (History)
1 user (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 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 ***