Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230637 - sys-apps/busybox version bump to 1.11.1
Summary: sys-apps/busybox version bump to 1.11.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Embedded Gentoo Team
URL: http://busybox.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-03 14:15 UTC by Christoph Gysin
Modified: 2008-08-02 15:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
changes from busybox-1.10.3 to busybox-1.11.1 ebuild (busybox-1.11.1.ebuild.patch,435 bytes, patch)
2008-07-29 11:33 UTC, Christoph Gysin
Details | Diff
busybox-1.11.1-bb.patch (busybox-1.11.1-bb.patch,1.03 KB, patch)
2008-07-29 11:34 UTC, Christoph Gysin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Gysin 2008-07-03 14:15:43 UTC
New applets: inotify (Vladimir Dronnikov), man (Ivana Varekova), fbsplash (Michele Sanges), depmod (Bernhard Fischer)

Changes since previous release:

    * build system: reinstate CONFIG_CROSS_COMPILE_PREFIX
    * ash: optional bash compatibility features added; other fixes
    * hush: lots and lots of fixes
    * msh: fix the case where the file has exec bit but can't be run directly (runs "$SHELL file" instead)
    * msh: fix exit codes when command is not found or can't be execed
    * udhcpc: added workaround for buggy kernels
    * mount: fix mishandling of proto=tcp/udp
    * diff: make it work on non-seekable streams
    * openvt: made more compatible with "standard" one
    * mdev: fix block/char device detection
    * ping: add -w, -W support (James Simmons)
    * crond: add handling of "MAILTO=user" lines
    * start-stop-daemon: make --exec follow symlinks (Joakim Tjernlund)
    * date: make it accept ISO date format
    * echo: fix echo -e -n "msg\n\0" (David Pinedo)
    * httpd: fix several bugs triggered by relative path in -h DIR
    * printf: fix printf -%s- foo, printf -- -%s- foo
    * syslogd: do not error out on missing files to rotate
    * ls: support Unicode in names
    * ip: support for the LOWER_UP flag (Natanael Copa)
    * mktemp: make argument optional (coreutil 6.12 compat)
    * libiproute: fix option parsing, so that "ip -o link" works again
    * other fixes and code size reductions in many applets 

Reproducible: Always

Steps to Reproduce:
Comment 1 Christoph Gysin 2008-07-03 14:46:10 UTC
busybox-1.10.3-tcpudp.patch is included upstream in this release. The following works for me:

--- busybox-1.10.3.ebuild	2008-07-03 16:43:28.982579817 +0200
+++ busybox-1.10.4.ebuild	2008-07-03 16:42:26.739036168 +0200
@@ -86,7 +86,6 @@
 
 	# patches go here!
 	epatch "${FILESDIR}"/busybox-1.7.0-bb.patch
-	epatch "${FILESDIR}"/busybox-1.10.3-tcpudp.patch
 	# include this upstream later..
 	epatch "${FILESDIR}"/busybox-devmem.patch
 
Comment 2 Sergey Dryabzhinsky 2008-07-14 15:29:17 UTC
Bump to 1.11.1 ?
Comment 3 Christoph Gysin 2008-07-21 09:29:09 UTC
busybox-1.7.0-bb.patch breaks for 1.11.1. Don't exactly understand what it's purpose was, and couldn't find any comment about it... vapier? Do we still need it? Should be easy enough to fix, let me know if I should fiddle with the code.

Otherwise this Works For Meβ„’, would be great to get it into portage.

--- busybox-1.10.3.ebuild	2008-06-18 03:31:19.000000000 +0200
+++ busybox-1.11.1.ebuild	2008-07-21 11:14:32.003870687 +0200
@@ -84,9 +84,6 @@
 	unpack ${MY_P}.tar.bz2
 	cd "${S}"
 
-	# patches go here!
-	epatch "${FILESDIR}"/busybox-1.7.0-bb.patch
-	epatch "${FILESDIR}"/busybox-1.10.3-tcpudp.patch
 	# include this upstream later..
 	epatch "${FILESDIR}"/busybox-devmem.patch
 
Comment 4 solar (RETIRED) gentoo-dev 2008-07-29 05:49:26 UTC
(In reply to comment #3)
> busybox-1.7.0-bb.patch breaks for 1.11.1. Don't exactly understand what it's
> purpose was, and couldn't find any comment about it... vapier? Do we still need
> it? Should be easy enough to fix, let me know if I should fiddle with the code.

vapier is on vacation. And I just got back from OSCON which is why this bug has 
sat here. I did try to bump it before I left and also ran into the same error you did, but I had to jump on a place so no time to fwd port it. 

So yes the bb.patch is required. I believe it is documented in our .xml 
as being the fallback shell you can use for rescues.

On Gentoo the /bin/bb should be the (static) ELF and /bin/busybox is the 
(dynamic) ELF. The bb's role is to be able to rescue the system to be used 
such as init=/bin/bb on the boot loaders command line. The ebuild should 
contain all the logic for this already.

Attaching a ready to go patch will likely speed up this bugs progress.
Comment 5 Christoph Gysin 2008-07-29 11:33:14 UTC
Created attachment 161608 [details, diff]
changes from busybox-1.10.3 to busybox-1.11.1 ebuild
Comment 6 Christoph Gysin 2008-07-29 11:34:38 UTC
Created attachment 161609 [details, diff]
busybox-1.11.1-bb.patch

the updated bb patch
Comment 7 Christoph Gysin 2008-07-29 11:45:09 UTC
After merging with USE=-static I get:

$ file /bin/{busybox*,bb}
/bin/busybox: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
/bin/bb:      ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, stripped

and with USE=static:

$ file /bin/{busybox*,bb}
/bin/busybox:        ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, statically linked, stripped
/bin/busybox.static: symbolic link to `bb'
/bin/bb:             symbolic link to `busybox'

Looks about right to me.
Comment 8 solar (RETIRED) gentoo-dev 2008-08-02 15:21:03 UTC
Just made some time to commit this. Thanks Christoph Gysin