diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-06-20 09:04:57 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-06-20 09:04:57 +0200 |
commit | 856244bc1cd615c35477a12a278c5d107bdae353 (patch) | |
tree | ed415fa011cfccaca1b58b33e08dcb36705bf218 /bin/build-packages | |
parent | c3b83eb5988bff1534445502957eaa91f11b4dac (diff) | |
parent | 10a00d63f599aae012314a578cbe9a3edc9e1fd3 (diff) | |
download | builder-856244bc1cd615c35477a12a278c5d107bdae353.tar.xz |
merge build-packages
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-x | bin/build-packages | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/bin/build-packages b/bin/build-packages index 9c69c5a..5203fc8 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -18,6 +18,15 @@ # TODO: it might be worth trying to build with makedepends installed from # [testing] and only depends installed from [staging] +# TODO: the following things need proper locking and/or proper handling of +# external locks: +# - `git` on the package source +# - `archbuild` (e.g. /var/lib/archbuilds/staging-i686-build/root.lock) +# - `find ... -exec umount` on the build chroot + +# TODO: releave some locking conditions - meta goal: be able to run multiple +# build slaves on one host from within one archlinux32/builder repository + # shellcheck disable=SC2016 usage() { >&2 echo '' @@ -533,14 +542,6 @@ while [ "${count}" -ne 0 ] && \ find . -maxdepth 1 -type f \( -name '*.pkg.tar.xz' -o -name '*.pkg.tar.xz.sig' \) -exec \ rm {} \; - if echo "${outerParameters}" | \ - grep -qwF -- '-c'; then - # sometimes it is necessary to manually remove the root/ build - # directory (due to leftover mounts of /run) - so we just do - # it everytime '-c' is set - recursively_umount_and_rm "${archbuild_chroots}/""${build_command%-build}" - fi - echo 'building' > "${tmp_dir}/.ping-build-master" >&2 printf '%s: building package "%s" (revisions %s %s, repository %s, straw %s) for %s ...' \ "$(date +'%Y-%m-%d %T')" \ |