diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-02 23:35:36 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-02 23:35:36 +0000 |
commit | f0113d84e9c88d56bfdf4fddb328e780e9757ca4 (patch) | |
tree | afe1a705253292ca599ea25133ec8530bd6a56b9 /mk/check/check-shlibs-elf.awk | |
parent | b5e8e4676aea5ea2da7cbc6d57960061f562fd0c (diff) | |
download | pkgsrc-f0113d84e9c88d56bfdf4fddb328e780e9757ca4.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/check-shlibs-elf.awk')
-rw-r--r-- | mk/check/check-shlibs-elf.awk | 10 |
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) |