index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/build-packages | 29 |
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:' @@ -412,13 +414,6 @@ while [ "${count}" -ne 0 ] && \ 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' else @@ -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 {} \; |