summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-02-19 15:10:23 +0000
committerjperkin <jperkin@pkgsrc.org>2016-02-19 15:10:23 +0000
commitcb1450a8c97ade87b000c0488dea6158fb46a084 (patch)
tree921bbab5ff55251f4acdd2d63c3e06c805bf44de /mk/check
parent46d9be9950d1d25ccdc0cfeaeb0db467432a744b (diff)
downloadpkgsrc-cb1450a8c97ade87b000c0488dea6158fb46a084.tar.gz
Add an additional check to ensure that library REQUIRES are not relative
paths. These would previously pass the checks as the files would exist when checking from within the DESTDIR, but were not resolvable at runtime.
Diffstat (limited to 'mk/check')
-rw-r--r--mk/check/check-shlibs-macho.awk13
1 files changed, 9 insertions, 4 deletions
diff --git a/mk/check/check-shlibs-macho.awk b/mk/check/check-shlibs-macho.awk
index 543c040d3ae..6d79f7bce7e 100644
--- a/mk/check/check-shlibs-macho.awk
+++ b/mk/check/check-shlibs-macho.awk
@@ -1,4 +1,4 @@
-# $NetBSD: check-shlibs-macho.awk,v 1.1 2015/08/17 17:35:23 jperkin Exp $
+# $NetBSD: check-shlibs-macho.awk,v 1.2 2016/02/19 15:10:23 jperkin Exp $
#
# Read a list of potential Mach-O binaries from stdin.
@@ -80,10 +80,15 @@ function checkshlib(DSO, needed, found) {
# Ensure we don't have any WRKDIR references.
#
if (lib == wrkdir ||
- substr(lib, 1, length(wrkdir) + 1) == wrkdir "/") {
+ substr(lib, 1, length(wrkdir) + 1) == wrkdir "/")
print DSO ": path relative to WRKDIR: " lib
- break
- }
+
+ #
+ # Ensure there are no relative paths.
+ #
+ if (substr(lib, 1, 1) != "/")
+ print DSO ": relative library path: " lib
+
#
# Check destination dirs for library existence. If found in a
# system path (cross_destdir is somewhat confusing but if set