[PATCH rdma-core 16/19] debian: Be explicit in dh_install in regards to NO_PYVERBS request

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

 



Fix dh_install to ignore python3-pyverbs when not required and not fail
build to missing packages.

Signed-off-by: Noa Osherovich <noaos@xxxxxxxxxxxx>
---
 debian/rules | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index dceb63527c0b..7fb636dc1722 100755
--- a/debian/rules
+++ b/debian/rules
@@ -67,12 +67,13 @@ INST_EXCLUDE := "etc/init.d/srpd" \
 		"etc/init.d/ibacm" \
 		"usr/sbin/run_srp_daemon" \
 		"usr/sbin/srp_daemon.sh"
-ifeq ($(EXTRA_CMAKE_FLAGS), -DNO_PYVERBS=1)
-	INST_EXCLUDE := $(INST_EXCLUDE) "usr/lib/python3/dist-packages/pyverbs"
-endif
 INST_EXCLUDE := $(addprefix -X,$(INST_EXCLUDE))
 override_dh_install:
+ifeq ($(EXTRA_CMAKE_FLAGS), -DNO_PYVERBS=1)
+	dh_install -Npython3-pyverbs --fail-missing $(INST_EXCLUDE) --remaining-packages
+else
 	dh_install --fail-missing $(INST_EXCLUDE)
+endif
 
 # cmake installs the correct init scripts in the correct place, just setup the
 # pre-postrms
-- 
2.17.2




[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