2014-04-09 16:40:27 +02:00
|
|
|
# vim: set ts=4 sw=4 et:
|
2014-03-22 12:31:42 +01:00
|
|
|
#
|
2014-09-05 11:10:07 +02:00
|
|
|
setup_pkg_depends() {
|
2014-09-06 12:37:09 +02:00
|
|
|
local pkg="$1" j _pkgdepname _pkgdep _rpkgname _depname _replacement
|
2014-09-05 11:10:07 +02:00
|
|
|
|
|
|
|
if [ -n "$pkg" ]; then
|
|
|
|
# subpkg
|
|
|
|
if declare -f ${pkg}_package >/dev/null; then
|
|
|
|
${pkg}_package
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
for j in ${depends}; do
|
|
|
|
_rpkgname="${j%\?*}"
|
|
|
|
_depname="${j#*\?}"
|
|
|
|
_pkgdepname="$($XBPS_UHELPER_CMD getpkgdepname ${_depname} 2>/dev/null)"
|
|
|
|
if [ -z "${_pkgdepname}" ]; then
|
|
|
|
_pkgdepname="$($XBPS_UHELPER_CMD getpkgname ${_depname} 2>/dev/null)"
|
|
|
|
fi
|
2014-09-06 12:37:09 +02:00
|
|
|
if [ -s ${XBPS_DISTDIR}/etc/virtual ]; then
|
|
|
|
_replacement=$(egrep "^${_pkgdepname:-${_depname}}[[:blank:]]" ${XBPS_DISTDIR}/etc/virtual|cut -d ' ' -f2)
|
|
|
|
if [ -n "${_replacement}" ]; then
|
|
|
|
_depname="${_depname/${_pkgdepname:-${_depname}}/${_replacement}}"
|
|
|
|
fi
|
|
|
|
elif [ -s ${XBPS_DISTDIR}/etc/defaults.virtual ]; then
|
|
|
|
_replacement=$(egrep "^${_pkgdepname:-${_depname}}[[:blank:]]" ${XBPS_DISTDIR}/etc/defaults.virtual|cut -d ' ' -f2)
|
|
|
|
if [ -n "${_replacement}" ]; then
|
|
|
|
_depname="${_depname/${_pkgdepname:-${_depname}}/${_replacement}}"
|
|
|
|
fi
|
|
|
|
fi
|
2014-09-05 11:10:07 +02:00
|
|
|
if [ -z "${_pkgdepname}" ]; then
|
|
|
|
_pkgdep="${_depname}>=0"
|
|
|
|
else
|
|
|
|
_pkgdep="${_depname}"
|
|
|
|
fi
|
|
|
|
if [ "${_rpkgname}" = "virtual" ]; then
|
|
|
|
run_depends+=" virtual?${_pkgdep}"
|
|
|
|
else
|
|
|
|
run_depends+=" ${_pkgdep}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for j in ${hostmakedepends}; do
|
|
|
|
_depname="${j%\?*}"
|
|
|
|
_pkgdepname="$($XBPS_UHELPER_CMD getpkgdepname ${_depname} 2>/dev/null)"
|
|
|
|
if [ -z "${_pkgdepname}" ]; then
|
|
|
|
_pkgdepname="$($XBPS_UHELPER_CMD getpkgname ${_depname} 2>/dev/null)"
|
|
|
|
fi
|
2014-09-06 12:37:09 +02:00
|
|
|
if [ -s ${XBPS_DISTDIR}/etc/virtual ]; then
|
|
|
|
_replacement=$(egrep "^${_pkgdepname:-${_depname}}[[:blank:]]" ${XBPS_DISTDIR}/etc/virtual|cut -d ' ' -f2)
|
|
|
|
if [ -n "${_replacement}" ]; then
|
|
|
|
_depname="${_depname/${_pkgdepname:-${_depname}}/${_replacement}}"
|
|
|
|
fi
|
|
|
|
elif [ -s ${XBPS_DISTDIR}/etc/defaults.virtual ]; then
|
|
|
|
_replacement=$(egrep "^${_pkgdepname:-${_depname}}[[:blank:]]" ${XBPS_DISTDIR}/etc/defaults.virtual|cut -d ' ' -f2)
|
|
|
|
if [ -n "${_replacement}" ]; then
|
|
|
|
_depname="${_depname/${_pkgdepname:-${_depname}}/${_replacement}}"
|
|
|
|
fi
|
|
|
|
fi
|
2014-09-05 11:10:07 +02:00
|
|
|
if [ -z "${_pkgdepname}" ]; then
|
|
|
|
_pkgdep="${_depname}>=0"
|
|
|
|
else
|
|
|
|
_pkgdep="${_depname}"
|
|
|
|
fi
|
|
|
|
host_build_depends+=" ${_pkgdep}"
|
|
|
|
done
|
|
|
|
for j in ${makedepends}; do
|
|
|
|
_depname="${j%\?*}"
|
|
|
|
_pkgdepname="$($XBPS_UHELPER_CMD getpkgdepname ${_depname} 2>/dev/null)"
|
|
|
|
if [ -z "${_pkgdepname}" ]; then
|
|
|
|
_pkgdepname="$($XBPS_UHELPER_CMD getpkgname ${_depname} 2>/dev/null)"
|
|
|
|
fi
|
2014-09-06 12:37:09 +02:00
|
|
|
if [ -s ${XBPS_DISTDIR}/etc/virtual ]; then
|
|
|
|
_replacement=$(egrep "^${_pkgdepname:-${_depname}}[[:blank:]]" ${XBPS_DISTDIR}/etc/virtual|cut -d ' ' -f2)
|
|
|
|
if [ -n "${_replacement}" ]; then
|
|
|
|
_depname="${_depname/${_pkgdepname:-${_depname}}/${_replacement}}"
|
|
|
|
fi
|
|
|
|
elif [ -s ${XBPS_DISTDIR}/etc/defaults.virtual ]; then
|
|
|
|
_replacement=$(egrep "^${_pkgdepname:-${_depname}}[[:blank:]]" ${XBPS_DISTDIR}/etc/defaults.virtual|cut -d ' ' -f2)
|
|
|
|
if [ -n "${_replacement}" ]; then
|
|
|
|
_depname="${_depname/${_pkgdepname:-${_depname}}/${_replacement}}"
|
|
|
|
fi
|
|
|
|
fi
|
2014-09-05 11:10:07 +02:00
|
|
|
if [ -z "${_pkgdepname}" ]; then
|
|
|
|
_pkgdep="${_depname}>=0"
|
|
|
|
else
|
|
|
|
_pkgdep="${_depname}"
|
|
|
|
fi
|
|
|
|
build_depends+=" ${_pkgdep}"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2014-03-22 12:31:42 +01:00
|
|
|
# Install a required package dependency, like:
|
|
|
|
#
|
|
|
|
# xbps-install -Ay <pkgname>
|
|
|
|
#
|
|
|
|
# Returns 0 if package already installed or installed successfully.
|
|
|
|
# Any other error number otherwise.
|
|
|
|
#
|
|
|
|
install_pkg_from_repos() {
|
2014-04-09 16:40:27 +02:00
|
|
|
local pkg="$1" cross="$2" rval= tmplogf=
|
|
|
|
|
2015-03-03 10:45:34 +01:00
|
|
|
tmplogf=${XBPS_STATEDIR}/xbps_${XBPS_TARGET_MACHINE}_bdep_${pkg}.log
|
|
|
|
|
2014-04-09 16:40:27 +02:00
|
|
|
if [ -n "$cross" ]; then
|
2014-09-24 19:51:17 +02:00
|
|
|
$XBPS_INSTALL_XCMD -Ayd "$pkg" >$tmplogf 2>&1
|
2014-04-09 16:40:27 +02:00
|
|
|
else
|
2014-09-24 19:51:17 +02:00
|
|
|
$XBPS_INSTALL_CMD -Ayd "$pkg" >$tmplogf 2>&1
|
2014-04-09 16:40:27 +02:00
|
|
|
fi
|
|
|
|
rval=$?
|
|
|
|
if [ $rval -ne 0 -a $rval -ne 17 ]; then
|
|
|
|
# xbps-install can return:
|
|
|
|
#
|
2014-07-02 11:09:41 +02:00
|
|
|
# SUCCESS (0): package installed successfully.
|
|
|
|
# ENOENT (2): package missing in repositories.
|
|
|
|
# ENXIO (6): package depends on invalid dependencies.
|
|
|
|
# EEXIST (17): package already installed.
|
|
|
|
# ENODEV (19): package depends on missing dependencies.
|
|
|
|
# ENOTSUP (95): no repositories registered.
|
2014-04-09 16:40:27 +02:00
|
|
|
#
|
|
|
|
[ -z "$XBPS_KEEP_ALL" ] && remove_pkg_autodeps
|
|
|
|
msg_red "$pkgver: failed to install '$1' dependency! (error $rval)\n"
|
2015-03-03 10:45:34 +01:00
|
|
|
cat $tmplogf
|
2014-04-09 16:40:27 +02:00
|
|
|
msg_error "Please see above for the real error, exiting...\n"
|
|
|
|
fi
|
|
|
|
[ $rval -eq 17 ] && rval=0
|
|
|
|
return $rval
|
2014-03-22 12:31:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Returns 0 if pkgpattern in $1 is matched against current installed
|
|
|
|
# package, 1 if no match and 2 if not installed.
|
|
|
|
#
|
|
|
|
check_pkgdep_matched() {
|
2014-09-21 11:44:45 +02:00
|
|
|
local pkg="$1" checkver="$2" cross="$3" uhelper= pkgn= iver=
|
2014-04-09 16:40:27 +02:00
|
|
|
|
|
|
|
[ "$build_style" = "meta" ] && return 2
|
|
|
|
[ -z "$pkg" ] && return 255
|
|
|
|
|
|
|
|
pkgn="$($XBPS_UHELPER_CMD getpkgdepname ${pkg})"
|
|
|
|
if [ -z "$pkgn" ]; then
|
|
|
|
pkgn="$($XBPS_UHELPER_CMD getpkgname ${pkg})"
|
|
|
|
fi
|
|
|
|
[ -z "$pkgn" ] && return 255
|
|
|
|
|
|
|
|
if [ -n "$cross" ]; then
|
|
|
|
uhelper="$XBPS_UHELPER_XCMD"
|
|
|
|
else
|
|
|
|
uhelper="$XBPS_UHELPER_CMD"
|
|
|
|
fi
|
|
|
|
|
2014-09-21 11:44:45 +02:00
|
|
|
iver="$($uhelper $checkver $pkgn)"
|
2014-04-09 16:40:27 +02:00
|
|
|
if [ $? -eq 0 -a -n "$iver" ]; then
|
|
|
|
$XBPS_UHELPER_CMD pkgmatch "${pkgn}-${iver}" "${pkg}"
|
|
|
|
[ $? -eq 1 ] && return 0
|
|
|
|
else
|
|
|
|
return 2
|
|
|
|
fi
|
|
|
|
|
|
|
|
return 1
|
2014-03-22 12:31:42 +01:00
|
|
|
}
|
|
|
|
|
2014-04-10 11:58:06 +02:00
|
|
|
#
|
|
|
|
# Returns 0 if pkgpattern in $1 is installed and greater than current
|
|
|
|
# installed package, otherwise 1.
|
|
|
|
#
|
|
|
|
check_installed_pkg() {
|
|
|
|
local pkg="$1" cross="$2" uhelper= pkgn= iver=
|
|
|
|
|
|
|
|
[ -z "$pkg" ] && return 2
|
|
|
|
|
|
|
|
pkgn="$($XBPS_UHELPER_CMD getpkgname ${pkg})"
|
|
|
|
[ -z "$pkgn" ] && return 2
|
|
|
|
|
|
|
|
if [ -n "$cross" ]; then
|
|
|
|
uhelper="$XBPS_UHELPER_XCMD"
|
|
|
|
else
|
|
|
|
uhelper="$XBPS_UHELPER_CMD"
|
|
|
|
fi
|
|
|
|
|
|
|
|
iver="$($uhelper version $pkgn)"
|
|
|
|
if [ $? -eq 0 -a -n "$iver" ]; then
|
|
|
|
$XBPS_CMPVER_CMD "${pkgn}-${iver}" "${pkg}"
|
|
|
|
[ $? -eq 0 -o $? -eq 1 ] && return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
|
2014-03-22 12:31:42 +01:00
|
|
|
#
|
|
|
|
# Installs all dependencies required by a package.
|
|
|
|
#
|
|
|
|
install_pkg_deps() {
|
2015-03-14 07:50:05 +01:00
|
|
|
local pkg="$1" targetpkg="$2" target="$3" cross="$4"
|
|
|
|
local rval _realpkg curpkgdepname pkgn iver _props _exact
|
2014-09-21 11:44:45 +02:00
|
|
|
local i j found rundep checkver
|
2014-04-09 16:40:27 +02:00
|
|
|
|
2015-03-14 07:50:05 +01:00
|
|
|
local -a host_binpkg_deps binpkg_deps host_missing_deps missing_deps
|
2014-04-09 16:40:27 +02:00
|
|
|
|
|
|
|
[ -z "$pkgname" ] && return 2
|
|
|
|
|
|
|
|
setup_pkg_depends
|
|
|
|
|
2015-03-14 07:50:05 +01:00
|
|
|
if [ "$pkg" != "$targetpkg" ]; then
|
|
|
|
msg_normal "$pkgver: building (dependency of $targetpkg) ...\n"
|
|
|
|
else
|
|
|
|
msg_normal "$pkgver: building ...\n"
|
|
|
|
fi
|
|
|
|
|
2014-07-30 17:58:17 +02:00
|
|
|
if [ -z "$build_depends" -a -z "$host_build_depends" -a -z "$run_depends" ]; then
|
2014-04-09 16:40:27 +02:00
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# Host build dependencies.
|
|
|
|
#
|
|
|
|
for i in ${host_build_depends}; do
|
|
|
|
_realpkg="${i%\?*}"
|
|
|
|
pkgn=$($XBPS_UHELPER_CMD getpkgdepname "${_realpkg}")
|
|
|
|
if [ -z "$pkgn" ]; then
|
|
|
|
pkgn=$($XBPS_UHELPER_CMD getpkgname "${_realpkg}")
|
|
|
|
if [ -z "$pkgn" ]; then
|
|
|
|
msg_error "$pkgver: invalid build dependency: ${i}\n"
|
|
|
|
fi
|
|
|
|
_exact=1
|
|
|
|
fi
|
2014-09-21 11:44:45 +02:00
|
|
|
check_pkgdep_matched "${_realpkg}" version
|
2014-04-09 16:40:27 +02:00
|
|
|
local rval=$?
|
|
|
|
if [ $rval -eq 0 ]; then
|
|
|
|
iver=$($XBPS_UHELPER_CMD version "${pkgn}")
|
|
|
|
if [ $? -eq 0 -a -n "$iver" ]; then
|
|
|
|
echo " [host] ${_realpkg}: found '$pkgn-$iver'."
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
elif [ $rval -eq 1 ]; then
|
|
|
|
iver=$($XBPS_UHELPER_CMD version "${pkgn}")
|
|
|
|
if [ $? -eq 0 -a -n "$iver" ]; then
|
|
|
|
echo " [host] ${_realpkg}: installed ${iver} (unresolved) removing..."
|
2014-09-24 19:51:17 +02:00
|
|
|
$XBPS_REMOVE_CMD -iyf $pkgn >/dev/null 2>&1
|
2014-04-09 16:40:27 +02:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
if [ -n "${_exact}" ]; then
|
|
|
|
unset _exact
|
|
|
|
_props=$($XBPS_QUERY_CMD -R -ppkgver,repository "${pkgn}" 2>/dev/null)
|
|
|
|
else
|
|
|
|
_props=$($XBPS_QUERY_CMD -R -ppkgver,repository "${_realpkg}" 2>/dev/null)
|
|
|
|
fi
|
|
|
|
if [ -n "${_props}" ]; then
|
|
|
|
set -- ${_props}
|
|
|
|
$XBPS_UHELPER_CMD pkgmatch ${1} "${_realpkg}"
|
|
|
|
if [ $? -eq 1 ]; then
|
|
|
|
echo " [host] ${_realpkg}: found $1 in $2."
|
|
|
|
host_binpkg_deps+=("$1")
|
|
|
|
shift 2
|
|
|
|
continue
|
|
|
|
else
|
|
|
|
echo " [host] ${_realpkg}: not found."
|
|
|
|
fi
|
|
|
|
shift 2
|
|
|
|
else
|
|
|
|
echo " [host] ${_realpkg}: not found."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
host_missing_deps+=("${_realpkg}")
|
|
|
|
done
|
|
|
|
|
|
|
|
#
|
|
|
|
# Target build dependencies.
|
|
|
|
#
|
2014-09-25 12:44:36 +02:00
|
|
|
checkver="version"
|
2014-08-05 11:51:25 +02:00
|
|
|
for i in ${build_depends} "RDEPS" ${run_depends}; do
|
2014-09-21 11:44:45 +02:00
|
|
|
if [ "$i" = "RDEPS" ]; then
|
|
|
|
rundep="runtime"
|
|
|
|
checkver="real-version"
|
|
|
|
continue
|
|
|
|
fi
|
2014-04-09 16:40:27 +02:00
|
|
|
_realpkg="${i%\?*}"
|
2014-08-17 19:21:25 +02:00
|
|
|
if [ "${_realpkg}" = "virtual" ]; then
|
|
|
|
# ignore virtual dependencies
|
|
|
|
echo " [${rundep:-target}] ${i#*\?}: virtual dependency."
|
|
|
|
continue
|
|
|
|
fi
|
2014-04-09 16:40:27 +02:00
|
|
|
pkgn=$($XBPS_UHELPER_CMD getpkgdepname "${_realpkg}")
|
|
|
|
if [ -z "$pkgn" ]; then
|
|
|
|
pkgn=$($XBPS_UHELPER_CMD getpkgname "${_realpkg}")
|
|
|
|
if [ -z "$pkgn" ]; then
|
|
|
|
msg_error "$pkgver: invalid build dependency: ${_realpkg}\n"
|
|
|
|
fi
|
|
|
|
_exact=1
|
|
|
|
fi
|
2014-07-30 17:58:17 +02:00
|
|
|
# Check if dependency is a subpkg, if it is, ignore it.
|
|
|
|
unset found
|
|
|
|
for j in ${subpackages}; do
|
|
|
|
[ "$j" = "$pkgn" ] && found=1 && break
|
|
|
|
done
|
|
|
|
[ -n "$found" ] && continue
|
2014-09-21 11:44:45 +02:00
|
|
|
check_pkgdep_matched "${_realpkg}" $checkver $cross
|
2014-04-09 16:40:27 +02:00
|
|
|
local rval=$?
|
|
|
|
if [ $rval -eq 0 ]; then
|
2014-09-21 11:44:45 +02:00
|
|
|
iver=$($XBPS_UHELPER_XCMD ${checkver:-version} "${pkgn}")
|
2014-04-09 16:40:27 +02:00
|
|
|
if [ $? -eq 0 -a -n "$iver" ]; then
|
2014-07-30 17:58:17 +02:00
|
|
|
echo " [${rundep:-target}] ${_realpkg}: found '$pkgn-$iver'."
|
2014-04-09 16:40:27 +02:00
|
|
|
continue
|
|
|
|
fi
|
|
|
|
elif [ $rval -eq 1 ]; then
|
2014-09-21 11:44:45 +02:00
|
|
|
iver=$($XBPS_UHELPER_XCMD ${checkver:-version} "${pkgn}")
|
2014-04-09 16:40:27 +02:00
|
|
|
if [ $? -eq 0 -a -n "$iver" ]; then
|
2014-07-30 17:58:17 +02:00
|
|
|
echo " [${rundep:-target}] ${_realpkg}: installed ${iver} (unresolved) removing..."
|
2014-04-09 16:40:27 +02:00
|
|
|
$XBPS_REMOVE_XCMD -iyf $pkgn >/dev/null 2>&1
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if [ -n "${_exact}" ]; then
|
|
|
|
unset _exact
|
|
|
|
_props=$($XBPS_QUERY_XCMD -R -ppkgver,repository "${pkgn}" 2>/dev/null)
|
|
|
|
else
|
|
|
|
_props=$($XBPS_QUERY_XCMD -R -ppkgver,repository "${_realpkg}" 2>/dev/null)
|
|
|
|
fi
|
|
|
|
if [ -n "${_props}" ]; then
|
|
|
|
set -- ${_props}
|
|
|
|
$XBPS_UHELPER_CMD pkgmatch ${1} "${_realpkg}"
|
|
|
|
if [ $? -eq 1 ]; then
|
2014-07-30 17:58:17 +02:00
|
|
|
# If dependency is part of run_depends just check if the binpkg has
|
|
|
|
# been created, but don't install it.
|
|
|
|
if [ -z "$rundep" ]; then
|
|
|
|
binpkg_deps+=("$1")
|
|
|
|
fi
|
|
|
|
echo " [${rundep:-target}] ${_realpkg}: found $1 in $2."
|
2014-04-09 16:40:27 +02:00
|
|
|
shift 2
|
|
|
|
continue
|
|
|
|
else
|
2014-07-30 17:58:17 +02:00
|
|
|
echo " [${rundep:-target}] ${_realpkg}: not found."
|
2014-04-09 16:40:27 +02:00
|
|
|
fi
|
|
|
|
shift 2
|
|
|
|
else
|
2014-07-30 17:58:17 +02:00
|
|
|
echo " [${rundep:-target}] ${_realpkg}: not found."
|
2014-04-09 16:40:27 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
missing_deps+=("${_realpkg}")
|
|
|
|
done
|
|
|
|
|
|
|
|
# Host missing dependencies, build from srcpkgs.
|
|
|
|
for i in ${host_missing_deps[@]}; do
|
2015-03-14 07:50:05 +01:00
|
|
|
# packages not found in repos, install from source.
|
|
|
|
(
|
2014-04-09 16:40:27 +02:00
|
|
|
curpkgdepname=$($XBPS_UHELPER_CMD getpkgdepname "$i")
|
|
|
|
setup_pkg $curpkgdepname
|
|
|
|
${XBPS_UHELPER_CMD} pkgmatch "$pkgver" "$i"
|
|
|
|
if [ $? -eq 0 ]; then
|
2015-03-14 07:50:05 +01:00
|
|
|
setup_pkg $pkg
|
2014-04-10 11:58:06 +02:00
|
|
|
msg_error "$pkgver: required host dependency '$i' cannot be resolved!\n"
|
2014-04-09 16:40:27 +02:00
|
|
|
fi
|
2015-03-19 10:08:02 +01:00
|
|
|
exec env XBPS_BINPKG_EXISTS=1 $XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target || exit $?
|
|
|
|
) || exit $?
|
2015-03-14 07:50:05 +01:00
|
|
|
host_binpkg_deps+=("$i")
|
2014-04-09 16:40:27 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
# Target missing dependencies, build from srcpkgs.
|
|
|
|
for i in ${missing_deps[@]}; do
|
|
|
|
# packages not found in repos, install from source.
|
2015-03-14 07:50:05 +01:00
|
|
|
(
|
2014-04-09 16:40:27 +02:00
|
|
|
curpkgdepname=$($XBPS_UHELPER_CMD getpkgdepname "$i")
|
|
|
|
setup_pkg $curpkgdepname $cross
|
|
|
|
$XBPS_UHELPER_CMD pkgmatch "$pkgver" "$i"
|
|
|
|
if [ $? -eq 0 ]; then
|
2015-03-14 07:50:05 +01:00
|
|
|
setup_pkg $pkg $cross
|
2014-04-10 11:58:06 +02:00
|
|
|
msg_error "$pkgver: required target dependency '$i' cannot be resolved!\n"
|
2014-04-09 16:40:27 +02:00
|
|
|
fi
|
2015-03-19 10:08:02 +01:00
|
|
|
exec env XBPS_BINPKG_EXISTS=1 $XBPS_LIBEXECDIR/build.sh $sourcepkg $pkg $target $cross || exit $?
|
|
|
|
) || exit $?
|
2015-03-14 07:50:05 +01:00
|
|
|
binpkg_deps+=("$i")
|
2014-04-09 16:40:27 +02:00
|
|
|
done
|
|
|
|
|
2015-03-14 07:50:05 +01:00
|
|
|
if [ "$pkg" != "$targetpkg" ]; then
|
|
|
|
msg_normal "$pkg: building (dependency of $targetpkg) ...\n"
|
2014-04-09 16:40:27 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
for i in ${host_binpkg_deps[@]}; do
|
|
|
|
msg_normal "$pkgver: installing host dependency '$i' ...\n"
|
|
|
|
install_pkg_from_repos "${i}"
|
|
|
|
done
|
|
|
|
|
|
|
|
for i in ${binpkg_deps[@]}; do
|
|
|
|
msg_normal "$pkgver: installing target dependency '$i' ...\n"
|
|
|
|
install_pkg_from_repos "$i" $cross
|
|
|
|
done
|
2014-03-22 12:31:42 +01:00
|
|
|
}
|