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 E2698A034F; Tue, 23 Mar 2021 08:16:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5CC1B4014D; Tue, 23 Mar 2021 08:16:26 +0100 (CET) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id 3905C40143 for ; Tue, 23 Mar 2021 08:16:25 +0100 (CET) Received: from [192.168.38.17] (aros.oktetlabs.ru [192.168.38.17]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 8DA2E7F4DF; Tue, 23 Mar 2021 10:16:24 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 8DA2E7F4DF DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1616483784; bh=QMxdPrD+6eBjY2NuOg+8xOJpFCdTamANQxeKDW4eoX4=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=pHOvCHXfC7XDZMOVjXuNRsv7wsQbO/PuJgXvC97BGs5e0hYIav9vrP9RkA/0ggW3B D19Z9rreyEImy5IFYCgtwpGFmSfyV+RSocyYuHVLqkrz8BZyw/M6jtBYAJS7fmHPWc hkNRa6M1IjZOPUubHucpvyc+7PfRBfsP4N6llGCQ= To: Gabriel Ganne , Dmitry Kozlyuk Cc: Bruce Richardson , dev@dpdk.org, Olivier Matz , Thierry Herbelot References: <20210322083901.22493-1-gabriel.ganne@6wind.com> <20210322093421.GA1440@bricha3-MOBL.ger.corp.intel.com> <20210322182557.4dd1261b@sovereign> From: Andrew Rybchenko Organization: OKTET Labs Message-ID: <56bdc1a8-4ebb-fa56-5d0e-1c4689bdc871@oktetlabs.ru> Date: Tue, 23 Mar 2021 10:16:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 1/3] meson: fix minimum required meson version 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 Sender: "dev" On 3/23/21 9:22 AM, Gabriel Ganne wrote: > Hi, > > Thanks for the review. > > I have some reservations about those TODO: they are about > rewriting the same functionality with a newer meson feature. > No functional change is expected. => Why not write a commit that > implements such a TODO and bumps meson version at the same time > independently ? > > In any case, I aimed to set meson's required version to the lowest possible > value > so that distributions would have a chance to provide it. I know we can just > install meson using pip, but it might be nice not to need this. > Below are some versions of meson packages as of today: > pip: 0.57.1 > rhel-8: 0.49.2 > debian-10: 0.49.2 > ubuntu-18.04: 0.45.1 > ubuntu-20.04: 0.53.2 > > Going over 0.49.2 will cause DPDK to lose some major distribution's stable > release, > at least out-of-the-box through their respective package manager. > > I propose to bump to 0.49.2 here, and leave the TODOs to wait a little > longer. > What do you think ? +1 > Best regards, > > P.S. get_linker_id() seems to be introduced in 0.53 > See: > https://mesonbuild.com/Release-notes-for-0-53-0.html#compilerget_linker_id > > On Mon, Mar 22, 2021 at 4:25 PM Dmitry Kozlyuk > wrote: > >> 2021-03-22 09:34 (UTC+0000), Bruce Richardson: >>> On Mon, Mar 22, 2021 at 09:38:59AM +0100, Gabriel Ganne wrote: >>>> WARNING: Project targetting '>= 0.47.1' but tried to use feature >> introduced >>>> in '0.48.0': console arg in custom_target >>>> >>>> console argument is used within kernel/linux/kni/meson.build >>>> >>>> Signed-off-by: Gabriel Ganne >>>> --- >>>> meson.build | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/meson.build b/meson.build >>>> index 7778e18200a9..65c46f051365 100644 >>>> --- a/meson.build >>>> +++ b/meson.build >>>> @@ -8,7 +8,7 @@ project('DPDK', 'C', >>>> files('VERSION')).stdout().strip(), >>>> license: 'BSD', >>>> default_options: ['buildtype=release', 'default_library=static'], >>>> - meson_version: '>= 0.47.1' >>>> + meson_version: '>= 0.48.0' >>>> ) >>>> >>> >>> No objection to this on my part. Rather than bumping to just 0.48, I >> think >>> we might as well jump a couple of versions. For example, 0.49 adds >> support >>> for "break" and "continue" keywords which could allow loop >> simplification. >>> Beyond that, it's a matter of how up-to-date we want to be... >> >> FYI, recalling some TODOs and which versions would allow to resolve them. >> >> From https://mails.dpdk.org/archives/dev/2021-January/196000.html: >> >> A script to extract object files from library is still required. >> Meson has extract_all_objects(), but they can't be passed as inputs >> to custom_target() until 0.52.0 (commit f431cff809). >> >> buildtools/meson.build: >> >> # TODO: starting from Meson 0.51.0 use >> # python3 = import('python').find_installation('python', >> # modules : python3_required_modules) >> >> config/meson.build: >> >> # TODO: use cc.get_linker_id() with Meson >= 0.54 >> is_ms_linker = is_windows and (cc.get_id() == 'clang') >> > >