* d/rules/preconfigure: Print info about build environment.

This commit is contained in:
Matthias Klose 2023-10-09 04:20:04 +02:00
parent 781a5963ec
commit 5392b48137
2 changed files with 9 additions and 0 deletions

1
debian/changelog vendored
View File

@ -8,6 +8,7 @@ llvm-toolchain-17 (1:17.0.2-1~exp2) UNRELEASED; urgency=medium
* Build-depend on libncurses-dev instead of libncurses5-dev.
* Use a stamps subdirectory for all build stamps.
* Factor-out the calls to dh_listpackages.
* d/rules/preconfigure: Print info about build environment.
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 04 Oct 2023 09:46:49 +0200

8
debian/rules vendored
View File

@ -539,6 +539,14 @@ stamps/preconfigure:
echo "llvm spriv isn't detected while it should probably for this distro"; \
fi
@echo "Memory:"
@if [ -e /proc/meminfo ]; then \
cat /proc/meminfo | grep -E '(Mem|Swap)Free|Cached'; \
else \
echo " No memory info available"; \
fi
@echo "Processors: $$(cat /proc/cpuinfo | grep --count '^processor')"
@echo "DEB_BUILD_OPTIONS=$(DEB_BUILD_OPTIONS)"
@echo "DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH)"
@echo "DEB_HOST_GNU_TYPE=$(DEB_HOST_GNU_TYPE)"