summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2016-02-19 15:10:23 +0000
committerjperkin <jperkin>2016-02-19 15:10:23 +0000
commitb6fd2ab41592b90732a135edc1e5583a790f0b15 (patch)
tree921bbab5ff55251f4acdd2d63c3e06c805bf44de /mk
parenteacdf3709e5af46764f63bd87ef9258e1dcfc148 (diff)
downloadpkgsrc-b6fd2ab41592b90732a135edc1e5583a790f0b15.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')
-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