parent
68c3a242d1
commit
af6e1a7e79
2 changed files with 14 additions and 4 deletions
|
@ -1,13 +1,21 @@
|
||||||
# vim: set ts=4 sw=4 et:
|
# vim: set ts=4 sw=4 et:
|
||||||
#
|
#
|
||||||
setup_pkg_depends() {
|
setup_pkg_depends() {
|
||||||
local pkg="$1" out="$2" j _rpkgname _depname _pkgname foo _deps
|
local pkg="$1" out="$2" with_subpkgs="$3" j _rpkgname _depname _pkgname foo _deps collected
|
||||||
|
|
||||||
if [[ $pkg ]]; then
|
if [[ $pkg ]]; then
|
||||||
# subpkg
|
# subpkg
|
||||||
if declare -f ${pkg}_package >/dev/null; then
|
if declare -f ${pkg}_package >/dev/null; then
|
||||||
${pkg}_package
|
${pkg}_package
|
||||||
fi
|
fi
|
||||||
|
elif [[ $with_subpkgs ]]; then
|
||||||
|
collected="${depends}"
|
||||||
|
for pkg in $subpackages; do
|
||||||
|
[[ $pkg ]] || continue
|
||||||
|
${pkg}_package
|
||||||
|
collected+=" ${depends}"
|
||||||
|
done
|
||||||
|
depends="${collected}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for j in ${depends}; do
|
for j in ${depends}; do
|
||||||
|
@ -296,9 +304,9 @@ install_pkg_deps() {
|
||||||
#
|
#
|
||||||
# Target run time dependencies
|
# Target run time dependencies
|
||||||
#
|
#
|
||||||
if [[ ${depends} ]]; then
|
local _cleandeps=$(setup_pkg_depends "" 1 1) || exit 1
|
||||||
|
if [[ ${_cleandeps} ]]; then
|
||||||
templates=""
|
templates=""
|
||||||
local _cleandeps=$(setup_pkg_depends "" 1) || exit 1
|
|
||||||
for f in ${_cleandeps}; do
|
for f in ${_cleandeps}; do
|
||||||
if [ -f $XBPS_SRCPKGDIR/$f/template ]; then
|
if [ -f $XBPS_SRCPKGDIR/$f/template ]; then
|
||||||
templates+=" $f"
|
templates+=" $f"
|
||||||
|
@ -334,6 +342,8 @@ install_pkg_deps() {
|
||||||
echo " [runtime] ${_vpkg}: not found"
|
echo " [runtime] ${_vpkg}: not found"
|
||||||
missing_rdeps+=("$_vpkg")
|
missing_rdeps+=("$_vpkg")
|
||||||
fi
|
fi
|
||||||
|
elif [[ ${_depname} == ${pkgname} ]]; then
|
||||||
|
echo " [runtime] ${_vpkg}: not found (self, ignored)"
|
||||||
else
|
else
|
||||||
echo " [runtime] ${_vpkg}: not found"
|
echo " [runtime] ${_vpkg}: not found"
|
||||||
missing_rdeps+=("$_vpkg")
|
missing_rdeps+=("$_vpkg")
|
||||||
|
|
|
@ -89,7 +89,7 @@ show_pkg_build_depends() {
|
||||||
}
|
}
|
||||||
|
|
||||||
show_pkg_build_deps() {
|
show_pkg_build_deps() {
|
||||||
show_pkg_build_depends "${hostmakedepends} ${makedepends} $(setup_pkg_depends '' 1)"
|
show_pkg_build_depends "${hostmakedepends} ${makedepends} $(setup_pkg_depends '' 1 1)"
|
||||||
}
|
}
|
||||||
|
|
||||||
show_pkg_hostmakedepends() {
|
show_pkg_hostmakedepends() {
|
||||||
|
|
Loading…
Reference in a new issue