Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95136 - remove USE=static flag from busybox
Summary: remove USE=static flag from busybox
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-05 10:03 UTC by Tom Wesley
Modified: 2005-08-17 21:16 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 Tom Wesley 2005-06-05 10:03:38 UTC
Since it is now the default rescue shell, busybox should probably default to be statically linked.
Comment 1 solar (RETIRED) gentoo-dev 2005-06-05 10:14:35 UTC
It is static linked.

USE=static is pretty much obsolete for busybox a relic of before bb 
became the rescue shell. 

The way it works right now is if you have USE=static set bb and busybox 
will both be static. If USE=static is not set then the ebuild builds a
static and dynamic copy of busybox. The static copy is /bin/bb and when
invoked you will be in the ash shell where all other applets are.
Otherwise run the dynamic copy /bin/busybox to see the applets and 
invoke busybox the standard way.

Maybe in reality we should just remove the USE=static all together.
Comment 2 Tom Wesley 2005-06-05 10:25:26 UTC
Ah great.  In a desperate hope to make this bug useful, should that explanation
be added as einfo's?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-06-05 11:14:45 UTC
(In reply to comment #1)

> Maybe in reality we should just remove the USE=static all together.

Yup - I have changed the summary accordingly. 
Comment 4 Simon Stelling (RETIRED) gentoo-dev 2005-06-13 11:42:32 UTC
blubb@aqua ~ $ ldd /bin/bb
        libm.so.6 => /lib/libm.so.6 (0x000000313b100000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x000000313f600000)
        libc.so.6 => /lib/libc.so.6 (0x000000313ac00000)
        /lib64/ld-linux-x86-64.so.2 (0x000000313a000000)
blubb@aqua ~ $ file /bin/bb
/bin/bb: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux
2.6.5, dynamically linked (uses shared libs), stripped

/me hmms...
Comment 5 SpanKY gentoo-dev 2005-06-13 12:04:21 UTC
chances are good your glibc sucks, see Bug 94879

either way, unrelated to this bug
Comment 6 SpanKY gentoo-dev 2005-08-17 21:16:25 UTC
we'll revisit this when we can specify default USE flags on a per-ebuild basis