From patchwork Sun Feb 24 13:06:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noa Osherovich X-Patchwork-Id: 10827955 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 2372617E9 for ; Sun, 24 Feb 2019 13:09:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11D6C29DAD for ; Sun, 24 Feb 2019 13:09:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 061F12AA16; Sun, 24 Feb 2019 13:09:01 +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 B286229DAD for ; Sun, 24 Feb 2019 13:09:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728275AbfBXNI7 (ORCPT ); Sun, 24 Feb 2019 08:08:59 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:50607 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728233AbfBXNI7 (ORCPT ); Sun, 24 Feb 2019 08:08:59 -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 x1OD6mfl026210; 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 17/19] build: Disable pyverbs build for older Cython versions Date: Sun, 24 Feb 2019 15:06:36 +0200 Message-Id: <20190224130638.31848-18-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 Dockers with older Cython versions fail to build pyverbs. Until we get to the bottom of this, disable pyverbs for older Cython versions. Signed-off-by: Noa Osherovich --- buildlib/Findcython.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/buildlib/Findcython.cmake b/buildlib/Findcython.cmake index 0bcc862b7b8a..ac1610c47f6d 100644 --- a/buildlib/Findcython.cmake +++ b/buildlib/Findcython.cmake @@ -18,6 +18,14 @@ if(NOT _VERSION_RESULT) from Cython.Compiler.Main import main main(command_line = 1)") execute_process(COMMAND "chmod" "a+x" "${CYTHON_EXECUTABLE}") + + # Dockers with older Cython versions fail to build pyverbs. Until we get to + # the bottom of this, disable pyverbs for older Cython versions. + if (CYTHON_VERSION_STRING VERSION_LESS "0.25") + message("Cython version < 0.25, disabling") + unset(CYTHON_EXECUTABLE) + endif() + endif() unset(_VERSION_RESULT) unset(_VERSION)