From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 83C30A0C47 for ; Tue, 15 Jun 2021 14:41:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FCAA40140; Tue, 15 Jun 2021 14:41:42 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 0F0AA40140 for ; Tue, 15 Jun 2021 14:41:40 +0200 (CEST) IronPort-SDR: PPRRBgRkQTbo8LuxrZcf1FnvyY+EPXQDkQVo/o/s2fjwlYHYvWbLYGD/JfUI3gCIygeClCrFBO 5yXuVxo2aDWg== X-IronPort-AV: E=McAfee;i="6200,9189,10015"; a="227449356" X-IronPort-AV: E=Sophos;i="5.83,275,1616482800"; d="scan'208";a="227449356" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2021 05:41:39 -0700 IronPort-SDR: mqOdobO11j9TvhfUfeUG5K8UQuM7Bzj89AGoTdw2XrVywDDsqR45p0quJahuS92J+YqUWovWPs Pn9z71N887Iw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,275,1616482800"; d="scan'208";a="403961847" Received: from irsmsx602.ger.corp.intel.com ([163.33.146.8]) by orsmga006.jf.intel.com with ESMTP; 15 Jun 2021 05:41:38 -0700 Received: from irsmsx601.ger.corp.intel.com (163.33.146.7) by irsmsx602.ger.corp.intel.com (163.33.146.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 15 Jun 2021 13:41:37 +0100 Received: from irsmsx601.ger.corp.intel.com ([163.33.146.7]) by irsmsx601.ger.corp.intel.com ([163.33.146.7]) with mapi id 15.01.2242.008; Tue, 15 Jun 2021 13:41:37 +0100 From: "Richardson, Bruce" To: David Marchand , "stable@dpdk.org" CC: "xuemingl@nvidia.com" , Robin Jarry , Luca Boccassi Thread-Topic: [PATCH 20.11] build: fix drivers selection without Python Thread-Index: AQHXYeESx+bQbjM3JUKZmyYticwdBasVA7KA Date: Tue, 15 Jun 2021 12:41:37 +0000 Message-ID: References: <20210615122153.24002-1-david.marchand@redhat.com> In-Reply-To: <20210615122153.24002-1-david.marchand@redhat.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action x-originating-ip: [163.33.253.164] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH 20.11] build: fix drivers selection without Python X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" > -----Original Message----- > From: David Marchand > Sent: Tuesday, June 15, 2021 1:22 PM > To: stable@dpdk.org > Cc: xuemingl@nvidia.com; Richardson, Bruce ; > Robin Jarry ; Luca Boccassi > Subject: [PATCH 20.11] build: fix drivers selection without Python >=20 > [ upstream commit 627c5b41bb14a1afbd1489b0fc4b8224532a823d ] >=20 > The list of disabled drivers is built by calling list-dir-globs.py. >=20 > But if no Python interpreter is installed, no error is reported > and no driver is disabled. >=20 > Example on a minimal FreeBSD VM: >=20 > dpdk@freebsd:~/dpdk $ meson setup build -Ddisable_drivers=3Dnet/* > ... > Message: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Drivers Enabled > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > common: > cpt, iavf, octeontx, octeontx2, sfc_efx, qat, > bus: > ifpga, pci, vdev, > mempool: > bucket, octeontx, octeontx2, ring, stack, > net: > ark, atlantic, bond, bnxt, cxgbe, e1000, ena, enic, > failsafe, fm10k, i40e, hinic, iavf, ice, igc, ixgbe, > liquidio, null, octeontx, octeontx2, pcap, qede, ring, sfc, > thunderx, txgbe, virtio, vmxnet3, > ... >=20 > dpdk@freebsd:~/dpdk $ cd drivers/ > dpdk@freebsd:~/dpdk/drivers $ ~/dpdk/buildtools/list-dir-globs.py net/* > env: python3: No such file or directory >=20 > Rely on meson internal interpreter. > Check return code when calling this script. >=20 > Fixes: ab9407c3addd ("build: allow using wildcards to disable drivers") >=20 > Signed-off-by: David Marchand > --- Acked-by: Bruce Richardson