From e30a9c89080e98433308db7c96ac2c717d12d2f6 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Mon, 21 Jan 2019 00:50:35 -0200 Subject: [PATCH] shutils/common.sh: add support for source build-helper files --- common/xbps-src/shutils/common.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index b19ad8a26a..3172e9e51e 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -597,4 +597,12 @@ setup_pkg() { fi source_file $XBPS_COMMONDIR/environment/build-style/${build_style}.sh + + # Source all build-class files that are defined + for f in $build_helper; do + if [ ! -r $XBPS_BUILDHELPERDIR/${f}.sh ]; then + msg_error "$pkgver: cannot find build helper $XBPS_BUILDHELPERDIR/${f}.sh!\n" + fi + . $XBPS_BUILDHELPERDIR/${f}.sh + done }