From 9c06a9c500299caeea63968803fdaeea30edb974 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 9 Nov 2018 18:55:14 +0100 Subject: bin/build-packages: new straw :without_systemd_nspawn: --- bin/build-packages | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) (limited to 'bin/build-packages') diff --git a/bin/build-packages b/bin/build-packages index 28538c5..9e66bb1 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -51,6 +51,8 @@ usage() { >&2 echo ' download sources from sources.archlinux32.org by hash if possible' >&2 echo ' :without_check:' >&2 echo ' run makepkg with "--no-check"' + >&2 echo ' :without_systemd_nspawn:' + >&2 echo ' do not invoke archbuild'"'"'s systemd-nspawn fanciness [RISKY]' >&2 echo ' :with_build_support:' >&2 echo ' allow using [build-support]' >&2 echo ' :with_/dev/fuse:' @@ -411,13 +413,6 @@ while [ "${count}" -ne 0 ] && \ fi fi - if echo "${straw}" | \ - grep -qF ':with_build_support:'; then - build_command='staging-with-build-support-'"${arch}"'-build' - else - build_command='staging-'"${arch}"'-build' - fi - if echo "${straw}" | \ grep -qF ':clean_chroot:'; then outerParameters='-c' @@ -439,6 +434,26 @@ while [ "${count}" -ne 0 ] && \ middleParameters='' fi + if echo "${straw}" | \ + grep -qF ':with_build_support:'; then + build_command='staging-with-build-support-'"${arch}"'-build' + elif echo "${straw}" | \ + grep -qF ':without_systemd_nspawn:'; then + if ! uname -m | \ + grep -qxF "${arch}"; then + >&2 echo 'straw :without_systemd_nspawn: requires running build-packages on the' + >&2 echo 'architecture for which the package should be built:' + >&2 printf '"%s" != "%s"\n' \ + "$(uname -m)" \ + "${arch}" + exit 2 + fi + build_command='makepkg' + outerParameters="${innerParameters}" + else + build_command='staging-'"${arch}"'-build' + fi + find . -maxdepth 1 -type f \( -name '*.pkg.tar.xz' -o -name '*.pkg.tar.xz.sig' \) -exec \ rm {} \; -- cgit v1.2.3-54-g00ecf