From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 2/4] build: use version number from config file Date: Wed, 13 Mar 2019 12:24:04 +0100 Message-ID: <6622610.vr3DG7Arz7@xps> References: <20190307115448.54041-1-bruce.richardson@intel.com> <2333456.BDb5ShVbCQ@xps> <20190313112034.GD1118972@bricha3-MOBL.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, David Marchand , Luca Boccassi To: Bruce Richardson Return-path: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id C86F64F9B for ; Wed, 13 Mar 2019 12:24:07 +0100 (CET) In-Reply-To: <20190313112034.GD1118972@bricha3-MOBL.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 13/03/2019 12:20, Bruce Richardson: > On Wed, Mar 13, 2019 at 12:13:52PM +0100, Thomas Monjalon wrote: > > 07/03/2019 14:35, Bruce Richardson: > > > +# > > > +# Version information completed when this file is processed for a build > > > +# > > > +CONFIG_RTE_VER_YEAR=__YEAR > > > +CONFIG_RTE_VER_MONTH=__MONTH > > > +CONFIG_RTE_VER_MINOR=__MINOR > > > +CONFIG_RTE_VER_SUFFIX=__SUFFIX > > > +CONFIG_RTE_VER_RELEASE=__RELEASE > > [...] > > > -/** > > > - * Patch release number > > > - * 0-15 = release candidates > > > - * 16 = release > > > - */ > > > -#define RTE_VER_RELEASE 0 > > > > So you are removing the special value 16. > > Is it replaced by an empty value? > > > > I think it is an issue for version comparison with RTE_VERSION_NUM() macro. > > The -rc3 must be lower than the final release (which had number 16 > > for this reason). > > > Aha, that explains the reason for the 16 value. I did wonder why we > bothered with it when it wasn't actually used in printing etc. Let me go > back and look into this set again, armed with this new info. [We also need > to document this reason in the code comments for future information] Yes it was not documented, sorry. Thanks for working on it.