From e88a01bde327fff3ea620a0ffcd8d9d346fc6747 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 3 Jan 2008 13:33:25 +0000 Subject: busybox: Bump version to 1.8.2 --- package/busybox/Config.in | 8 +++++- package/busybox/busybox-1.8.2-arping.patch | 13 ++++++++++ package/busybox/busybox-1.8.2-static.patch | 12 +++++++++ package/busybox/busybox-1.8.2-vi.patch | 40 ++++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 package/busybox/busybox-1.8.2-arping.patch create mode 100644 package/busybox/busybox-1.8.2-static.patch create mode 100644 package/busybox/busybox-1.8.2-vi.patch (limited to 'package/busybox') diff --git a/package/busybox/Config.in b/package/busybox/Config.in index 3d4ddcee6..41e88d235 100644 --- a/package/busybox/Config.in +++ b/package/busybox/Config.in @@ -12,7 +12,7 @@ config BR2_PACKAGE_BUSYBOX choice prompt "BusyBox Version" depends BR2_PACKAGE_BUSYBOX - default BR2_BUSYBOX_VERSION_1_7_X + default BR2_BUSYBOX_VERSION_1_8_X help Select the version of BusyBox you wish to use. @@ -26,6 +26,10 @@ choice config BR2_BUSYBOX_VERSION_1_7_X bool "BusyBox 1.7.x" + depends on BR2_DEPRECATED || BR2_RECENT + + config BR2_BUSYBOX_VERSION_1_8_X + bool "BusyBox 1.8.x" config BR2_PACKAGE_BUSYBOX_SNAPSHOT bool "daily snapshot" @@ -37,6 +41,7 @@ config BR2_BUSYBOX_VERSION default "1.2.2.1" if BR2_BUSYBOX_VERSION_1_2_2_1 default "1.6.1" if BR2_BUSYBOX_VERSION_1_6_1 default "1.7.4" if BR2_BUSYBOX_VERSION_1_7_X + default "1.8.2" if BR2_BUSYBOX_VERSION_1_8_X config BR2_PACKAGE_BUSYBOX_INSTALL_SYMLINKS @@ -59,6 +64,7 @@ config BR2_PACKAGE_BUSYBOX_CONFIG default "package/busybox/busybox-1.2.2.1.config" if BR2_BUSYBOX_VERSION_1_2_2_1 default "package/busybox/busybox-1.6.0.config" if BR2_BUSYBOX_VERSION_1_6_1 default "package/busybox/busybox-1.6.0.config" if BR2_BUSYBOX_VERSION_1_7_X + default "package/busybox/busybox-1.6.0.config" if BR2_BUSYBOX_VERSION_1_8_X help Some people may wish to use their own modified BusyBox configuration file, and will specify their config file location with this option. diff --git a/package/busybox/busybox-1.8.2-arping.patch b/package/busybox/busybox-1.8.2-arping.patch new file mode 100644 index 000000000..9e1d77e5b --- /dev/null +++ b/package/busybox/busybox-1.8.2-arping.patch @@ -0,0 +1,13 @@ +diff -urN busybox-1.8.2/networking/arping.c busybox-1.8.2-arping/networking/arping.c +--- busybox-1.8.2/networking/arping.c 2007-11-10 01:40:47.000000000 +0000 ++++ busybox-1.8.2-arping/networking/arping.c 2007-12-18 10:31:55.000000000 +0000 +@@ -207,7 +207,8 @@ + } + + if (last) { +- printf(" %u.%03ums\n", last / 1000, last % 1000); ++ unsigned diff = MONOTONIC_US() - last; ++ printf(" %u.%03ums\n", diff / 1000, diff % 1000); + } else { + printf(" UNSOLICITED?\n"); + } diff --git a/package/busybox/busybox-1.8.2-static.patch b/package/busybox/busybox-1.8.2-static.patch new file mode 100644 index 000000000..86fddef8a --- /dev/null +++ b/package/busybox/busybox-1.8.2-static.patch @@ -0,0 +1,12 @@ +diff -urN busybox-1.8.2/applets/applets.c busybox-1.8.2-static/applets/applets.c +--- busybox-1.8.2/applets/applets.c 2007-11-10 01:40:53.000000000 +0000 ++++ busybox-1.8.2-static/applets/applets.c 2007-12-09 03:46:04.000000000 +0000 +@@ -17,7 +17,7 @@ + #warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400 + #warning Note that glibc is unsuitable for static linking anyway. + #warning If you still want to do it, remove -Wl,--gc-sections +-#warning from top-level Makefile and remove this warning. ++#warning from file scripts/trylink and remove this warning. + #error Aborting compilation. + #endif + diff --git a/package/busybox/busybox-1.8.2-vi.patch b/package/busybox/busybox-1.8.2-vi.patch new file mode 100644 index 000000000..cb588ac65 --- /dev/null +++ b/package/busybox/busybox-1.8.2-vi.patch @@ -0,0 +1,40 @@ +diff -urN busybox-1.8.2/editors/vi.c busybox-1.8.2-vi/editors/vi.c +--- busybox-1.8.2/editors/vi.c 2007-11-10 01:40:54.000000000 +0000 ++++ busybox-1.8.2-vi/editors/vi.c 2007-12-10 16:26:01.000000000 +0000 +@@ -184,6 +184,7 @@ + #if ENABLE_FEATURE_VI_COLON + char *initial_cmds[3]; // currently 2 entries, NULL terminated + #endif ++ char readbuffer[MAX_LINELEN]; + }; + #define G (*ptr_to_globals) + #define text (G.text ) +@@ -200,6 +201,10 @@ + #define term_orig (G.term_orig ) + #define term_vi (G.term_vi ) + #define initial_cmds (G.initial_cmds ) ++#define readbuffer (G.readbuffer ) ++#define INIT_G() do { \ ++ PTR_TO_GLOBALS = xzalloc(sizeof(G)); \ ++} while (0) + + static int init_text_buffer(char *); // init from file or create new + static void edit_file(char *); // edit one file +@@ -321,7 +326,7 @@ + my_pid = getpid(); + #endif + +- PTR_TO_GLOBALS = xzalloc(sizeof(G)); ++ INIT_G(); + + #if ENABLE_FEATURE_VI_CRASHME + srand((long) my_pid); +@@ -2142,8 +2147,6 @@ + return safe_poll(pfd, 1, hund*10) > 0; + } + +-#define readbuffer bb_common_bufsiz1 +- + static int readed_for_parse; + + //----- IO Routines -------------------------------------------- -- cgit v1.2.3