From: Arran Cudbard-Bell Date: Tue, 21 Jun 2022 20:47:08 +0000 (-0500) Subject: write out the builddep logs in case we need them X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94146e7bdb63f2981646678b28eec0715a574ee0;p=thirdparty%2Ffreeradius-server.git write out the builddep logs in case we need them --- diff --git a/Makefile b/Makefile index 121dd18a03a..2127c1b182e 100644 --- a/Makefile +++ b/Makefile @@ -443,8 +443,9 @@ rpmbuild/SOURCES/freeradius-server-$(RADIUSD_VERSION_STRING).tar.bz2: freeradius @cp $< $@ rpm: rpmbuild/SOURCES/freeradius-server-$(RADIUSD_VERSION_STRING).tar.bz2 - @if ! sudo yum-builddep -q -C --assumeno redhat/freeradius.spec 1> /dev/null 2>&1; then \ + @if ! sudo yum-builddep -q -C --assumeno redhat/freeradius.spec 1> $(BUILD_DIR)/builddep.log 2>&1; then \ echo "ERROR: Required dependencies not found, install them with: yum-builddep redhat/freeradius.spec"; \ + cat $(BUILD_DIR)/builddep.log; \ exit 1; \ fi @cwd=`pwd` && cd redhat && QA_RPATHS=0x0003 rpmbuild --define "_topdir $$cwd/rpmbuild" -bb freeradius.spec