From patchwork Wed Nov 8 14:31:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Morey-Chaisemartin X-Patchwork-Id: 10048611 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 285FF60247 for ; Wed, 8 Nov 2017 14:31:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1ADF928799 for ; Wed, 8 Nov 2017 14:31:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E27029059; Wed, 8 Nov 2017 14:31:24 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 8849028799 for ; Wed, 8 Nov 2017 14:31:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751839AbdKHObW (ORCPT ); Wed, 8 Nov 2017 09:31:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:40653 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbdKHObW (ORCPT ); Wed, 8 Nov 2017 09:31:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id EC5EAACE5 for ; Wed, 8 Nov 2017 14:31:20 +0000 (UTC) From: Nicolas Morey-Chaisemartin Subject: [PATCH rdma-core 1/4] suse: add a bcond to disable usage of curl-mini To: linux-rdma@vger.kernel.org References: <627d02ab-1e95-8e1e-c7d3-f3db02fce75a@suse.de> Openpgp: preference=signencrypt Message-ID: <2897ea63-deca-2304-f2ce-8a1a778d02d6@suse.de> Date: Wed, 8 Nov 2017 15:31:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Thunderbird/56.0 MIME-Version: 1.0 In-Reply-To: <627d02ab-1e95-8e1e-c7d3-f3db02fce75a@suse.de> Content-Language: fr-xx-classique+reforme1990 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 Signed-off-by: Nicolas Morey-Chaisemartin --- suse/rdma-core.spec | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/suse/rdma-core.spec b/suse/rdma-core.spec index 03c4a296..4f3638f3 100644 --- a/suse/rdma-core.spec +++ b/suse/rdma-core.spec @@ -77,9 +77,21 @@ Obsoletes: rdma < %{version} Provides: ofed = %{version} Obsoletes: ofed < %{version} +# Trickery to handle both SUSE OpenBuild System and Manual build +# In OBS, rdma-core must use curl-mini instead of curl to avoid +# a build dependency loop: +# rdma-core -> cmake -> curl -> ... -> boost -> rdma-core +# Thus we force a BuildRequires to curl-mini which as no impact +# as it is not used during the build. +# However curl-mini is not a published RPM. This would prevent any build +# outside of OBS. Thus we add a bcond to allow manual build. +# To force build without the use of curl-mini, --without=curlmini +# should be passed to rpmbuild %if 0%{?suse_version} >= 1330 +%if %{with curlmini} BuildRequires: curl-mini %endif +%endif # Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags # which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style