From patchwork Mon Nov 13 13:00:27 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: 10056007 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 9B18360215 for ; Mon, 13 Nov 2017 13:25:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 920C429135 for ; Mon, 13 Nov 2017 13:25:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85EBD29255; Mon, 13 Nov 2017 13:25:20 +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 1486129135 for ; Mon, 13 Nov 2017 13:25:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754493AbdKMNZR (ORCPT ); Mon, 13 Nov 2017 08:25:17 -0500 Received: from mx2.suse.de ([195.135.220.15]:49597 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754331AbdKMNA3 (ORCPT ); Mon, 13 Nov 2017 08:00:29 -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 CC376AB0C for ; Mon, 13 Nov 2017 13:00:27 +0000 (UTC) From: Nicolas Morey-Chaisemartin Subject: [PATCH rdma-core 2/2] suse: use python3 by default To: linux-rdma@vger.kernel.org Openpgp: preference=signencrypt Message-ID: <5d515246-0d12-d1a8-eb62-d4a027fa67df@suse.de> Date: Mon, 13 Nov 2017 14:00:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Thunderbird/56.0 MIME-Version: 1.0 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 Tumbleweed is to drop older python versions to switch to python3. Add python3 to the build setup and BuildRequires. Signed-off-by: Nicolas Morey-Chaisemartin --- buildlib/cbuild | 2 +- suse/rdma-core.spec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/buildlib/cbuild b/buildlib/cbuild index 32bb70df..97703e01 100755 --- a/buildlib/cbuild +++ b/buildlib/cbuild @@ -309,7 +309,7 @@ class leap(ZypperEnvironment): 'make', 'ninja', 'pkg-config', - 'python', + 'python3', 'rpm-build', 'systemd-devel', 'valgrind-devel', diff --git a/suse/rdma-core.spec b/suse/rdma-core.spec index 4f3638f3..b6de096a 100644 --- a/suse/rdma-core.spec +++ b/suse/rdma-core.spec @@ -58,6 +58,7 @@ BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(udev) +BuildRequires: python3-base %ifnarch s390 s390x BuildRequires: valgrind-devel %endif