Before:
$ bmake _check-shlibs
=> Checking for missing run-time search paths in nodejs-21.2.0
$
This is wrong. node is linked against gettext-lib and iconv, neither of which are deps, but are pulled in implicitly by others.
Fix:
--- a/mk/check/check-shlibs-elf.awk
+++ b/mk/check/check-shlibs-elf.awk
@@ -96,8 +96,8 @@ function check_pkg(DSO, pkg, found) {
}
if (found)
print DSO ": " pkg " is not a runtime dependency"
- # Not yet:
- # print DSO ": " pkg " is not a dependency"
+ else
+ print DSO ": " pkg " is not a dependency"
close(depends_file)
}
After:
$ bmake _check-shlibs
=> Checking for missing run-time search paths in nodejs-21.2.0
ERROR: /opt/local/lib/libintl.so.8: gettext-lib-0.22.3 is not a dependency
ERROR: /opt/local/lib/libiconv.so.2: libiconv-1.17 is not a dependency
*** Error code 1
Stop.