diff mbox series

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

Message ID 20190224130638.31848-17-noaos@mellanox.com (mailing list archive)
State Not Applicable
Headers show
Series Pyverbs additions | expand

Commit Message

Noa Osherovich Feb. 24, 2019, 1:06 p.m. UTC
Fix dh_install to ignore python3-pyverbs when not required and not fail
build to missing packages.

Signed-off-by: Noa Osherovich <noaos@mellanox.com>
---
 debian/rules | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox series

Patch

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