Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13517 - Added uclibc useflag to busybox
Summary: Added uclibc useflag to busybox
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-08 14:37 UTC by John Nilsson
Modified: 2003-08-31 19:28 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 John Nilsson 2003-01-08 14:37:15 UTC
simple patch to make busybox take an uclibc useflag:

/John

--- busybox-0.60.5.ebuild	2002-12-21 01:35:40.000000000 +0100
+++ busybox-0.60.5-r1.ebuild	2003-01-08 21:24:37.000000000 +0100
@@ -11,7 +11,10 @@
 LICENSE="GPL-2"
 KEYWORDS="~x86"
 
-DEPEND="virtual/glibc"
+IUSE="uclibc static"
+
+DEPEND="( uclibc? dev-libs/uclibc : virtual/glibc )" 
+RDEPEND="!static? ${DEPEND}"
 
 src_unpack() {
 	unpack ${A}
@@ -23,6 +26,15 @@
 src_compile() {
 	local myconf
 	use static && myconf="${myconf} DOSTATIC=true"
+	
+	if [ -n "'use uclibc'" ]
+	then
+		myconf-"${myconf}	
+			CC=/usr/i386-linux-uclibc/bin/i386-uclibc-gcc
+			USE_SYSTEM_PWD=false"
+		unset CFLAGS
+	fi
+	
 	emake ${myconf} || die
 }
 
@@ -46,3 +58,13 @@
 	dodoc inittab
 	dodoc depmod.pl
 }
+
+pkg_postinst() {
+
+einfo
+einfo Edit /usr/portage/sys-apps/busybox/files/Config.h and reemerge if you need
+einfo to add/remove functionallity in BusyBox.
+einfo
+
+}
+
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2003-01-09 11:02:12 UTC
Raker, this could be added after 1.4_rc3/_final is released
Comment 2 Nick Hadaway 2003-01-12 23:32:45 UTC
seemant, do we plan on having a uclibc USE flag or shall I do some sed and grep magic to find out if uclibc is installed as the virtual/glibc?
Comment 3 Nick Hadaway 2003-01-13 01:57:44 UTC
I have added busybox-0.60.5-r1 to portage which includes your suggested static support along with some changes to the uclibc detection.  Please test the ebuild and let me know if you see any changes needed.
Comment 4 Nick Hadaway 2003-01-13 02:38:53 UTC
LINK_LIBC="uclibc" emerge busybox 
to install compiling against uclibc
Comment 5 John Nilsson 2003-01-13 14:36:16 UTC
I'd like to have uclibc as a dependency to that package and only that package.
Noticed that once uclibc was emerged it was added to virtual/glibc and thereby
making itself a dependency of almost all packaged in my system. VERY annoying.
But thats an other bug ;)

uclibc really should be the default lib to link against. I can't see any reasons
for linking with glibc (LINK_LIBC="glibc" ?).

Anyway, the ebuild compile ok (static uclibc) and the packaged seems to work in
a chrooted enviroment.
Comment 6 solar (RETIRED) gentoo-dev 2003-08-31 19:28:28 UTC
I added support for dietlibc in 0.60.5-r2

--------------------------------------------------------
Erik Andersen needs people to testing busybox-1.00-pre2 so he can call it 
stable upstream. I'll be adding that to portage shortly as ~x86.
Eairly testors are encouraged to test http://dev.gentoo.org/~solar/busybox-1.00_pre2.ebuild

Note: -pre3 should of been out by now.

--------------------------------------------------------
30 July 2003 -- BusyBox 1.0.0-pre2 released

Here goes another pre release for the new BusyBox stable series. The last prerelease (pre1) was given quite a lot of testing (thanks everyone!) which has helped turn up a number of bugs, and these problems have now been fixed.

Highlights of -pre2 include updating the 'ash' shell to sync up with the Debian 'dash' shell, a new 'hdparm' applet was added, init again supports pivot_root, The 'reboot' 'halt' and 'poweroff' applets can now be used without using busybox init. an ifconfig buffer overflow was fixed, losetup now allows read-write loop devices, uClinux daemon support was added, the 'watchdog', 'fdisk', and 'kill' applets were rewritten, there were tons of doc updates, and there were many other bugs fixed.

If you have submitted a patch and it is not included in this release and Erik has not emailed you explaining why your patch was rejected, it is safe to say that he has lost your patch. That happens sometimes. Please re-submit your patch to the BusyBox mailing list.

The point of the "-preX" versions is to get a larger group of people and vendors testing, so any problems that turn up can be fixed prior to the final 1.0.0 release. The main feature that is still still on the TODO list before the final BusyBox 1.0.0 release is adding module support for the new 2.6.x kernels. If necessary, a -pre3 BusyBox release will happen on August 6th. Hopefully (i.e. unless some horrible catastrophic problem turns up) the final BusyBox 1.0.0 release will be ready by then...