From 0f7a0f7ba51979ccd9368b12c5bda7b8a2e84ed0 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 18 Mar 2019 17:34:00 +0000 Subject: build-recipe-dsc: Show information about the build chroot This vaguely mimics what Debian's sbuild does, although the precise information given here is different. Signed-off-by: Simon McVittie Forwarded: https://github.com/openSUSE/obs-build/pull/497 Gbp-Pq: Name build-recipe-dsc-Show-information-about-the-build-chroot.patch --- build-recipe-dsc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/build-recipe-dsc b/build-recipe-dsc index 3bf145e..86a5016 100644 --- a/build-recipe-dsc +++ b/build-recipe-dsc @@ -89,6 +89,31 @@ dsc_build() { local changes local f + echo "==== Kernel ====" + echo + uname -a || true + echo + + echo "==== Filesystems in build chroot ====" + echo + chroot "$buildroot" su -c "cat /proc/self/mountinfo" - "$BUILD_USER" < /dev/null || true + echo + + echo "==== User identity in build chroot ====" + echo + chroot "$buildroot" su -c "id" - "$BUILD_USER" < /dev/null || true + echo + + echo "==== Environment variables in build chroot ====" + echo + chroot "$buildroot" su -c "env | LC_ALL=C sort -u" - "$BUILD_USER" < /dev/null || true + echo + + echo "==== Packages installed in build chroot ====" + echo + chroot "$buildroot" su -c "dpkg-query -W" - "$BUILD_USER" < /dev/null || true + echo + DSC_BUILD_OPTIONS= if test -n "$BUILD_JOBS" ; then DSC_BUILD_OPTIONS="parallel=${BUILD_JOBS}" -- cgit v1.2.3