This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix header check on Debian systems.
- From: David Miller <davem at davemloft dot net>
- To: libc-alpha at sourceware dot org
- Date: Thu, 05 Apr 2012 21:14:35 -0400 (EDT)
- Subject: [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 }
{