From patchwork Wed Nov 8 14:31:24 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: 10048613 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 79C4A60247 for ; Wed, 8 Nov 2017 14:31:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CA1820243 for ; Wed, 8 Nov 2017 14:31:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 616FC28C0E; Wed, 8 Nov 2017 14:31:27 +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 228AC20243 for ; Wed, 8 Nov 2017 14:31:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752127AbdKHOb0 (ORCPT ); Wed, 8 Nov 2017 09:31:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:40663 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbdKHObZ (ORCPT ); Wed, 8 Nov 2017 09:31:25 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C0BECACE5 for ; Wed, 8 Nov 2017 14:31:24 +0000 (UTC) From: Nicolas Morey-Chaisemartin Subject: [PATCH rdma-core 2/4] cbuild: allow envs to pass custom options to rpmbuild To: linux-rdma@vger.kernel.org References: <627d02ab-1e95-8e1e-c7d3-f3db02fce75a@suse.de> Openpgp: preference=signencrypt Message-ID: <1ab960a4-a747-6e3e-17f3-a5f5c41b3669@suse.de> Date: Wed, 8 Nov 2017 15:31:24 +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 --- buildlib/cbuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildlib/cbuild b/buildlib/cbuild index e6a64e8a..eb5349de 100755 --- a/buildlib/cbuild +++ b/buildlib/cbuild @@ -474,7 +474,8 @@ os.symlink({tarfn!r},os.path.join("SOURCES",tarfn)); tarfn=tarfn, tspec_file=tspec_file); - bopts = ["-bb",tspec_file]; + extra_opts = getattr(env,"rpmbuild_options", []) + bopts = ["-bb",tspec_file] + extra_opts; print >> F,'os.execlp("rpmbuild","rpmbuild",%s)'%( ",".join(repr(I) for I in bopts));