summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-02-29 01:24:42 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-02-29 01:24:42 +0000
commit2f75770abad7cdd1b3b23ad28dbc60292bd4d65b (patch)
tree870073bcaa20ba02e97efde51436429e7955705c
parentdda17d403570f1e9dc96246ec8ab5b1a6ea09728 (diff)
downloadmidipix_build-2f75770abad7cdd1b3b23ad28dbc60292bd4d65b.tar.bz2
midipix_build-2f75770abad7cdd1b3b23ad28dbc60292bd4d65b.tar.xz
groups/dev_packages.group:${GROUP_AUTO}: set to 0.
subr/build_init.subr:buildp_init_vars(): don't include groups in ${_default_build_groups} if ${GROUP_AUTO} is set to 0.
-rw-r--r--groups/dev_packages.group1
-rw-r--r--subr/build_init.subr9
2 files changed, 9 insertions, 1 deletions
diff --git a/groups/dev_packages.group b/groups/dev_packages.group
index 9c5e9edc..def41522 100644
--- a/groups/dev_packages.group
+++ b/groups/dev_packages.group
@@ -1,6 +1,7 @@
#
# Build group dev_packages
#
+GROUP_AUTO=0;
DEV_PACKAGES_CFLAGS_CONFIGURE="${DEFAULT_CFLAGS:+${DEFAULT_CFLAGS} }--sysroot=${PREFIX_NATIVE}";
DEV_PACKAGES_CONFIG_CACHE_LOCAL="${CONFIG_CACHE_GNULIB}";
DEV_PACKAGES_CONFIGURE_ARGS="-C --disable-nls --host=${DEFAULT_TARGET} --prefix= --program-prefix= --target=${DEFAULT_TARGET}";
diff --git a/subr/build_init.subr b/subr/build_init.subr
index 321678a5..27af80da 100644
--- a/subr/build_init.subr
+++ b/subr/build_init.subr
@@ -212,7 +212,14 @@ buildp_init_vars() {
else
_fname="${_fname##*/}"; _fname="${_fname%.group}"; _target="${_fname#*.}";
fi;
- _default_build_groups="$(rtl_lconcat "${_default_build_groups}" "${_target}")";
+ if [ -n "${GROUP_AUTO}" ]; then
+ if [ "${GROUP_AUTO:-0}" -ne 0 ]; then
+ _default_build_groups="$(rtl_lconcat "${_default_build_groups}" "${_target}")";
+ fi;
+ unset GROUP_AUTO;
+ else
+ _default_build_groups="$(rtl_lconcat "${_default_build_groups}" "${_target}")";
+ fi;
done;
_default_build_groups="$(rtl_uniq "${_default_build_groups}")";
if ! rtl_lmatch "${ARG_DIST}" "rpm" ","; then