summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-09 17:38:54 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-09 17:38:54 -0400
commit21d1b117febdcb2510cf1348dbf2398ac713ffe4 (patch)
tree429a1721688d9d66958b0fa594be934d77d160be
parent74981a76ed0034d62c7614fbc502d2d053babd40 (diff)
fix more
-rw-r--r--osi-mk.d/builddeps.sh15
-rwxr-xr-xruntests8
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
diff --git a/runtests b/runtests
index ca451b1..aeb70c0 100755
--- a/runtests
+++ b/runtests
@@ -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
+
}