# HG changeset patch # User Pascal Bellard # Date 1598957092 0 # Node ID 9616e3b570451086d890435f06097614a08159ee # Parent 607d608abcf0ce5b56c14375436a328ea1b238ce busybox: update patches diff -r 607d608abcf0 -r 9616e3b57045 busybox/stuff/patches/ash.u --- a/busybox/stuff/patches/ash.u Tue Sep 01 10:31:46 2020 +0000 +++ b/busybox/stuff/patches/ash.u Tue Sep 01 10:44:52 2020 +0000 @@ -1,7 +1,7 @@ Some SliTaz scripts (cook) need that... ---- busybox-1.27/shell/ash.c -+++ busybox-1.27/shell/ash.c -@@ -12632,7 +12632,13 @@ +--- busybox-1.31/shell/ash.c ++++ busybox-1.31/shell/ash.c +@@ -13304,7 +13304,13 @@ if (strchr(name, '/')) return name; diff -r 607d608abcf0 -r 9616e3b57045 busybox/stuff/patches/cmdline.u --- a/busybox/stuff/patches/cmdline.u Tue Sep 01 10:31:46 2020 +0000 +++ b/busybox/stuff/patches/cmdline.u Tue Sep 01 10:44:52 2020 +0000 @@ -1,7 +1,6 @@ -Display command line in usage output. Useful to debug scripts with variables. ---- busybox-1.27/libbb/appletlib.c -+++ busybox-1.27/libbb/appletlib.c -@@ -129,9 +129,16 @@ +--- busybox-1.30/libbb/appletlib.c ++++ busybox-1.30/libbb/appletlib.c +@@ -118,9 +118,16 @@ #endif /* FEATURE_COMPRESS_USAGE */ @@ -18,16 +17,16 @@ + if (ENABLE_SHOW_USAGE) { #ifdef SINGLE_APPLET_STR - /* Imagine that this applet is "true". Dont suck in printf! */ -@@ -753,6 +760,7 @@ - /* If we were called as "busybox..." */ - static int busybox_main(char **argv) + /* Imagine that this applet is "true". Dont link in printf! */ +@@ -820,6 +827,7 @@ + # endif + int busybox_main(int argc UNUSED_PARAM, char **argv) { + bb_argv = argv; if (!argv[1]) { /* Called without arguments */ const char *a; -@@ -952,6 +960,7 @@ +@@ -1033,6 +1041,7 @@ int main(int argc UNUSED_PARAM, char **argv) #endif { diff -r 607d608abcf0 -r 9616e3b57045 busybox/stuff/patches/cpio.u --- a/busybox/stuff/patches/cpio.u Tue Sep 01 10:31:46 2020 +0000 +++ b/busybox/stuff/patches/cpio.u Tue Sep 01 10:44:52 2020 +0000 @@ -1,6 +1,6 @@ ---- busybox-1.25/archival/cpio.c -+++ busybox-1.25/archival/cpio.c -@@ -244,6 +244,9 @@ +--- busybox-1.31/archival/cpio.c ++++ busybox-1.31/archival/cpio.c +@@ -247,6 +247,9 @@ if (!(S_ISLNK(st.st_mode) || S_ISREG(st.st_mode))) st.st_size = 0; /* paranoia */ diff -r 607d608abcf0 -r 9616e3b57045 busybox/stuff/patches/diet.u --- a/busybox/stuff/patches/diet.u Tue Sep 01 10:31:46 2020 +0000 +++ b/busybox/stuff/patches/diet.u Tue Sep 01 10:44:52 2020 +0000 @@ -1,7 +1,7 @@ ---- busybox-1.25/include/platform.h -+++ busybox-1.25/include/platform.h -@@ -506,6 +506,20 @@ - # undef HAVE_NET_ETHERNET_H +--- busybox-1.31/include/platform.h ++++ busybox-1.31/include/platform.h +@@ -533,6 +533,25 @@ + # undef HAVE_PRINTF_PERCENTM #endif +#if defined(__dietlibc__) @@ -12,18 +12,23 @@ +# define S_TYPEISMQ(x) 0 +# define S_TYPEISSEM(x) 0 +# define S_TYPEISSHM(x) 0 ++# define O_CLOEXEC 0 +# undef HAVE_STRVERSCMP +# undef HAVE_DPRINTF +# undef HAVE_STRCASESTR ++#undef ALWAYS_INLINE ++#define ALWAYS_INLINE inline ++#undef NOINLINE ++#define NOINLINE +# define ttyname_r(a,b,c) (strlcpy(b, ttyname(a), c) == 0) +#endif + /* * Now, define prototypes for all the functions defined in platform.c * These must come after all the HAVE_* macros are defined (or not) ---- busybox-1.25/networking/ping.c -+++ busybox-1.25/networking/ping.c -@@ -30,6 +30,84 @@ +--- busybox-1.31/networking/ping.c ++++ busybox-1.31/networking/ping.c +@@ -123,6 +124,84 @@ #include "libbb.h" #include "common_bufsiz.h" diff -r 607d608abcf0 -r 9616e3b57045 busybox/stuff/patches/diff.u --- a/busybox/stuff/patches/diff.u Tue Sep 01 10:31:46 2020 +0000 +++ b/busybox/stuff/patches/diff.u Tue Sep 01 10:44:52 2020 +0000 @@ -1,6 +1,6 @@ ---- busybox-1.26/editors/diff.c -+++ busybox-1.26/editors/diff.c -@@ -111,6 +111,7 @@ +--- busybox-1.31/editors/diff.c ++++ busybox-1.31/editors/diff.c +@@ -109,6 +109,7 @@ //usage: "\n -B Ignore changes whose lines are all blank" //usage: "\n -d Try hard to find a smaller set of changes" //usage: "\n -i Ignore case differences" @@ -8,7 +8,7 @@ //usage: "\n -L Use LABEL instead of the filename in the unified header" //usage: "\n -N Treat absent files as empty" //usage: "\n -q Output only whether files differ" -@@ -142,6 +143,7 @@ +@@ -140,6 +141,7 @@ FLAG_b, FLAG_d, FLAG_i, @@ -16,7 +16,7 @@ FLAG_L, /* never used, handled by getopt32 */ FLAG_N, FLAG_q, -@@ -756,6 +758,14 @@ +@@ -754,6 +756,14 @@ j = fread(buf1, 1, sz, fp[1]); if (i != j) { differ = true; @@ -31,7 +31,7 @@ i = MIN(i, j); } if (i == 0) -@@ -869,7 +879,9 @@ +@@ -867,7 +877,9 @@ * Using list.len to specify its length, * add_to_dirlist will remove it. */ list[i].len = strlen(p[i]); @@ -42,12 +42,12 @@ add_to_dirlist, skip_dir, &list[i], 0); /* Sort dl alphabetically. * GNU diff does this ignoring any number of trailing dots. -@@ -983,7 +995,7 @@ - #if ENABLE_FEATURE_DIFF_LONG_OPTIONS - applet_long_options = diff_longopts; - #endif -- getopt32(argv, "abdiL:*NqrsS:tTU:+wupBE", -+ getopt32(argv, "abdilL:*NqrsS:tTU:+wupBE", +@@ -982,7 +994,7 @@ + INIT_G(); + + /* exactly 2 params; collect multiple -L