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 9002C43A35; Thu, 1 Feb 2024 10:26:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E7F44113C; Thu, 1 Feb 2024 10:26:15 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 2713F40275 for ; Thu, 1 Feb 2024 10:26:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706779573; x=1738315573; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=8JBVo7864hcuyWYOXUhmZq46PwHIlnBQCwp1mReIDtc=; b=klgqnNYj4Df+OFz9Z0D2FXQ4tl7JIDO4UXeoWhDhUG5m8ro/IVJzV/0v IYmt7wKNodJ2zqV5pqHQM59FEsREC7pTdI93izdhpKwVV6YzLfUIWgAHM skIYVOEYLJPmnLLvPm8eJWEqdZUlXN/VciYdQO4SCD/qogeQOuZx3g5/Z OahwQwllI+fVQ9XUa+/W+hVklfVPKyeJlT/6Wf9yW9MckIInih3wiNeaQ Vh7D3h0uLLyBOPbpWTtKkQTvFhxU13yFMtFSTaY8kaYKImILVdbxfYciw WW2hmDbFyPN2k4iKcAQQnjvrq3/HspaaoOLEU9SCYcEJ3xJfCsoVl8KBw g==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="400985304" X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="400985304" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 01:26:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,234,1701158400"; d="scan'208";a="23058269" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 01 Feb 2024 01:26:12 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 1 Feb 2024 01:26:11 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 1 Feb 2024 01:26:10 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 1 Feb 2024 01:26:10 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 1 Feb 2024 01:26:10 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lF7cmw7QgHm6Ayp/egQrk7DsuvHhEgjXNtp4b5u9i1lNWZMrAa1Kap7cfQCWGuetolrAZHagOjnx56MsTX2BnuLBLqEnR9l+gPuTHwl5zdC6KOKc9GjZNBBqfjxFoy4xUBPk/tAmi+RcotcatQk0LXrxWUEZP7MWYN5/AWN0Iv8JhPKa5p/TCnzmXOdKW1QyhHcCNSJ1CFAv/MSH9nuKyGFlaqsG1tihF76A3jnzxeZKUuhA9kC5EDnoQyj/IsiZJwMVe73OR+sdrJT5IXQkJYLhsSZ+CASk/P+606y5UlIzjonf0smvv8xsL/TDcXFQwAPfBLd8n5a9CHiY0u5Mng== 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=/ajwXMZnUtX6XvNFKOtj8KAChBmQ0JyF3oS94l0IGHA=; b=LjtPKCn89hmiwtO/n4i9/ozLNxno0fp6kXa6CHJUsaIO0XRSwqyocpywToKyryD9gEIMXrYtvtoR/O2bsVEHxCnNyseoFEA9W+gR4C5pqhl86elkN6aR6WX+GztnszZH35yb2dKafqN0+MSd6IFNoaHiXy5Q/qjGYCHi8GKIOwzjyIpwPr8meTDRbcaCWGEG3ViE7ZvzybOa8n83UYRuhB2lqHwKOAzNSm4UPmOnschHkMBPSsycjd/1rL9BFFS/NSHRhu5Gnx0i7lO6Wd65degeCFXvPiJiRAXbi+tSqBOdJ1HAhj8fR9FIBdgAr539sRDjjTzBE0qo2I0/Bn/fZg== 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 DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by MW4PR11MB7152.namprd11.prod.outlook.com (2603:10b6:303:222::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.24; Thu, 1 Feb 2024 09:26:03 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::df88:b743:97f8:516c]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::df88:b743:97f8:516c%5]) with mapi id 15.20.7249.017; Thu, 1 Feb 2024 09:26:03 +0000 Date: Thu, 1 Feb 2024 09:25:59 +0000 From: Bruce Richardson To: David Marchand CC: , Subject: Re: [PATCH v3 0/3] Improve optional lib support Message-ID: References: <20231103162830.593702-1-bruce.richardson@intel.com> <20231220142152.492556-1-bruce.richardson@intel.com> Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: DB7PR03CA0095.eurprd03.prod.outlook.com (2603:10a6:10:72::36) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|MW4PR11MB7152:EE_ X-MS-Office365-Filtering-Correlation-Id: 3cca316c-46f3-400c-e69b-08dc2307cf61 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BtQVRDA6dMDOXWdd7za1SJScTAOoBZEBdWcf5+EXbik3iZH9ncV0cgjCbl3a3kza/bH8sEukSyIfoNBkEsrEx1zpTwZUw9YwesKXqhlbVNrLdSXJ9MC/wkIBhLl2dLqREFnSK3Vd0vcmYdupuVRU2TplzBQDUgV0qLmkJc03pSN+ksd9jOhlyHLapmFYpos3lwwPpPrWBKW2wqTiZBInOLIkbaJ3vJK6tlFstX477h3xUef+UGkdN2Gp7pPQ5Z7JJ3nxFh4/pdsecqH8ZZOgPn+bFaKhITHz7i0V4zX59cyfw4JLzcfOm97nOOO5/yGjqmrXB86kYqvkwsTqv4DFjB1RYyH05HxmXRXXLTFySBre3ii/O6Bc6kASFeC6JvgsYvpWjINxrAs1P3fGt/6uGfF99apMgvOYyD76kLVhRsi07PhhX+7xskcPpPYy2JvLOvGVYScxYA6ehe++uyWx3evpKwllsNUObNVae7XE5Zv+0GUl4vaMljZ9xrL3k75MrX2hmK7LFL6I+VX+AfnKPU5JQ9wxx1CWTmmvthVoRwiYDKptM6Tl/jl11WnV9Ifg X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(39860400002)(346002)(136003)(366004)(376002)(230922051799003)(451199024)(64100799003)(186009)(1800799012)(26005)(478600001)(6666004)(6512007)(41300700001)(6506007)(53546011)(8936002)(6486002)(8676002)(44832011)(66476007)(82960400001)(316002)(6916009)(66946007)(66556008)(2906002)(86362001)(4326008)(5660300002)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NjNHMm5ROUdJZ2JoOW5sMEVzanZaTGtaMlpvNGIrNlFhLzZRSlBEaENUQ1c1?= =?utf-8?B?aVp5aUpyQWNYaVBXRjAzQjFlV0hJVTl1ZTR6YUF5QmZrY0VtTU5JRktETzdG?= =?utf-8?B?TEpxL1NsRStOemF3eWtaMzlBUWpOeVhsK0Z6cnduMGQ3cnpTVHYyU25ETGQr?= =?utf-8?B?ZW1Sc0NETTRjSkFONmw3Z3QvaVI2SDZONHd0WjExdVJHT3hHazdSV1FxT2ZG?= =?utf-8?B?MjdQQWUwN1JrSXVhNUJFZEh6Q3VJRlEvYkczTW1CZVp1VythOUJYM3g2RlpZ?= =?utf-8?B?TVg2M3ZuL21GWnlwWXBjNExta3lRbDZwVE9DZkRIQ0JCVTNNRjMvUXR6ZGhn?= =?utf-8?B?cmZoV2tYcGM3dzdxekUvU2hOTDgydnNwd08vR3hzYjZKb1A0Mi9zRjF4NFhw?= =?utf-8?B?ZS9kNmc2NkExWjJMTjZra3RGTzNMMHErclFRbjFUWFhnU2dMQ01ybkdhNWFF?= =?utf-8?B?aGZwaTI2ZVphT1hlYzR4b0o4OGZjWDN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QkV5N3pFb3F3bW5EQXI4SG1saEtJVVFjdlBodExoQUI5dVNPOWhnMGJR?= =?utf-8?B?WGFTRXBUL1VnU0pJaytWM2FPVW4xemJLUDFzMFNKNkQyY0ttM2ZZV3k0cXM1?= =?utf-8?B?WTVtYVU1SUNJMGIvRjVzVU1Ka3QzeTU4UHZ2Ykpzdjl3ZmxjelVNcFNuRzF4?= =?utf-8?B?OU1lUG9wamd3K2poUTRNekVoRE5XSG42VDc1RDVGRzhMR1ZMb1YwVWwxcDZF?= =?utf-8?B?QXl6STBtSWFsSDl4SURwSTVqMy8vY1NmRFpCY1d1dVR6T0V6LzNFaWJBOHBm?= =?utf-8?B?ZFcrb3ZjTXd2dDlzNFI1V3U4ZUUxVEpUYkd0NWRzNEhqS1RuM2U1bEVhOW54?= =?utf-8?B?QjVFd05XcVZ0RXJhcnNObXYyak5IMmgrbnNzN0RBRUlaNnJ4M0FQL2prNTJk?= =?utf-8?B?Qjl5L2dZUzlodWI0QlF2a3Y1K0pMT1V0UzRBMHVTMC96a3MzVkdGNVoyWnNY?= =?utf-8?B?emc2UGZWR0YxcTZSUkF2bEJ3UC83d3lCZjAzVCtOb2RFZ25qUkxkcUczYkxI?= =?utf-8?B?aytLaUVqbHdVQ2xCYXRsdUE5QlV1UzZmUlFNOXllNFFhVmpKQlpERURONlBY?= =?utf-8?B?VVNjS2hrQVFQVVdKSDZzWis0ZUhnb3VNR2dvSGVQY25Qa01pSDhXMzVwZ2xi?= =?utf-8?B?eXpJcEZLd0grWWhLdllGWkphWW5WTUZ3amVScm1qeTFoN3RBaVNaNFRpeGti?= =?utf-8?B?SHN4bWx4WkZhWlAwYmZhazg2c0NJdnZtWGJ6aXk5QnBhcnV5NzFlZENHeGJW?= =?utf-8?B?WVE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 3cca316c-46f3-400c-e69b-08dc2307cf61 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2024 09:26:03.2556 (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: tLN7EogDzFhjeahxUqLluhUGoYQTA3UqcyMwy387cU8h/n9Fcyp0r3dDiR7/zYfjl1EHysgJC2peX7pa8l+yHL6PcLgny6yYkyFJh8cghJU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB7152 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 Thu, Feb 01, 2024 at 10:23:40AM +0100, David Marchand wrote: > On Wed, Dec 20, 2023 at 3:22 PM Bruce Richardson > wrote: > > > > This patchset builds on the previous v1 and v2, and the discussion > > which followed about what libraries should be optional. While still > > a long way to go from the position suggested in the v2 discussion, > > this set moves us a bit further along the road. > > > > The first patch is a direct v3 from previous versions, changing the > > tracking from a list of optional libs to a list of mandatory ones. > > The second patch then knocks off another 5 libs off the mandatory > > list - all are libs which should have few dependencies in other > > components, but which some common sample apps like l3fwd depend upon. > > It should be possible to make other libs optional in future, but to > > do so likely requires code-changes to #ifdef out support in places. > > > > To that end, patch 3 is an RFC to add support for "optional libs" to > > the build system. For now, nothing uses this, but it may be useful if > > someone does want to take on the task of removing a hard dependency > > from one component on another and making it optional. > > > > Bruce Richardson (3): > > build: track mandatory rather than optional libs > > build: remove 5 libs from mandatory list > > build: RFC - add support for optional dependencies > > I was not sure if I should take the third patch, but the two others > make sense to me and I applied them. > The third one can be reconsidered when the need arises. > Yep, agreed. Thanks. /Bruce