diff options
author | Simon McVittie <smcv@collabora.com> | 2019-03-18 17:34:00 +0000 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2020-08-06 10:24:20 +0200 |
commit | 0f7a0f7ba51979ccd9368b12c5bda7b8a2e84ed0 (patch) | |
tree | a51f368d1822c0f5f619d887814fa86a46547803 | |
parent | e299dda47b813693fb0578fe55ad6318d1e9e73c (diff) |
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 <smcv@collabora.com>
Forwarded: https://github.com/openSUSE/obs-build/pull/497
Gbp-Pq: Name build-recipe-dsc-Show-information-about-the-build-chroot.patch
-rw-r--r-- | build-recipe-dsc | 25 |
1 files changed, 25 insertions, 0 deletions
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}" |