Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4962 - binutils-2.12.90.0.7 tries to bring in perl during bootstrap
Summary: binutils-2.12.90.0.7 tries to bring in perl during bootstrap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-13 15:30 UTC by Grant Goodyear (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
2 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 Grant Goodyear (RETIRED) gentoo-dev 2002-07-13 15:30:50 UTC
TrAns13nt had perl fail during bootstrap after gettext
but before the first gcc compile.  I'm actually confused 
in several ways, since perl requires groff, groff requires
c++, so actually groff should have failed.

The binutils-2.12.90.0.7 ebuild looks like it's correct,
but

15:47 <TrAns13nT> TrAns13nT-De(\/)on3ss scripts # USE="-* bootstrap" emerge -ep
                  binutils
15:47 <TrAns13nT> These are the packages that I would merge, in order.
15:47 <TrAns13nT> Calculating dependencies ...done!
15:47 <TrAns13nT> [ebuild  N   ] sys-devel/libtool-1.4.1-r9 to /
15:47 <TrAns13nT> [ebuild  N   ] sys-apps/groff-1.17.2-r1 to /
15:47 <TrAns13nT> [ebuild  N   ] sys-devel/perl-5.6.1-r3 to /
15:47 <TrAns13nT> [ebuild  N   ] sys-devel/binutils-2.12.90.0.7 to /
Comment 1 Grant Goodyear (RETIRED) gentoo-dev 2002-07-13 15:31:23 UTC
Lamer, is this similar to the problem you had?
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-13 18:47:02 UTC
-----------------------snip------------------------------
DEPEND="virtual/glibc
        nls? ( sys-devel/gettext )"

[ -z "`use build`" ] && [ -z "`use bootstrap`" ] && \
        DEPEND="${DEPEND} sys-devel/perl"
------------------------snip------------------------------

Now, either they edited bootstrap, or there was some wierd commit to
it again, as with "build" and "bootstrap" in USE (during bootstrap), it
should not depend on groff.


Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-13 18:55:16 UTC
Oh, and have a look at this:

nosferatu UML # USE="build" emerge -ep binutils

These are the packages that I would merge, in order.

Calculating dependencies ...done!
[ebuild  N   ] sys-devel/libtool-1.4.1-r9 to /
[ebuild  N   ] sys-apps/groff-1.17.2-r1 to /
[ebuild  N   ] sys-libs/db-1.85-r1 to /
[ebuild  N   ] sys-libs/db-3.2.9 to /
[ebuild  N   ] sys-libs/gdbm-1.8.0-r5 to /
[ebuild  N   ] sys-devel/perl-5.6.1-r4 to /
[ebuild  N   ] sys-devel/binutils-2.12.90.0.7 to /

nosferatu UML # rm -rf /var/cache/edb/dep/*
nosferatu UML # USE="build" emerge -ep binutils

These are the packages that I would merge, in order.

Calculating dependencies ...done!
[ebuild  N   ] sys-devel/libtool-1.4.1-r9 to /
[ebuild  N   ] sys-devel/binutils-2.12.90.0.7 to /

nosferatu UML # USE="bootstrap" emerge -ep binutils

These are the packages that I would merge, in order.

Calculating dependencies ...done!
[ebuild  N   ] sys-devel/libtool-1.4.1-r9 to /
[ebuild  N   ] sys-devel/binutils-2.12.90.0.7 to /

nosferatu UML # 


Maybe we should get bootstrap.sh to clear the dep cache just before bootstrap
emerge starts ?
Comment 4 Grant Goodyear (RETIRED) gentoo-dev 2002-07-13 19:35:53 UTC
I agree that having "rm -rf /var/cache/edb/dep/*" to the beginning of bootstrap.sh
is a good idea.  CCing this to drobbins for his approval.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-14 19:30:48 UTC
Actually, I think the best way will be to fix it portage side.  We have many
ebuilds that have DEPEND and RDEPEND which depend on "bootstrap" or "build".

Now, most of them have extra DEPEND if [ -z "`use build`" ], so maybe
we need a negative type of use flag selection in DEPEND ?

Something like:

DEPEND="build? (foo !bar)"

Meaning, if "build" in USE, DEPEND on foo, but NOT bar, else if "build" not in
use, DEPEND on bar, and NOT on foo ?

Comments ?
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-14 19:48:16 UTC
Actually I guess we have it already.

DEPEND="( build? : sys-devel/perl )
        ( bootstrap? : sys-devel/perl )"

I am guessing should do it.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-14 19:53:06 UTC
Ok, that do not work too well.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2002-08-21 13:15:53 UTC
Erm, this bug is actually fixed .. updated DEPEND to working one.