From b5701c6d8bf7b0e1e2f8ff4559af8e1a6baf1e21 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 20 Nov 2020 23:18:29 +0100 Subject: [PATCH] test existence of groups 'Libraries' and 'System' before using --- Pmodules/libpbuild.bash | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index cd184ff..e4b0d63 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -1377,9 +1377,12 @@ pbuild.build_module() { # :FIXME: this is a hack!!! # shouldn't this be set in the build-script? - eval $( "${MODULECMD}" bash use Libraries ) - eval $( "${MODULECMD}" bash use System ) - + if [[ -e "${PMODULES_ROOT}/Libraries" ]]; then + eval $( "${MODULECMD}" bash use Libraries ) + fi + if [[ -e "${PMODULES_ROOT}/System" ]]; then + eval $( "${MODULECMD}" bash use System ) + fi unset C_INCLUDE_PATH unset CPLUS_INCLUDE_PATH unset CPP_INCLUDE_PATH