summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/01_fix-tests-output.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/01_fix-tests-output.patch b/patches/01_fix-tests-output.patch
new file mode 100644
index 0000000..120b9a8
--- /dev/null
+++ b/patches/01_fix-tests-output.patch
@@ -0,0 +1,33 @@
+Author: "P. J. McDermott" <pj@pehjota.net>
+Subject: Fix tests output
+
+ProteanOS's BusyBox is built without support for echo's -n option, so this
+happens:
+
+ if [ 'xamd64-linux-glibc' = 'xamd64-linux-glibc' ]; then \
+ oh-autotest; \
+ fi
+ make[1]: Entering directory `/usr/src/pkgconf_0.9.6-1/tmp/src'
+ /bin/sh tests/run.sh ./pkgconf
+ -n .
+ -n .
+ -n .
+ [...]
+ -n .
+ -n .
+
+ 83 tests done. All succeeded.
+ make[1]: Leaving directory `/usr/src/pkgconf_0.9.6-1/tmp/src'
+
+diff -Naur src.orig/tests/run.sh.in src/tests/run.sh.in
+--- src.orig/tests/run.sh.in 2014-06-07 16:32:08.000000000 -0400
++++ src/tests/run.sh.in 2014-06-14 02:12:18.663272084 -0400
+@@ -34,7 +34,7 @@
+ done
+
+ if [ ${t_ret} -eq 0 ]; then
+- echo -n "."
++ printf "."
+ else
+ failed=$(( failed + 1 ))
+ fi