From patchwork Sun Feb 24 13:06:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noa Osherovich X-Patchwork-Id: 10827951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC1D61880 for ; Sun, 24 Feb 2019 13:08:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB08E296ED for ; Sun, 24 Feb 2019 13:08:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF37C2AA16; Sun, 24 Feb 2019 13:08:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B53B2A98F for ; Sun, 24 Feb 2019 13:08:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728121AbfBXNI6 (ORCPT ); Sun, 24 Feb 2019 08:08:58 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:50585 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728269AbfBXNI5 (ORCPT ); Sun, 24 Feb 2019 08:08:57 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from noaos@mellanox.com) with ESMTPS (AES256-SHA encrypted); 24 Feb 2019 15:06:49 +0200 Received: from reg-l-vrt-059-009.mtl.labs.mlnx (reg-l-vrt-059-009.mtl.labs.mlnx [10.135.59.9]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x1OD6mfk026210; Sun, 24 Feb 2019 15:06:49 +0200 From: Noa Osherovich To: leonro@mellanox.com, jgg@mellanox.com, dledford@redhat.com Cc: linux-rdma@vger.kernel.org, Noa Osherovich Subject: [PATCH rdma-core 16/19] debian: Be explicit in dh_install in regards to NO_PYVERBS request Date: Sun, 24 Feb 2019 15:06:35 +0200 Message-Id: <20190224130638.31848-17-noaos@mellanox.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190224130638.31848-1-noaos@mellanox.com> References: <20190224130638.31848-1-noaos@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix dh_install to ignore python3-pyverbs when not required and not fail build to missing packages. Signed-off-by: Noa Osherovich --- 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