summaryrefslogtreecommitdiffstats
path: root/debian/patches/build-fix
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-11 08:21:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-11 08:21:30 +0000
commit5fbf8d8592ffd00fcd6f237ab31886936755c882 (patch)
treec02b1d7cb63f2794cb6e24b6ba611badb624d8ac /debian/patches/build-fix
parentAdding upstream version 1:0.1.9998svn3589+dfsg. (diff)
downloadkbuild-5fbf8d8592ffd00fcd6f237ab31886936755c882.tar.xz
kbuild-5fbf8d8592ffd00fcd6f237ab31886936755c882.zip
Adding debian version 1:0.1.9998svn3589+dfsg-1.debian/1%0.1.9998svn3589+dfsg-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/build-fix')
-rw-r--r--debian/patches/build-fix22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/build-fix b/debian/patches/build-fix
new file mode 100644
index 0000000..5a28bea
--- /dev/null
+++ b/debian/patches/build-fix
@@ -0,0 +1,22 @@
+Description: fix build by using the correct echo binary, not the builtin one.
+ Builtin echo does not escape regexes by default, so when mknodes generates nodes.c, a line such as:
+ TRACE2((psh, "copyfunc: %p - %u refs\n", n->pblock, refs)); K_NOREF(refs);
+
+ gets translated into
+ TRACE2((psh, "copyfunc: %p - %u refs
+ ", n->pblock, refs)); K_NOREF(refs);
+
+ making the program FTBFS.
+ This patch fixes the build failure.
+Author: Gianfranco Costamagna <locutusofborg@debian.org>
+--- kbuild-0.1.9998svn3489+dfsg.orig/src/kash/mknodes.sh
++++ kbuild-0.1.9998svn3489+dfsg/src/kash/mknodes.sh
+@@ -224,7 +224,7 @@ while IFS=; read -r line; do
+ echo " };"
+ echo " new->type = n->type;"
+ ;;
+- * ) echo "$line";;
++ * ) /bin/echo "$line";;
+ esac
+ done
+