From 8d9f0ed81596a1fb052a801432f15e62994356d6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 11 Nov 2014 10:41:20 +0100 Subject: [PATCH] xbps-src: bulk: setup srcpkg vars before reading target template. --- common/xbps-src/shutils/bulk.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/xbps-src/shutils/bulk.sh b/common/xbps-src/shutils/bulk.sh index 2071e29037..9e9be1bc0d 100644 --- a/common/xbps-src/shutils/bulk.sh +++ b/common/xbps-src/shutils/bulk.sh @@ -36,6 +36,9 @@ bulk_build() { # Perform a topological sort of all pkgs but only with build dependencies # that are found in previous step. for pkg in ${pkgs}; do + for x in ${XBPS_COMMONDIR}/environment/setup/*.sh; do + . $x + done . ${XBPS_SRCPKGDIR}/${pkg}/template _pkgs="$(show_pkg_build_deps | sed -e 's|[<>].*\$||g')" found=0