[PATCH rdma-core 2/2] debian: Pass same parameters to 'build' as 'binary'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Tzafrir Cohen <tzafrirc@xxxxxxxxxxxx>

The rules file needs to have different handling for the 'build' target
because a directory with this name exists.

Pass the same arguments to this target as to all other targets. This
issue was not noticed as normally the target 'build-arch' is used
by dpkg-buildpackage.

Signed-off-by: Tzafrir Cohen <tzafrirc@xxxxxxxxxxxx>
Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
---
 debian/rules | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 0a762045..3ba8bc06 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,8 +6,10 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all

 COHERENT_DMA_ARCHS = amd64 arm64 i386 ia64 powerpc powerpcspe ppc64 ppc64el s390x sparc64 x32

+dh_params = --with python3,systemd --builddirectory=build-deb
+
 %:
-	dh $@ --with python3,systemd --builddirectory=build-deb
+	dh $@ $(dh_params)

 override_dh_auto_clean:
 	dh_auto_clean
@@ -106,4 +108,4 @@ override_dh_strip:
 # directory, allow that directory to be present and still allow dh to work.
 .PHONY: build
 build:
-	dh $@ --with systemd --builddirectory=build-deb
+	dh $@ $(dh_params)
--
2.19.1




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux