summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2019-03-18 17:34:00 +0000
committerHéctor Orón Martínez <zumbi@debian.org>2019-09-01 01:59:08 +0200
commit93b7b773f7b8490c80d729af435b973bcdd484ad (patch)
tree6ef1b955612d9620f9a78eb1790f11e5269a9818
parent51bab0b0bf5a211238c05013a03d98c1856b9519 (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-dsc25
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}"