Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37060 - portage-2.0.49-r20 takes too long time to determine glibc subversion
Summary: portage-2.0.49-r20 takes too long time to determine glibc subversion
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-01-02 16:08 UTC by Park Ji-in
Modified: 2004-02-08 17:55 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 Park Ji-in 2004-01-02 16:08:46 UTC
portage-2.0.49-r20 determine glibc subversion by,
if test "$VERSION" = 'libc.so.6' ; then
    echo -n 'Checking glibc subversion... '
    tmp="$(ldd /usr/bin/* 2>/dev/null | grep libc.so | tail -n 1)"
    LibcPath=`expr "$tmp" : '[^/]*\(/[^ ]*\)'`
.
.
.

when 2.0.50-pre9 do this as,

    tmp="`ldd bin/sh | grep libc.so 2>/dev/null `"

ldd /usr/bin/* takes too much time to finish.

maybe it's worse using head -n 1 or just like 2.0.50's

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-01-05 15:27:50 UTC
That's very subjective.

It's a fix to a potential problem, and it shouldn't be that big
of a deal as you don't have reason to be repeatedly merging
portage, as far as I'm aware.
Comment 2 SpanKY gentoo-dev 2004-01-07 22:16:24 UTC
yes but some people watch it and think 'oh no, portage froze' and then file a bug

or, for some mildly-loaded systems that can easily take over a minute to complete ... i dont think thats really a valid answer when theres easy alternatives ...

(1) use /usr/include/features.h ala autofoo style
(2) quickly compile a test.c which is 'int main(){return 0;}' and ldd that
Comment 3 Radek Podgorny 2004-01-10 02:59:45 UTC
Good idea! Anyway, there should be added some warning at least so people won't give up waiting (like I did)...

Radek
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-01-11 19:20:58 UTC
Fixed in cvs.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 17:55:28 UTC
supposed to be fixed in 2.0.50 which is stable now. If this bug is not fixed please reopen.