This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix header check on Debian systems.


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 }
 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]