File: build-fix

package info (click to toggle)
kbuild 1%3A0.1.9998svn3686%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,712 kB
  • sloc: ansic: 344,267; sh: 30,227; perl: 4,570; cpp: 4,566; sed: 1,495; xml: 1,380; makefile: 1,320; asm: 800; yacc: 463; lex: 172; awk: 71; lisp: 26
file content (35 lines) | stat: -rw-r--r-- 1,125 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
 
diff --git a/src/kmk/glob/fnmatch.c b/src/kmk/glob/fnmatch.c
index b346e10..d7495c2 100644
--- a/src/kmk/glob/fnmatch.c
+++ b/src/kmk/glob/fnmatch.c
@@ -121,7 +121,7 @@ USA.  */
    whose names are inconsistent.  */
 
 # if !defined _LIBC && !defined getenv && !defined _MSC_VER
-extern char *getenv ();
+extern char *getenv (const char*);
 # endif
 
 # ifndef errno