summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-27 00:20:17 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-27 00:20:17 (EDT)
commite60f1c8e757f486355eb3dbea9068d4ba4e0d41a (patch)
tree94c743b9c421c98e72d3610641fb8bfdb96bb508
parentb02c51302a8848f2c3b0db5179e1461c867f428b (diff)
Add patch to fix the libcompat script on BusyBox.
-rw-r--r--patches/01_libcompat-drop-non-portable-cat-command.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/patches/01_libcompat-drop-non-portable-cat-command.patch b/patches/01_libcompat-drop-non-portable-cat-command.patch
new file mode 100644
index 0000000..4674ee3
--- /dev/null
+++ b/patches/01_libcompat-drop-non-portable-cat-command.patch
@@ -0,0 +1,15 @@
+Author: "P. J. McDermott" <pj@pehjota.net>
+Subject: libcompat: Drop non-portable cat command
+
+diff -Naur src.orig/libcompat src/libcompat
+--- src.orig/libcompat 2013-10-29 11:44:51.000000000 -0400
++++ src/libcompat 2014-06-27 00:15:09.857704139 -0400
+@@ -5,7 +5,7 @@
+
+ for i in $FILES
+ do
+- ID="`dd bs=8 count=1 < $i 2>/dev/null | cat -v`"
++ ID="`dd bs=8 count=1 < $i 2>/dev/null`"
+ [ "$ID" != "!<arch>" ] && {
+ make ld86r || exit $?
+