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 EAF98458E9; Mon, 2 Sep 2024 16:34:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B48674042C; Mon, 2 Sep 2024 16:34:47 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by mails.dpdk.org (Postfix) with ESMTP id E91C840150 for ; Mon, 2 Sep 2024 16:34:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725287686; x=1756823686; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=1qHwsqQI+YrxeFIs0MOwHvEitWXh4u6jn12tOgIOfpA=; b=VorH83+pzk55F1ePrhWpHi0GkQWDsF3059re4EBaWgeqemNzYLCwSQ5q BVpVEZrt/ePw1giuVD/VuWFuvm1KGAgSe7Sz+0YOjrryB+gBLY4OSzO30 ERxhdyHiQSJdzoX8t0RGkjl6v/TdUcou7+YxUQ8kjOyp4INEhDH5H8tt/ 4xW8Nkvc5QmzONQVsxdyV8STdDe1Idn44MwKkFc0JnV64asbiAa9FXSUZ AGXDJEhzdOpxEaN6iJR6X9/fPOixGvS3SqE1ZjEbajl5WAxS9Aat58R7V FkOgCjVQ9vmU9duy9+wYwVu1oFkDIiLMwMTWAWLLPXARXvQPUWI/4M4Hy g==; X-CSE-ConnectionGUID: 3fYYnw/PTuiAAAhgBu0z+A== X-CSE-MsgGUID: QFUmm0tdQqWrzdZmPfc9dw== X-IronPort-AV: E=McAfee;i="6700,10204,11183"; a="23677738" X-IronPort-AV: E=Sophos;i="6.10,195,1719903600"; d="scan'208";a="23677738" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2024 07:34:45 -0700 X-CSE-ConnectionGUID: p9XCqwfmQyOheMs2Ot1+hg== X-CSE-MsgGUID: GlcS9u9zQpK62VwIb4Q6Ew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,195,1719903600"; d="scan'208";a="69418822" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 02 Sep 2024 07:34:45 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 2 Sep 2024 07:34:44 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 2 Sep 2024 07:34:44 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Mon, 2 Sep 2024 07:34:44 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.176) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 2 Sep 2024 07:34:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KMxKONnZlOY3yqHN0xiLYye7q0WZ//tdQhdKDkrq1STuELl/uuyA10Fv+6VpGbafYHcDKyUqixKLcSj9En/kUwmU10Uejlr9ERFNln5R7/dvwpJEQb5N5ESFdZs0lYXcQG1LWVWyZZlIHJQ4I+tI7jmrRz/r/2C59e9+YRgrWURwOo4TIhpxbvaJ1pqN9Cqw2C8HogWgcrQ8REm0+q0q2k3AkZoEVHFX/tFogj/AP1jpGNqUckHCeO7qg9GDGSL/r2eN/pldUJ/SDhC5vJKvPKUVCL4Ad1nuNIlI2P7IAxOWGRSgjcUF/BmvqW2+hGQSgSv9yfPW3dPH4w2ibi8yvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=hCNBzR8MEqdy7pLptHyUuFGoyL9j5xmR2d7zC+VBmoA=; b=umLO2cUR47EywDdCUdRjQVmm/RL8NaN/6Mk4Ujplfh+Yq2jV8eUow9kPq6/ubLrg+5Njzmg1QRZ+TvRmaQG8fdlL6Gh1sxhuKoH8QsVaGniFh1wNT3ZFq1ClDnvlNMX3/3OZ34cuIAxIo0lexdY7w4KcE8K77XR191s0/CLPECR/5ofMOn9EwoOyYCc3ZWMSrqqhwjQijcloC1f9EJMOVQeIZuk2nNyvbXGG/a4evjwDXUY7KMB+YDhnsujHAgHfu6KAwSh4Arn1gBO+6StZgD48Bdn1JSTJny4xQcDHLSo0QHsMmxTVXGhltiK2g3XE/MwnHKf49BGtfNF43/0ilg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) by DS7PR11MB6176.namprd11.prod.outlook.com (2603:10b6:8:98::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Mon, 2 Sep 2024 14:34:41 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a%4]) with mapi id 15.20.7918.024; Mon, 2 Sep 2024 14:34:40 +0000 Message-ID: <4631e10f-0588-4160-a3ed-68eca322f4e6@intel.com> Date: Mon, 2 Sep 2024 16:34:34 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/7] build: output a dependency log in build directory To: Bruce Richardson , CC: , References: <20240730145508.551075-1-bruce.richardson@intel.com> <20240802124411.485430-1-bruce.richardson@intel.com> <20240802124411.485430-2-bruce.richardson@intel.com> Content-Language: en-US From: "Burakov, Anatoly" In-Reply-To: <20240802124411.485430-2-bruce.richardson@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZPR01CA0041.eurprd01.prod.exchangelabs.com (2603:10a6:10:468::19) To DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|DS7PR11MB6176:EE_ X-MS-Office365-Filtering-Correlation-Id: 684c6211-c86a-4fa4-c9b9-08dccb5c6113 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?R3NVS1RZbjhHNFIyNWdWbzZ1OXJDc2ZtV3JQaHZ0VGZDZVJPRUFCdjQrSk9K?= =?utf-8?B?bEtEMEJlT3JsZG5VUnhLOTBQUjFTSU9UaFk0N3V5WVc4VE1ERUtlMlQrajZa?= =?utf-8?B?UjJlSFlGU09hY2djcy93SkMreDR6YlBTNFovcFZrdXdZWGptdDlPYXFJUVVX?= =?ut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mU4c2JY?= =?utf-8?B?N3BzZ0NMVUtDSnZXakFyVCtXdjkzdzNkRUhCOUc5bkUzNHJKUW5hYVRYd3ZX?= =?utf-8?B?RWk4cUFBK0EyanhMU3NJM1RaVUJ1OHZpa1Q0eFFjLy9yTThWRi85cWI4cVBT?= =?utf-8?B?UVEwVGZpN0d4azhxRlVMRlpLSGJwY0w0L1J1aGYxb2FIMXA1UHh0R3prcG1i?= =?utf-8?B?NGZDbGphWktMMmorTGR5K1hBWlJaV2xUVG11K05iMVpiSWJoUEhua091YU51?= =?utf-8?B?cjBEdXFSVEJ5MlgrRUJ0NjZRSytKOFZtV2NmNkNGeDZUUXRLNjBpNExLejZj?= =?utf-8?B?L3o5S2hWcm1nalRpZ3N2U2EyOW8rVmZnM3paYzdRdmJkQW5UeUpzN3N2akFN?= =?utf-8?B?UDkydWk2NUNqSlJ5a2lHNjJXRzdPY2hGdElUYXhvb1RQZktNcFlFYVpnRlRT?= =?utf-8?B?ZVRsNlFFb05hK21OR1VSNExPTktMN0g4VUl1S2NUZXU2b2ROczkvY3hCdEYx?= =?utf-8?B?K0hDOWMzNndyLzlDcTROTi9NNDA3L3ppWHg3bm44NEdJcE1seVl4L0RtZDBr?= =?utf-8?B?TEFkVzY4dFoyUmZSU2o2RnNvdUhxZ2lpNmIyb09Sb0lxbHZMVjZNVVBWdk5x?= =?utf-8?B?dm1VNkRGZk1CUFlxTXI1dzZDMWYwS2dFSE5yWVJDamdNZS95d0FycXV4TFl3?= =?utf-8?B?aTJxYUJYWFRCcExhT0ZSaHFsY0JIVEFITERQcmp0diszS0tmVjFNKzlYZlpn?= =?utf-8?B?SWhNbjg0YmkydWdYTzdJdz09?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB6502.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSp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BUVE2cnUw?= =?utf-8?B?T3hmaFc0WnR6TE9yZmVseWRpVjZQZXVtVk0zWStiWVZ0eFg0ZGFuTzF3MnA0?= =?utf-8?B?UVFZaHlNK1ZBSzk4SjBoZGFtNCtiaEpDNTRtUWptOTROazl0YU1RVkdudy9u?= =?utf-8?B?aVhPdDBwbWVaQnY5VkRHS25YMnMrTEVFbmdZVE5PdllYTkN5MDFvUmdYUWU1?= =?utf-8?B?NURVTlVJQW03YXR6MWJHa3Y0TG5USENxYUUvT1dYTTNKMFFSSXYwNksrUVFG?= =?utf-8?B?RFNJdit2eGcwZWRxWGFrSlJVRlp4S2I4enVxdTBwN3NrdU5xUUxNZ2VSVXl3?= =?utf-8?B?VlZ3cGtWaXd3M1FzMC9wT2VMbFJxd1hybVFpZnl3dk1CWEt3d1I3UVVGdXoy?= =?utf-8?B?dG1sell4YmwwbCtsYmw5QmNKaVM3RTkvK29KU3lieGxQMHloY2dxM3VLalV1?= =?utf-8?B?YWc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 684c6211-c86a-4fa4-c9b9-08dccb5c6113 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6502.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 14:34:40.6963 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HF8FCzC8T38yRAPSVzG54hJB2llrGxQJ2Byiaz4xUM8UeU0wWCaiScIGdl0C5NZOItC15gTg4WQ0eYp7gPFM8DqkXYLBbp106sdeorDtg8I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6176 X-OriginatorOrg: intel.com 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 On 8/2/2024 2:44 PM, Bruce Richardson wrote: > As meson processes our DPDK source tree it manages dependencies > specified by each individual driver. To enable future analysis of the > dependency links between components, log the dependencies of each DPDK > component as it gets processed. This could potentially allow other tools > to automatically enable or disable components based on the desired end > components to be built, e.g. if the user requests net/ice, ensure that > common/iavf is also enabled in the drivers. > > The output file produced is in "dot" or "graphviz" format, which allows > producing a graphical representation of the DPDK dependency tree if so > desired. For example: "dot -Tpng -O build/deps.dot" to produce the > image file "build/deps.dot.png". > > Signed-off-by: Bruce Richardson > Acked-by: Konstantin Ananyev > > --- > +try: > + contents = file_to_list(depsfile) > +except FileNotFoundError: > + contents = ['digraph {\n', '}\n'] > + > +component = sys.argv[1] > +if len(sys.argv) > 2: > + contents[-1] = f'"{component}" -> {{ "{"\", \"".join(sys.argv[2:])}" }}\n' This is invalid syntax prior to Python 3.12. You're doing escaped quotes ("\", \"") inside a f-string block ({}). My machine has Python 3.9 and this breaks the script. -- Thanks, Anatoly