Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/busybox

Buildroot jacmet at uclibc.org 3 participants 5 messages Nov 13, 2008 – Nov 17, 2008

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2008-11-13 08:32:56 -0800 (Thu, 13 Nov 2008) New Revision: 24031

Log:
busybox: add 1.13.x, mark older as deprecated

Added:
trunk/buildroot/package/busybox/busybox-1.13.0-getopt.patch trunk/buildroot/package/busybox/busybox-1.13.0-lineedit.patch trunk/buildroot/package/busybox/busybox-1.13.0-modprobe.patch

Modified:
trunk/buildroot/package/busybox/Config.in

Changeset:
Modified: trunk/buildroot/package/busybox/Config.in
===================================================================

buildroot/package/busybox/Config.in +9 -2
@@ -12,7 +12,7 @@
 choice
 	prompt "BusyBox Version"
 	depends on BR2_PACKAGE_BUSYBOX
-	default BR2_BUSYBOX_VERSION_1_12_X
+	default BR2_BUSYBOX_VERSION_1_13_X
 	help
 	  Select the version of BusyBox you wish to use.
 
@@ -38,14 +38,19 @@
 
 	config BR2_BUSYBOX_VERSION_1_10_X
 		bool "BusyBox 1.10.x"
-		depends on BR2_DEPRECATED || BR2_RECENT
+		depends on BR2_DEPRECATED
 
 	config BR2_BUSYBOX_VERSION_1_11_X
 		bool "BusyBox 1.11.x"
+		depends on BR2_DEPRECATED
 
 	config BR2_BUSYBOX_VERSION_1_12_X
 		bool "BusyBox 1.12.x"
+		depends on BR2_DEPRECATED || BR2_RECENT
 
+	config BR2_BUSYBOX_VERSION_1_13_X
+		bool "BusyBox 1.13.x"
+
 	config BR2_PACKAGE_BUSYBOX_SNAPSHOT
 		bool "daily snapshot"
 
@@ -61,6 +66,7 @@
 	default "1.10.4"	if BR2_BUSYBOX_VERSION_1_10_X
 	default "1.11.3"	if BR2_BUSYBOX_VERSION_1_11_X
 	default "1.12.2"	if BR2_BUSYBOX_VERSION_1_12_X
+	default "1.13.0"	if BR2_BUSYBOX_VERSION_1_13_X
 
 config BR2_PACKAGE_BUSYBOX_FULLINSTALL
 	bool "Run BusyBox's own full installation"
@@ -87,6 +93,7 @@
 	default "package/busybox/busybox-1.6.0.config" if BR2_BUSYBOX_VERSION_1_10_X
 	default "package/busybox/busybox-1.11.x.config" if BR2_BUSYBOX_VERSION_1_11_X
 	default "package/busybox/busybox-1.11.x.config" if BR2_BUSYBOX_VERSION_1_12_X
+	default "package/busybox/busybox-1.11.x.config" if BR2_BUSYBOX_VERSION_1_13_X
 	help
 	  Some people may wish to use their own modified BusyBox configuration
 	  file, and will specify their config file location with this option.

Added: trunk/buildroot/package/busybox/busybox-1.13.0-getopt.patch
===================================================================

buildroot/package/busybox/busybox-1.13.0-getopt.patch +22 -0
@@ -0,0 +1,22 @@
+--- busybox-1.13.0/libbb/getopt32.c	Thu Oct 30 08:41:34 2008
++++ busybox-1.13.0-getopt/libbb/getopt32.c	Wed Nov 12 23:04:01 2008
+@@ -515,6 +515,19 @@
+ 		}
+ 	}
+ 
++	/* In case getopt32 was already called:
++	 * reset the libc getopt() function, which keeps internal state.
++	 * run_nofork_applet_prime() does this, but we might end up here
++	 * also via gunzip_main() -> gzip_main(). Play safe.
++	 */
++#ifdef __GLIBC__
++	optind = 0;
++#else /* BSD style */
++	optind = 1;
++	/* optreset = 1; */
++#endif
++	/* optarg = NULL; opterr = 0; optopt = 0; - do we need this?? */
++
+ 	pargv = NULL;
+ 
+ 	/* Note: just "getopt() <= 0" will not work well for

Added: trunk/buildroot/package/busybox/busybox-1.13.0-lineedit.patch
===================================================================

buildroot/package/busybox/busybox-1.13.0-lineedit.patch +13 -0
@@ -0,0 +1,13 @@
+--- busybox-1.13.0/libbb/lineedit.c	Wed Nov  5 22:39:54 2008
++++ busybox-1.13.0-lineedit/libbb/lineedit.c	Wed Nov 12 23:18:05 2008
+@@ -1415,8 +1415,10 @@
+ 	if ((state->flags & SAVE_HISTORY) && state->hist_file)
+ 		load_history(state->hist_file);
+ #endif
++#if MAX_HISTORY > 0
+ 	if (state->flags & DO_HISTORY)
+ 		state->cur_history = state->cnt_history;
++#endif
+ 
+ 	/* prepare before init handlers */
+ 	cmdedit_y = 0;  /* quasireal y, not true if line > xt*yt */

Added: trunk/buildroot/package/busybox/busybox-1.13.0-modprobe.patch
===================================================================

buildroot/package/busybox/busybox-1.13.0-modprobe.patch +47 -0

47 lines not on this page · raw message

#1 lore raw
Quoted 6 lines · jacmet at uclibc.org

Author: jacmet
Date: 2008-11-13 08:32:56 -0800 (Thu, 13 Nov 2008) New Revision: 24031

Log:
busybox: add 1.13.x, mark older as deprecated

Quoted 7 lines

Added:
trunk/buildroot/package/busybox/busybox-1.13.0-getopt.patch trunk/buildroot/package/busybox/busybox-1.13.0-lineedit.patch trunk/buildroot/package/busybox/busybox-1.13.0-modprobe.patch

Modified:
trunk/buildroot/package/busybox/Config.in

With revision 24042 of buildroot I get an error building busybox. During the build I get:

...
CC coreutils/id.o
coreutils/id.c: In function 'get_groups':
coreutils/id.c:81: warning: implicit declaration of function 'getgrouplist'
...

Then at the final link:

...
coreutils/lib.a(id.o): In function `get_groups':
id.c:(.text.get_groups+0x10): undefined reference to `getgrouplist'
collect2: ld returned 1 exit status
make[1]: *** [busybox_unstripped] Error 1
...

Any ideas?

Thanks,
Hartley

#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"hartleys" == hartleys <[email protected]> writes:

Hi,

hartleys> With revision 24042 of buildroot I get an error building busybox. During hartleys> the build I get:

Yes, busybox 1.13.0 id applet requires functionality not available in uclibc 0.9.29 / 0.9.28.

I've disabled the id applet in the default config for now.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw
Quoted 9 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"hartleys" == hartleys <[email protected]> writes:

Hi,

hartleys> With revision 24042 of buildroot I get an error building busybox. During hartleys> the build I get:

Yes, busybox 1.13.0 id applet requires functionality not available in uclibc 0.9.29 / 0.9.28.

OR, you can enable CONFIG_USE_BB_PWD_GRP and busybox will use its internal getgrouplist (etc) rather than requiring one from libc.

Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
#4 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Hamish" == Hamish Moffatt <[email protected]> writes:

Hi,

Quoted 2 lines
Quoted 2 lines

Yes, busybox 1.13.0 id applet requires functionality not available in uclibc 0.9.29 / 0.9.28.

Hamish> OR, you can enable CONFIG_USE_BB_PWD_GRP and busybox will use its Hamish> internal getgrouplist (etc) rather than requiring one from libc.

Ahh ok, maybe we should enforce that option if 1.13.0 is used on pre 0.9.30 and id applet is enabled.

Signature · 1 line
Bye, Peter Korsgaard