Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4481 - GCC symlink delete / KDE 3.0.2 STL Bug
Summary: GCC symlink delete / KDE 3.0.2 STL Bug
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-03 09:36 UTC by Roman Weber
Modified: 2003-02-04 19:42 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 Roman Weber 2002-07-03 09:36:15 UTC
In the last time, gcc was updated to rev 7 and the ebuild deletes the symlink to
/usr/bin/${CHOST}-g++. (Should be for downgrading from gcc 3)

The deletion of this symlink causes that some ebuilds can't compile (Like kde
3.0.2, STL not found bug)

Workaround: ln -s /usr/bin/g++ /usr/bin/${CHOST}-g++
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-03 13:15:58 UTC
Ok, only problem I have, is that gcc-2.95.3 do not have a ${CHOST}-g++.
Comment 2 Roman Weber 2002-07-03 13:51:00 UTC
Look in the ebuild....

pkg_preinst() {
        # downgrading from gcc-3.x will leave this symlink, so
        # remove it.  resolves bug #3527
        if [ -L ${ROOT}/usr/bin/${CHOST}-g++ ]
        then
                rm -f ${ROOT}/usr/bin/${CHOST}-g++
        fi
}

when you have a ${CHOST} of i686-pc-linux-gnu then, the symlink should be
/usr/bin/i686-pc-linux-gnu-g++ -> /usr/bin/g++

I hope you understand me now...

Roman
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-03 14:09:24 UTC
Ok, let me put it this way.  If you have a new 1.2 system, which only have
gcc-2.95.3 installed, you do *NOT* have a /usr/bin/$CHOST-g++ !

Why that code was added, is because some users installed gcc-3.x, which
*DO* install /usr/bin/$CHOST-g++ if it is not a parallel install.  If they
then downgrade back to 2.95.3, the /usr/bin/$CHOST-g++ which is still from
gcc-3.x, do not get removed.

So basically, if kde do not compile without /usr/bin/$CHOST-g++, then it
is either a bug in kde, or in gcc-2.95.3 (for not installing /usr/bin/$CHOST-g++
in the first place).

To prove my point, install gentoolkit, and do something like:

# epm -ql gcc-2.95.3-r7 |grep $CHOST-g\+\+

(make sure CHOST is actually set)

You will not get any output as it was never installed.  Also, note that because
that code that removes $CHOST-g++ is in pkg_preinst(), it removes the file
from the live filesystem, and not from $D, which just confirms that it never
existed if you look at the output from epm.

Now, do not understand me wrong ... if it being missing is a bug in gcc, then
sure, we should fix it.  If it however is a problem with kde, or your
installation, then whatever should rather be fixed.
Comment 4 Roman Weber 2002-07-03 14:28:39 UTC
I started with a 1.0 system....

And as I remember, i had to lay this symlink 2 times in the last months....
(Not only for kde, for another package, but don't ask...)

And i'm not alone with this issue......(Look in the dev-archive Subject:
[gentoo-dev] KDE 3.02 Build Problem)

I don't know, if it's a gcc or kde issue.....

After grepping the config log of kde it assumed that i686-pc-linux-gnu-g++
was not found....(And I remembered, I had this problem not the first time)

And it's a working workaround for me....

Sorry for the misunderstandings....

Comment 5 Roman Weber 2002-07-03 17:34:52 UTC
Fixed....See Announcement
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-03 17:46:06 UTC
Yep, weird one.  Used to work without .. even did so the other day that
I tested gcc (remerged whole system).  Oh well, *shrug* :)
Comment 7 Roman Weber 2002-07-03 17:57:38 UTC
The deep miracles of GCC, KDE, autoconf and all other involved programs...;-)