diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-09 17:38:54 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-09 17:38:54 -0400 |
commit | 21d1b117febdcb2510cf1348dbf2398ac713ffe4 (patch) | |
tree | 429a1721688d9d66958b0fa594be934d77d160be | |
parent | 74981a76ed0034d62c7614fbc502d2d053babd40 (diff) |
fix more
-rw-r--r-- | osi-mk.d/builddeps.sh | 15 | ||||
-rwxr-xr-x | runtests | 8 |
2 files changed, 20 insertions, 3 deletions
diff --git a/osi-mk.d/builddeps.sh b/osi-mk.d/builddeps.sh new file mode 100644 index 0000000..d4ffee2 --- /dev/null +++ b/osi-mk.d/builddeps.sh @@ -0,0 +1,15 @@ +#!/hint/bash + +packages+=( + git +) + +for pkgbuild in abs/*/PKGBUILD*; do + mapfile -t _depends < <( + cd "${pkgbuild%/*}" + sudo -u "#$(stat -c %u -- "${pkgbuild##*/}")" \ + makepkg --printsrcinfo -p "${pkgbuild##*/}" \ + | sed -nE -e 's/^\s+(|make|check)depends(|_\S*) = //p' -e '/^\s*pkgname/q' + ) + cache_packages+=("${_depends[@]}") +done @@ -9,9 +9,10 @@ gitget bare https://git.parabola.nu/~lukeshu/systemd.git "$workdir/systemd.git" ./osi-mk \ - --size=3G \ + --size=5G \ --package='base' \ --module=osi-mk.d/libretools.sh \ + --module=osi-mk.d/builddeps.sh \ --module=osi-mk.d/systemd-dhcpcd.sh \ --module=osi-mk.d/systemd-osi-run.sh \ --directory="$workdir/systemd.git:/home/testuser/packages/srcdest/systemd" \ @@ -28,9 +29,10 @@ set -ex cd ~/packages/abs/systemd-232 - withtty sudo libremakepkg + withtty sudo libremakepkg -l sd232 cd ~/packages/abs/systemd sed 's/@COMMIT@/${COMMIT}/' < PKGBUILD.in > PKGBUILD - withtty sudo libremakepkg + withtty sudo libremakepkg -l sd EOF + } |