Message ID | TYAP286MB0300609982071AF15679FD8ACCF5A@TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Thomas Monjalon |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AD63B425B3; Sat, 16 Sep 2023 15:15:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34E7D40150; Sat, 16 Sep 2023 15:15:52 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2094.outbound.protection.outlook.com [40.92.99.94]) by mails.dpdk.org (Postfix) with ESMTP id 5D985400D5 for <dev@dpdk.org>; Sat, 16 Sep 2023 15:15:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ejzi4eDwthlUl/Ddcg3FpvkSjDmknSLFnjM5PO9BqybqCMsTS6hrwXEuPnVh98HWtAiFsKfxgbNhSCdjJZzGRzd1tiY/gfQVMKxA+Mh7Iz98/xZp6kjNKp67vcC3a5HTR3wRVq2DHV8kivlJ558i9RIWltJVR5yR5ZCDMR77c1aXyeEqlr0hu6P2m74vKfq/NxgC0ZATuQBCQw0+bTUwR/3wPbevrfheIIVb8N1UUL8XA3AH8gl4k4jChIwvAAWZbLBw3vpMGX3mzJqjiLnCmX7wLzpy8atDDKuvmWKYkXD7eTLlx7ZdSs22IeyLKDNBn0bc1VjqwCzHInO8F74m9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tEGD9sKu6pH35YNTsre1l/6DCMifnxssKFjxsTr/75g=; b=Koc155h5GTho9QTXjBcPjfjRdd3nsDmh24bQgRAsffHq4pwgktolxwiFTOxsQWpeJtdzLBDxaXnqeKVtRsx2614vhyuRTPeG+TzKT+8eX6lIeIjpRxmh4WJ8m1QtenpzpDtlgOhB3G0qxYsovMRmXt+YxkKpxdf1emmjcuomb7DnE+OSXTc+v989uRYusxNc7FPnTnFNbLrlPVDLM+26D3NMupDEBxIpQq+x/f/gooxAKtIqP3ReDwSLf0tSXYQVeGoBU+WMX+MUNmGgxE4eENrvQzpu/5uz6LuxB5fyuqKqb2q/xWUvJh4DDDRwXyZ6eKfr60W7d4Dgf65o+7xv7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tEGD9sKu6pH35YNTsre1l/6DCMifnxssKFjxsTr/75g=; b=aahhZwdybvY9o6G9aLCRkfeppMBQGjxfPXvCebDS8YfGZvq88p4QHh+goNS55IypyCyrW+dX2153G4gJ9qbMaoWh3gk+nHv6SeVA/y/AQBTTLqcBV86mq6gRthfCmGiW5r5799AqCMHx0xUkc7pXyOLpx1uDa5QJoODSH37X/5jwfMLQz57nEzStkOi/AwOoMVrEIXd8YeuTNoaxruVwBiPpw7/hGskuo0BlHFhbpqhEAb1nWcY2rYXJGVlZWqjIcjgiQlcRByKupNxZKfPo8zJAuaXyg6+609l5W/4myRHCn395IPCzWC8YLWFyQmnveyAVGeG1eP1LMS+jACaJ2w== Received: from TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8039::14) by TYWP286MB3786.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:400::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.12; Sat, 16 Sep 2023 13:15:48 +0000 Received: from TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM ([fe80::5cc3:f4e1:628b:7520]) by TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM ([fe80::5cc3:f4e1:628b:7520%7]) with mapi id 15.20.6813.012; Sat, 16 Sep 2023 13:15:48 +0000 From: Ric Li <ricmli@outlook.com> To: dev@dpdk.org Subject: [PATCH 1/2] build: fix list_dir_globs failure in MSYS2 Date: Sat, 16 Sep 2023 21:15:19 +0800 Message-ID: <TYAP286MB0300609982071AF15679FD8ACCF5A@TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.42.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [1TvpOORaDZf9VqMMJxhcBt1WdpoRgCAg] X-ClientProxiedBy: SG2PR03CA0094.apcprd03.prod.outlook.com (2603:1096:4:7c::22) To TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8039::14) X-Microsoft-Original-Message-ID: <20230916131521.2217-1-ricmli@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYAP286MB0300:EE_|TYWP286MB3786:EE_ X-MS-Office365-Filtering-Correlation-Id: 62dff3e9-f8d0-44f8-b3cc-08dbb6b70aed X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9BfmDmCwmzt6dfhf2OV3hrEBNaAsS4FIuTWR3LNaW+cMFoqHMYdYsms9QIEEWJTBnvOaKGdh8Rs3W8XvBSB3A4CSXp1BHf0cqCu1R7SYGesuV0x5e5lwrKsfRWOg9wpRHKiCPeTTN1nw3evc2xYwWUiAoRm8bwjZMRbIpLZ+lycigyQovhiPJLcrOXRPJemFlbukXcruIzXb14N7qgfdi7qpKFKbVJ73137ry5gMG1lckFIdh/cYpOd06ON2CJ4BP98yMn6MyMQ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z9GI2z/f5NxdVTWkLVGXMN/uqNg+/+Y4eIrRNQD5ra/Yp/JyUzJlAEvDsyuj3f6/SbEO0h28g3JPFV4cRHPs+xD7wA4PZjvlNHxm/UWTrwX7O9F8QrZs6jO3kBMYMLUfbL92HUj7MyT4quWwVZZnEpBODebdMPrHPJAQwUQIbMrj0jmEoIbKWc7FGZh85/UuE0snWZClJXw9Ouhr8TdV3x0j5r7KNhStIo2YlYxAjQfH+zQNkIg+06jE8/TLxRxd4WFFwH7zeLxttsKqNcl03W+/rpJgMXaszWWmo0e8yqV5HES0o7g83l3DueAU3LRp/+pvuh9rgU71OOPyeS9vRjRDCBCh+Xbkld8NPfzqiHo31suN+nAMnpx1mx7IxOUUjV7b/QCUDB+Zxxr2oKeOx25aYRfMS6HVGggIVK9y5NETOYV158qWm8lLTXKvVmN/PlspdxW+GEbYdFSlAPK+jOiL8V6H15N2xQ2ishAhOUoiadgMXhW0drqUM3xfejqCCfOJg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62dff3e9-f8d0-44f8-b3cc-08dbb6b70aed X-MS-Exchange-CrossTenant-AuthSource: TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2023 13:15:48.4084 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWP286MB3786 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
[1/2] build: fix list_dir_globs failure in MSYS2
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Ric Li
Sept. 16, 2023, 1:15 p.m. UTC
When running 'meson build' in MSYS2,
"list-dir-globs.py * failed with status 1".
Signed-off-by: Ric Li <ricmli@outlook.com>
---
app/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sat, Sep 16, 2023 at 09:15:19PM +0800, Ric Li wrote: > When running 'meson build' in MSYS2, > "list-dir-globs.py * failed with status 1". > > Signed-off-by: Ric Li <ricmli@outlook.com> > --- > app/meson.build | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/app/meson.build b/app/meson.build > index e4bf5c531c..73e5138301 100644 > --- a/app/meson.build > +++ b/app/meson.build > @@ -11,7 +11,7 @@ disable_apps = run_command(list_dir_globs, disable_apps, check: true).stdout().s > enable_apps = ',' + get_option('enable_apps') > enable_apps = run_command(list_dir_globs, enable_apps, check: true).stdout().split() > if enable_apps.length() == 0 > - enable_apps = run_command(list_dir_globs, '*', check: true).stdout().split() > + enable_apps = run_command(list_dir_globs, '*/', check: true).stdout().split() > endif > Do we know more about why this particular failure is happening with MSYS2? Can you try running the script manually to see what the specific python error is, and if we can make the script more robust generally? In terms of the fix, I actually think we should not be using a glob here at all. Since we already have the list of apps present in the file, I think that we should move the app list to the top of the file and then change the code to be: if enable_apps.length() == 0 enable_apps = apps endif This sidesteps any issues with globbing, and also makes the code a bit faster as we don't have to shell-out to a python script. /Bruce
On 2023/9/19 16:12, Bruce Richardson wrote: > On Sat, Sep 16, 2023 at 09:15:19PM +0800, Ric Li wrote: >> When running 'meson build' in MSYS2, >> "list-dir-globs.py * failed with status 1". >> >> Signed-off-by: Ric Li <ricmli@outlook.com> >> --- >> app/meson.build | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/app/meson.build b/app/meson.build >> index e4bf5c531c..73e5138301 100644 >> --- a/app/meson.build >> +++ b/app/meson.build >> @@ -11,7 +11,7 @@ disable_apps = run_command(list_dir_globs, disable_apps, check: true).stdout().s >> enable_apps = ',' + get_option('enable_apps') >> enable_apps = run_command(list_dir_globs, enable_apps, check: true).stdout().split() >> if enable_apps.length() == 0 >> - enable_apps = run_command(list_dir_globs, '*', check: true).stdout().split() >> + enable_apps = run_command(list_dir_globs, '*/', check: true).stdout().split() >> endif >> > > Do we know more about why this particular failure is happening with MSYS2? > Can you try running the script manually to see what the specific python > error is, and if we can make the script more robust generally? > Running the script manually showed nothing but the Usage log. The arguments here are not accepted by this python script. MSYS2 does mention some command line parsing issues, see: https://www.msys2.org/wiki/Porting/ "Windows programs parse the command line themselves, it isn't parsed for them by the calling process, as on Linux. This means that if wildcards (glob patterns) are to be accepted by the program, it has to be able to expand them somehow." > In terms of the fix, I actually think we should not be using a glob here at > all. Since we already have the list of apps present in the file, I think > that we should move the app list to the top of the file and then change the > code to be: > > if enable_apps.length() == 0 > enable_apps = apps > endif > > This sidesteps any issues with globbing, and also makes the code a bit > faster as we don't have to shell-out to a python script. > > /Bruce That sounds reasonable. I'll test it and provide an update to the patch. Thanks, Ric
diff --git a/app/meson.build b/app/meson.build index e4bf5c531c..73e5138301 100644 --- a/app/meson.build +++ b/app/meson.build @@ -11,7 +11,7 @@ disable_apps = run_command(list_dir_globs, disable_apps, check: true).stdout().s enable_apps = ',' + get_option('enable_apps') enable_apps = run_command(list_dir_globs, enable_apps, check: true).stdout().split() if enable_apps.length() == 0 - enable_apps = run_command(list_dir_globs, '*', check: true).stdout().split() + enable_apps = run_command(list_dir_globs, '*/', check: true).stdout().split() endif apps = [