[v2] Ignore nspr headers directory when checking local headers

Message ID 1464631855.24965.1.camel@trentalancia.net
State New, archived
Headers

Commit Message

Guido Trentalancia May 30, 2016, 6:10 p.m. UTC
  When checking the local headers, ignore not only the nss3 headers
directory but also the nspr headers directory (both are needed
when building glibc with the --enable-nss-crypt option).

Failure to ignore the nspr headers directory would produce a
false positive (FAIL) of the check-local-headers test during make
check because some nss3 headers use nspr headers.

Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
---
 scripts/check-local-headers.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

--- glibc-orig/scripts/check-local-headers.sh	2016-05-30 20:00:01.565571016 +0200
+++ glibc/scripts/check-local-headers.sh	2016-05-30 20:00:22.049496606 +0200
@@ -33,7 +33,7 @@  exec ${AWK} -v includedir="$includedir"
 BEGIN {
   status = 0
   exclude = "^" includedir \
-    "/(.*-.*-.*/|.*-.*/|)(asm[-/]|arch|linux/|selinux/|mach/|device/|hurd/(((hurd|ioctl)_types|paths)\\.h|ioctls\\.defs|ihash\\.h)|cthreads\\.h|gd|nss3/|c\\+\\+/|sys/(capability|sdt(|-config))\\.h|libaudit\\.h)"
+    "/(.*-.*-.*/|.*-.*/|)(asm[-/]|arch|linux/|selinux/|mach/|device/|hurd/(((hurd|ioctl)_types|paths)\\.h|ioctls\\.defs|ihash\\.h)|cthreads\\.h|gd|nss3/|nspr/|c\\+\\+/|sys/(capability|sdt(|-config))\\.h|libaudit\\.h)"
 }
 /^[^ ]/ && $1 ~ /.*:/ { obj = $1 }
 {