-
Notifications
You must be signed in to change notification settings - Fork 882
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openelec-next' of github.com:OpenELEC/OpenELEC.tv into …
…openelec-eden
- Loading branch information
Showing
10 changed files
with
100 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
packages/sysutils/busybox/patches/busybox-1.19.2-android.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- busybox-1.19.2/include/platform.h | ||
+++ busybox-1.19.2-android/include/platform.h | ||
@@ -433,7 +433,7 @@ typedef unsigned smalluint; | ||
# undef HAVE_STPCPY | ||
#endif | ||
|
||
-#if defined(ANDROID) | ||
+#if defined(ANDROID) || defined(__ANDROID__) | ||
# undef HAVE_DPRINTF | ||
# undef HAVE_GETLINE | ||
# undef HAVE_STPCPY |
19 changes: 19 additions & 0 deletions
19
packages/sysutils/busybox/patches/busybox-1.19.2-buildsys.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- busybox-1.19.2/applets/applet_tables.c | ||
+++ busybox-1.19.2-buildsys/applets/applet_tables.c | ||
@@ -80,8 +80,15 @@ int main(int argc, char **argv) | ||
|
||
printf("#define NUM_APPLETS %u\n", NUM_APPLETS); | ||
if (NUM_APPLETS == 1) { | ||
+ char *dash_to_underscore, *p; | ||
printf("#define SINGLE_APPLET_STR \"%s\"\n", applets[0].name); | ||
- printf("#define SINGLE_APPLET_MAIN %s_main\n", applets[0].name); | ||
+ /* Example: "ether-wake" -> "ether_wake" */ | ||
+ p = dash_to_underscore = strdup(applets[0].name); | ||
+ p--; | ||
+ while (*++p) | ||
+ if (*p == '-') | ||
+ *p = '_'; | ||
+ printf("#define SINGLE_APPLET_MAIN %s_main\n", dash_to_underscore); | ||
} | ||
printf("\n"); | ||
|
20 changes: 20 additions & 0 deletions
20
packages/sysutils/busybox/patches/busybox-1.19.2-syslogd.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- busybox-1.19.2/sysklogd/syslogd.c | ||
+++ busybox-1.19.2-syslogd/sysklogd/syslogd.c | ||
@@ -278,7 +278,7 @@ static void parse_syslogdcfg(const char | ||
parser_t *parser; | ||
|
||
parser = config_open2(file ? file : "/etc/syslog.conf", | ||
- file ? xfopen_for_read : fopen_or_warn_stdin); | ||
+ file ? xfopen_for_read : fopen_for_read); | ||
if (!parser) | ||
/* didn't find default /etc/syslog.conf */ | ||
/* proceed as if we built busybox without config support */ | ||
@@ -678,7 +678,7 @@ static void timestamp_and_log(int pri, c | ||
if (LOG_PRI(pri) < G.logLevel) { | ||
#if ENABLE_FEATURE_IPC_SYSLOG | ||
if ((option_mask32 & OPT_circularlog) && G.shbuf) { | ||
- log_to_shmem(msg); | ||
+ log_to_shmem(G.printbuf); | ||
return; | ||
} | ||
#endif |
43 changes: 43 additions & 0 deletions
43
packages/sysutils/busybox/patches/busybox-1.19.2-tail.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- busybox-1.19.2/coreutils/tail.c | ||
+++ busybox-1.19.2-tail/coreutils/tail.c | ||
@@ -203,7 +203,7 @@ int tail_main(int argc, char **argv) | ||
int fd = fds[i]; | ||
|
||
if (ENABLE_FEATURE_FANCY_TAIL && fd < 0) | ||
- continue; /* may happen with -E */ | ||
+ continue; /* may happen with -F */ | ||
|
||
if (nfiles > header_threshhold) { | ||
tail_xprint_header(fmt, argv[i]); | ||
@@ -252,14 +252,14 @@ int tail_main(int argc, char **argv) | ||
* Used only by +N code ("start from Nth", 1-based): */ | ||
seen = 1; | ||
newlines_seen = 0; | ||
- while ((nread = tail_read(fd, buf, tailbufsize-taillen)) > 0) { | ||
+ while ((nread = tail_read(fd, buf, tailbufsize - taillen)) > 0) { | ||
if (G.from_top) { | ||
int nwrite = nread; | ||
if (seen < count) { | ||
/* We need to skip a few more bytes/lines */ | ||
if (COUNT_BYTES) { | ||
nwrite -= (count - seen); | ||
- seen = count; | ||
+ seen += nread; | ||
} else { | ||
char *s = buf; | ||
do { | ||
--- busybox-1.19.2/testsuite/tail.tests | ||
+++ busybox-1.19.2-tail/testsuite/tail.tests | ||
@@ -14,4 +14,12 @@ testing "tail: +N with N > file length" | ||
"0\n" \ | ||
"" "qw" | ||
|
||
+testing "tail: -c +N with largish N" \ | ||
+ " | ||
+ dd if=/dev/zero bs=16k count=1 2>/dev/null | tail -c +8200 | wc -c; | ||
+ dd if=/dev/zero bs=16k count=1 2>/dev/null | tail -c +8208 | wc -c; | ||
+ " \ | ||
+ "8185\n8177\n" \ | ||
+ "" "" | ||
+ | ||
exit $FAILCOUNT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters