[ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_QA}" ] && set -x
+if [ -z "${PKG_BIN}" ]; then
+ echo "PKG_BIN required in environment." >&2
+ exit 1
+fi
+
LF=$(printf '\nX')
LF=${LF%X}
@@ -666,8 +671,8 @@
if listcontains ${dep_file} "${already}"; then
continue
fi
- if $(pkg which -q ${dep_file} > /dev/null 2>&1); then
- dep_file_pkg=$(pkg which -qo ${dep_file})
+ if $("${PKG_BIN}" which -q ${dep_file} > /dev/null 2>&1); then
+ dep_file_pkg=$("${PKG_BIN}" which -qo ${dep_file})
# Check that the .so we need has a SONAME
if [ "${dep_file_pkg}" != "${PKGORIGIN}" ]; then
@@ -772,7 +777,7 @@
EOT
fi
done
- if [ -n "${gotsome}" ] && ! pkg info -e devel/p5-Module-CoreList; then
+ if [ -n "${gotsome}" ] && ! "${PKG_BIN}" info -e devel/p5-Module-CoreList; then
notice "You have some Perl modules as dependencies but you do not have devel/p5-Module-CoreList installed, the perlcore QA check gets better results when using it, especially with older Perl versions."