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 488E2425CD; Wed, 20 Sep 2023 16:19:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 354B3402B4; Wed, 20 Sep 2023 16:19:37 +0200 (CEST) Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2052.outbound.protection.outlook.com [40.92.99.52]) by mails.dpdk.org (Postfix) with ESMTP id 797E34029C for ; Wed, 20 Sep 2023 16:19:35 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NR7x/fhLF1cRf6JCPdeRFTaZ4qUhRUp6i5/m8vNXLqT13gA/gwHbA6p3nOyf4LrIg+l900rlcL5DPexyb7xqEzmaG469dqji6Ywl93gB17NbEuyOvsRQ+corNeAVZj2nA9JEy0GTAFIOfFRbo36m7qUzfL/EpKTlVJ6VHcQ6D2IytNqq30wysefTrPlYAhgLUkowYpn6jBBOSJGaD7Gr6ck2JrdxaBmWk6F1UQTMy5QgYYh1Z7BpLDyi2UwSaz1Z+/9jvDA8YBohf8riz3h7ejTHb3k1NZYEWE6Rgr/FJgVOT/+bZwohccQtCBCHhHShh06tpkQC6OOzlZw8RYto7w== 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=IRVY/MD8Zkqy1GhcR5v0hQnfIkQa56lLE1LpMxAC33Q=; b=f2qEFSZafC5LtTrIFMEb0x4Xr6NB01Ixol9SbgLya/8EMiifg2LxtROJREbxwBymGvcnoUCAA75MYIMyXA39K3FlE6gQeM8/eENEh2Rv5PYloo9Lxaqb2YNQSdOQKrAlMfGBSDJy35AIRsVPJmJXib/amBstNMtGEIPWNbMnpMMk4z/VLLxCE+Wl1edVzq4JCrmnW13u4MIaDHx2HArRW787SBxHpXvILsKKgPlhyhHR6qDIREMg/5DrD0pwwO8We/RAC3Yx/djADBMs8IRhc0hzG7RhiwXhpoOd6Ff9t9rdF5mRKATHIz45veBAkfYMjjhed4ChcQATOc9dt55sEw== 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=IRVY/MD8Zkqy1GhcR5v0hQnfIkQa56lLE1LpMxAC33Q=; b=AlCb28FXVF4TkXSRm0kHM/p4xwAHudSc9UkS5aFG3VlYB7gFGnvF7d9oeXUFd1rwORHpeEndSv5rpJ+Nuh2r+4dkEs1SgLKjV+/d/939T5J6Xq2BNfxtX4r+7ELBP/87jj8/DQNDOzLdaz1h6dyOfA3gyvrlxzhpfonZKk4iqt6rOPxsYHH3/7nB1p/k/nzzk5uH1kJePDUPUoBiz32zbf0sn9Uj/9gIQI4w33uBv7VbiUD/k209J+EHQVQP46y6S5QqijGv9qLUEYWMHfaN5KhGXimah7FfvWD4uiXltqUZc5ow7LQ1sTOYglVru+K4DHPHTqfS3LN72Dg3TIT4jg== Received: from TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8039::14) by OSZP286MB1872.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:165::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.9; Wed, 20 Sep 2023 14:19:33 +0000 Received: from TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM ([fe80::3898:d1b2:e70:4b5e]) by TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM ([fe80::3898:d1b2:e70:4b5e%6]) with mapi id 15.20.6813.018; Wed, 20 Sep 2023 14:19:33 +0000 From: Ric Li To: dev@dpdk.org Cc: bruce.richardson@intel.com Subject: [PATCH v2 1/2] build: fix list_dir_globs failure in MSYS2 Date: Wed, 20 Sep 2023 22:18:45 +0800 Message-ID: X-Mailer: git-send-email 2.42.0 In-Reply-To: References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [JMTKfGFsoG4+AWKzJvtwiBBWnLRlljI+] X-ClientProxiedBy: SG2PR02CA0133.apcprd02.prod.outlook.com (2603:1096:4:188::18) To TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8039::14) X-Microsoft-Original-Message-ID: <20230920141846.2187-1-ricmli@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYAP286MB0300:EE_|OSZP286MB1872:EE_ X-MS-Office365-Filtering-Correlation-Id: 85c8ef71-af0c-4275-ea40-08dbb9e49bcd X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ijb5CKbSOoxZ8oUOEMq14T72XJ27EMXwrQtv9N6euih7lkUcFu3B2CQMUWG16HkWSh0MnGBZ+dW+b3jnJzQ5UyuRDQFXz01d7sT/10Zy1s7/itwnNsDl8TwKNFqNnt/6pX7gZLki3r4xByV0moDshrHbQj6IZmtaKZCTRAdR5G1XP7DY6yFGkFuOubLksJ7Gb9XoAgIR1pGeHuEbn3W6ppVvAvvODkmE6S+fylNIO/n+Wh12rj4W4hKSBQmzKS6CeRfW82Dge9sVja2/n4t1Co4AWrEzPTCmCazZskWtda6DSFsOT9NwjHaRhQKXTXUF+QgCfkhH7OjIWEnDiVmadHefN8X+TVzv2xyCss3/dVlJcSfsxgkUcMi16YUm9fNB7OoR+9cn1FWFWLJ9rxUoIBroUQTFM7L/XUsdm5/Sgq0Yk1JHcOk0/NlDMUiAsg9VhsSmSGojkAVj6w9UoFbsoO7CO1griaA+EiDVcXQmlxdNIv9PPz/gs/62U1fpzChbiBVCY4n0bYUj5J06jxgWCHIyFRwF7rdO3Ho7/rtHC86oXWIzG1QlmOSrYxZeXTh4 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?zUZeYDRUDKg8kMZibkA/TZYlnku7ETk6YSdfnQ5+VqxMZhIaeLdVtaAA2z9z?= =?us-ascii?Q?RAa5oRyrLJJJliQOyx5hqIEY5u5GOascQNt9TQHH5SZPfSzClfXCwCFdiFym?= =?us-ascii?Q?Bp2EBHmcd+yRIfdpgpiDDsaTrilpei8yuGHHvg6zqoXZlNGkBAHaVy/ms3wI?= =?us-ascii?Q?nYib3tqkjw6UXQvvMdSRDi7wDpJcCiOWgq4WhbHfximvUxP8GpLLEkxPCGG6?= =?us-ascii?Q?4CT28zfW2pPL3HKgs4BcEqiduKSyYV1waDvlHUWJQuwW+XQh6MnDKwpm4l3y?= =?us-ascii?Q?qZbvLOCRQJOlrbXso1rQ46Z36hg+v8TEE1vfE6+o50vTkweSVuh2QVe5qZCN?= =?us-ascii?Q?uTsTjKI7nW9KPJkYcVCQ/LNb79a1cLzcz4bLGU54EGvuMnewqWo++mLWYqPM?= =?us-ascii?Q?RpSncxklterIr4sowPwutlwCayfPHc7Bnfn2vLZTxVLlFUsLObMrLKtYewrq?= =?us-ascii?Q?oL0LIDmmCCYHEOiku/6/4kQZusYDpPLzOE07r/I2t+lJykHx7KYuf+7mo8ms?= =?us-ascii?Q?iTCaHteyEXupH+XKm7Giaa9A7m7ICPEJWDHpmgmSzFdqS1+qDUPS6tlD7evD?= =?us-ascii?Q?JflcPmQxck70+0i5gxnD/mRSuKYRvg2R4+XrJf6qUuTI0Sy0uTimvVw3K8Wu?= =?us-ascii?Q?kqfeLwcmtf/clusUHeVL8wj6o8EvPL0c0BUjaYP8shTIcwcQe9KqmeQUF9Wn?= =?us-ascii?Q?91OkgyHog1ZFzIScvzEd5k/6iP5QwbPWOrorIx3apTq54swHSm0cycvYu2B3?= =?us-ascii?Q?8iYHps7QkKf7S+B2sZn+UK0bQxOq1AXOynybx915A3TrIhw2N1ADEzkEtfub?= =?us-ascii?Q?vatENXbMtckBJk5D4TJ+92Meq8bCvWSkUxJy0amKf3YTFA3CjLNS8+uPGOmv?= =?us-ascii?Q?azy7idJxVpQ3wmguDhgPDzXPwkuXZU9kkKVIycjjXl70DRQqt2ikt5R4+fcv?= =?us-ascii?Q?KgCliurXru3m4Nt2hKcUYOhqQP+UnWTEYsrjwJJMAfNgngP1tPE24TE/kW3f?= =?us-ascii?Q?Na8fWxet3EzFyEed7aSfIEDSUW8RupGvCHzzPxTzqHBqSdrsZQaZeXKX0CEJ?= =?us-ascii?Q?TE0SWsBWCT6n8ufRiZ8tbkgg7vrQM5eQ53gbLO9fLVJqanBF8IIsTIHScNqG?= =?us-ascii?Q?73l5xbOruTDKmW/7K/i7qg1xkU97sPVq3HVNKL/QSUI1/kz1h/QayBwHlAkt?= =?us-ascii?Q?9R00H7Weq8ome+/ZGZ4rjk/07hkRIvINaKEZJQ=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85c8ef71-af0c-4275-ea40-08dbb9e49bcd X-MS-Exchange-CrossTenant-AuthSource: TYAP286MB0300.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2023 14:19:33.2769 (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: OSZP286MB1872 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org When running 'meson setup' on Windows with MSYS2, "list-dir-globs.py * failed with status 1". Avoid using globbing to get components for app build since they are already listed in the meson file. Signed-off-by: Ric Li --- app/meson.build | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/meson.build b/app/meson.build index e4bf5c531c..75ac37bef9 100644 --- a/app/meson.build +++ b/app/meson.build @@ -5,15 +5,6 @@ if is_ms_compiler subdir_done() endif -disable_apps = ',' + get_option('disable_apps') -disable_apps = run_command(list_dir_globs, disable_apps, check: true).stdout().split() - -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() -endif - apps = [ 'dumpcap', 'pdump', @@ -41,6 +32,15 @@ if get_option('tests') apps += 'test' endif +disable_apps = ',' + get_option('disable_apps') +disable_apps = run_command(list_dir_globs, disable_apps, check: true).stdout().split() + +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 = apps +endif + default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API'] default_ldflags = [] if get_option('default_library') == 'static' and not is_windows -- 2.42.0