Re: libtool-next-version: new program

Vincent Lefevre <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
On 2019-05-12 16:12:47 +0200, Bruno Haible wrote:
> Bumping the libtool version of a shared library according to
> <https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html>
> seems to be harder than expected: Both the gettext-0.19.8 and gettext-0.20
> release suffer from a wrongly computed triple (mistakes done by different
> maintainers!).

In GNU MPFR, we have a comment giving the form of the triple for each
MPFR version:

#         MPFR     -version-info
#        2.1.x      -
#        2.2.x    1:x:0
#        2.3.x    2:x:1
#        2.4.x    3:x:2
#        3.0.x    4:x:0
#        3.1.x    5:x:1
#        4.0.x    6:x:0
libmpfr_la_LDFLAGS = $(MPFR_LDFLAGS) $(LIBMPFR_LDFLAGS) -version-info 6:0:0

and I've written a Perl script tools/ck-version-info that parses this
comment and checks that the values changes in a way that is consistent
with the libtool rules and that the -version-info value corresponds to
the form associated with the MPFR version. This script is run by
"make dist" via a dist-hook, so that before a release, one ensures
consistency and one keeps a trace of the history.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.