aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@gentoo.org>2024-09-12 21:41:26 -0400
committerEli Schwartz <eschwartz@gentoo.org>2024-09-12 21:43:24 -0400
commit9fe325b4317d3d8777fd845c26975192359e0ff0 (patch)
treea1798ab7b3aa4bc4c3fc6f4cd81751d53e24cee7
parentadd some debugging tools: dtrace, libabigail (diff)
downloadbinhost-9fe325b4317d3d8777fd845c26975192359e0ff0.tar.gz
binhost-9fe325b4317d3d8777fd845c26975192359e0ff0.tar.bz2
binhost-9fe325b4317d3d8777fd845c26975192359e0ff0.zip
enhanced logging for the base update script
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
-rwxr-xr-xbuilders/milou/binhost-update6
1 files changed, 6 insertions, 0 deletions
diff --git a/builders/milou/binhost-update b/builders/milou/binhost-update
index d48e15e..2f69534 100755
--- a/builders/milou/binhost-update
+++ b/builders/milou/binhost-update
@@ -113,6 +113,9 @@ emerge --sync -q &>> ${TMPFILE}
anyfail=0
+exec {BASH_XTRACEFD}>> ${TMPFILE}
+set -x
+
nspawn_command=(systemd-nspawn --bind /var/cache/distfiles --bind-ro /var/db/repos/gentoo --tmpfs=/var/tmp:mode=1777,size=${TMPFS_SIZE}g)
for n in ${NSPAWN_NAMES} ; do
machinedir=/var/lib/machines/${n}
@@ -127,13 +130,16 @@ for n in ${NSPAWN_NAMES} ; do
let "anyfail+=${ret}"
if [[ ${ret} = 0 ]]; then
builder=$(readlink ${machinedir}/etc/portage)
+ echo "Starting variant builds for ${machinedir}/${builder}..." &>> ${TMPFILE}
for variant in ${machinedir}/${builder}/variants/*; do
[[ -d ${variant} ]] || break
+ echo "Variant: ${variant}" &>> ${TMPFILE}
"${nspawn_command[@]}" --ephemeral --bind ${machinedir}/var/cache/binpkgs -M ${n} /root/bin/run-update ${variant##*/} &>> ${TMPFILE}
let "anyfail+=$?"
done
fi
done
+set +x
cp ${TMPFILE} /var/lib/machines/binhost-amd64-x86-64-kde-23/var/cache/binpkgs/last-build.log