summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2017-04-26 11:19:16 +0000
committerjperkin <jperkin@pkgsrc.org>2017-04-26 11:19:16 +0000
commit858d2ea483758cfc937aa36f0aa3766f798aa616 (patch)
tree5201c9ca2d0109b95bfec962d188b4a0d8879ad3 /mk/check
parentdb3d18046120f1f7c44ab269a1f99193f52fddda (diff)
downloadpkgsrc-858d2ea483758cfc937aa36f0aa3766f798aa616.tar.gz
Only perform the CHECK_WRKREF_EXTRA_DIRS check on the resolved path rather
than on all of the rpaths. We can't always exclude the rpath being added, for example when the compiler adds its own behind our back, so this avoids false positives.
Diffstat (limited to 'mk/check')
-rw-r--r--mk/check/check-shlibs-elf.awk14
1 files changed, 7 insertions, 7 deletions
diff --git a/mk/check/check-shlibs-elf.awk b/mk/check/check-shlibs-elf.awk
index ec3eaee6db4..8f934896ee2 100644
--- a/mk/check/check-shlibs-elf.awk
+++ b/mk/check/check-shlibs-elf.awk
@@ -1,4 +1,4 @@
-# $NetBSD: check-shlibs-elf.awk,v 1.13 2016/03/10 15:56:24 jperkin Exp $
+# $NetBSD: check-shlibs-elf.awk,v 1.14 2017/04/26 11:19:16 jperkin Exp $
#
# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -127,12 +127,6 @@ function checkshlib(DSO, needed, rpath, found, dso_rpath, got_rpath, nrpath) {
substr(rpath[p], 1, length(wrkdir) + 1) == wrkdir "/") {
print DSO ": rpath relative to WRKDIR"
}
- for (e = 1; e <= nedirs; e++) {
- if (rpath[p] == edirs[e] ||
- substr(rpath[p], 1, length(edirs[e]) + 1) == edirs[e] "/") {
- print DSO ": rpath " rpath[p] " relative to CHECK_WRKREF_EXTRA_DIRS directory " edirs[e]
- }
- }
}
for (lib in needed) {
found = 0
@@ -143,6 +137,12 @@ function checkshlib(DSO, needed, rpath, found, dso_rpath, got_rpath, nrpath) {
}
if (!libcache[libfile]) {
check_pkg(rpath[p] "/" lib)
+ for (e = 1; e <= nedirs; e++) {
+ if (rpath[p] == edirs[e] ||
+ substr(rpath[p], 1, length(edirs[e]) + 1) == edirs[e] "/") {
+ print DSO ": rpath " rpath[p] " relative to CHECK_WRKREF_EXTRA_DIRS directory " edirs[e]
+ }
+ }
found = 1
break
}