[PATCH] Fix header check on Debian systems.

David Miller davem@davemloft.net
Fri Apr 6 01:14:00 GMT 2012


On debian systems the headers and libraries are provided in a path
that includes the host triplet, for example on my system the headers
are present under /usr/include/sparc-linux-gnu/

This trips up the exclude regexp in check-local-headers.sh giving
a false positive failure.

Ok to commit?

2012-04-05  David S. Miller  <davem@davemloft.net>

	* scripts/check-local-headers.sh: Accept a host triplet in the
	path matched by the exclude regexp.

diff --git a/scripts/check-local-headers.sh b/scripts/check-local-headers.sh
index c7bc40b..08ed880 100755
--- a/scripts/check-local-headers.sh
+++ b/scripts/check-local-headers.sh
@@ -28,7 +28,7 @@ exec ${AWK} -v includedir="$includedir" '
 BEGIN {
   status = 0
   exclude = "^" includedir \
-    "/(asm[-/]|linux/|selinux/|gd|nss3/|sys/capability\\.h|libaudit\\.h)"
+    "/(.*-.*-.*/|)(asm[-/]|linux/|selinux/|gd|nss3/|sys/capability\\.h|libaudit\\.h)"
 }
 /^[^ ]/ && $1 ~ /.*:/ { obj = $1 }
 {



More information about the Libc-alpha mailing list