summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-02 23:35:36 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-02 23:35:36 +0000
commitaa94bb352bc46d02fd5ea33a1cf6558131006466 (patch)
treeafe1a705253292ca599ea25133ec8530bd6a56b9 /mk/check
parent3d6f3983660fa82c751dbc5ee90c8acbee1fe7b9 (diff)
downloadpkgsrc-aa94bb352bc46d02fd5ea33a1cf6558131006466.tar.gz
Deal with cases where the first dependency of a package is a build
dependency, but a full dependency follows later.
Diffstat (limited to 'mk/check')
-rw-r--r--mk/check/check-shlibs-elf.awk10
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/check/check-shlibs-elf.awk b/mk/check/check-shlibs-elf.awk
index 901be4d2c2d..e7eca5903ca 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.2 2007/08/21 21:08:18 joerg Exp $
+# $NetBSD: check-shlibs-elf.awk,v 1.3 2010/02/02 23:35:36 joerg Exp $
#
# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -68,7 +68,7 @@ function shquote(IN, out) {
return out;
}
-function check_pkg(DSO, pkg) {
+function check_pkg(DSO, pkg, found) {
if (destdir == "")
return 0
cmd = pkg_info_cmd " -Fe " shquote(DSO) " 2> /dev/null"
@@ -79,14 +79,18 @@ function check_pkg(DSO, pkg) {
close(cmd)
if (pkg == "")
return 0
+ found=0
while ((getline < depends_file) > 0) {
if ($3 == pkg) {
+ found=1
if ($1 != "full")
- print DSO ": " pkg " is not a runtime dependency"
+ continue
close(depends_file)
return 0
}
}
+ if (found)
+ print DSO ": " pkg " is not a runtime dependency"
# Not yet:
# print DSO ": " pkg " is not a dependency"
close(depends_file)