From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 9FC691041 for ; Thu, 7 Sep 2017 19:07:27 +0200 (CEST) Received: from [2606:a000:111b:41f4:2201:d2d7:1fb:4ffb] (helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1dq0Gu-0000yy-Fl; Thu, 07 Sep 2017 13:07:26 -0400 Date: Thu, 7 Sep 2017 13:07:19 -0400 From: Neil Horman To: Bruce Richardson Cc: dev@dpdk.org Message-ID: <20170907170719.GC18344@hmswarspite.think-freely.org> References: <20170901100416.80264-17-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170901100416.80264-17-bruce.richardson@intel.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: Re: [dpdk-dev] [dpdk-dev, 16/17] build: add option to version libs using DPDK version X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2017 17:07:28 -0000 On Fri, Sep 01, 2017 at 11:04:15AM +0100, Bruce Richardson wrote: > Normally, each library has it's own version number based on the ABI. > Add an option to have all libs just use the DPDK version number as the > .so version. > > Signed-off-by: Bruce Richardson > --- > drivers/meson.build | 8 +++++++- > lib/meson.build | 8 +++++++- > meson_options.txt | 1 + > 3 files changed, 15 insertions(+), 2 deletions(-) > > diff --git a/drivers/meson.build b/drivers/meson.build > index d7a614f83..76d610a5b 100644 > --- a/drivers/meson.build > +++ b/drivers/meson.build > @@ -92,6 +92,12 @@ foreach class:driver_classes > depends: [pmdinfogen, tmp_lib]) > endforeach > > + if get_option('per_library_versions') > + so_version = '@0@.1'.format(version) > + else > + so_version = meson.project_version() > + endif > + I'm not sure this is a good idea. If we default to using the defined project version number, we commit to, by default incrementing the library version number on each release, even if the ABI hasn't changed, which means that the purpose of versioning (creating compatibility between library releases), is rendered useless. Neil