* [PATCH] build: bump library versioning @ 2015-09-16 17:12 Jan Engelhardt 2015-09-16 17:28 ` Pablo Neira Ayuso 0 siblings, 1 reply; 9+ messages in thread From: Jan Engelhardt @ 2015-09-16 17:12 UTC (permalink / raw) To: pablo; +Cc: netfilter-devel Commit libnftnl-1.0.3-31-g5ea54b2 removed a symbol. Such requires a bumped to n+1:0:0. The symbol groups can be merged again to save time processing them as the groups are relative to a particular SONAME (of which we have a new one). Signed-off-by: Jan Engelhardt <jengelh@inai.de> --- This essentially supersedes "[PATCH libnftnl 0/2] map fixes". The use of LIBNFTNL_4 as a symbol name is modeled upon the LIBVERSION number. Doing this instead of _x.y is a (more) sensible choice, because the next modification to the symbol map (LIBNFTNL_5) needs to be accompanied by LIBVERSION=5:0:something in any case. src/libnftnl.map | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/libnftnl.map b/src/libnftnl.map index 14ec88c..991fe9d 100644 --- a/src/libnftnl.map +++ b/src/libnftnl.map @@ -1,4 +1,4 @@ -LIBNFTNL_1.0 { +LIBNFTNL_4 { global: nft_table_alloc; nft_table_free; @@ -397,10 +397,6 @@ global: nftnl_parse_perror; -local: *; -}; - -LIBNFTNL_1.1 { nft_table_attr_set_data; nft_table_attr_get_data; nft_chain_attr_set_data; @@ -423,9 +419,6 @@ LIBNFTNL_1.1 { nftnl_set_set_data; nftnl_set_get_data; -} LIBNFTNL_1.0; - -LIBNFTNL_1.2 { nft_set_elems_nlmsg_build_payload_iter; nft_batch_is_supported; nft_batch_begin; @@ -469,9 +462,6 @@ LIBNFTNL_1.2 { nftnl_gen_fprintf; -} LIBNFTNL_1.1; - -LIBNFTNL_1.2.0 { nft_ruleset_ctx_is_set; nft_ruleset_ctx_get; nft_ruleset_ctx_get_u32; @@ -506,4 +496,4 @@ LIBNFTNL_1.2.0 { nftnl_batch_iovec_len; nftnl_batch_iovec; -} LIBNFTNL_1.2; +}; -- 2.4.3 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] build: bump library versioning 2015-09-16 17:12 [PATCH] build: bump library versioning Jan Engelhardt @ 2015-09-16 17:28 ` Pablo Neira Ayuso 2015-09-16 18:00 ` Pablo Neira Ayuso 0 siblings, 1 reply; 9+ messages in thread From: Pablo Neira Ayuso @ 2015-09-16 17:28 UTC (permalink / raw) To: Jan Engelhardt; +Cc: netfilter-devel On Wed, Sep 16, 2015 at 07:12:47PM +0200, Jan Engelhardt wrote: > Commit libnftnl-1.0.3-31-g5ea54b2 removed a symbol. Such requires a > bumped to n+1:0:0. Right, nft_rule_expr_build_payload() was gone. But noone was using it in our tree. But we have to update LIBTOOL version according, yes. > The symbol groups can be merged again to save time > processing them as the groups are relative to a particular SONAME > (of which we have a new one). > > Signed-off-by: Jan Engelhardt <jengelh@inai.de> > --- > This essentially supersedes "[PATCH libnftnl 0/2] map fixes". > The use of LIBNFTNL_4 as a symbol name is modeled upon the LIBVERSION > number. Doing this instead of _x.y is a (more) sensible choice, > because the next modification to the symbol map (LIBNFTNL_5) needs to > be accompanied by LIBVERSION=5:0:something in any case. > > > src/libnftnl.map | 14 ++------------ > 1 file changed, 2 insertions(+), 12 deletions(-) > > diff --git a/src/libnftnl.map b/src/libnftnl.map > index 14ec88c..991fe9d 100644 > --- a/src/libnftnl.map > +++ b/src/libnftnl.map > @@ -1,4 +1,4 @@ > -LIBNFTNL_1.0 { > +LIBNFTNL_4 { This is breaking hard existing nft binaries, which is what I was trying to avoid. But I can use LIBNFTNL_4 for the new nftnl_ symbols. Will send a new patchset round. Thanks. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] build: bump library versioning 2015-09-16 17:28 ` Pablo Neira Ayuso @ 2015-09-16 18:00 ` Pablo Neira Ayuso 2015-09-16 18:22 ` Pablo Neira Ayuso 2015-09-16 18:30 ` Jan Engelhardt 0 siblings, 2 replies; 9+ messages in thread From: Pablo Neira Ayuso @ 2015-09-16 18:00 UTC (permalink / raw) To: Jan Engelhardt; +Cc: netfilter-devel On Wed, Sep 16, 2015 at 07:28:36PM +0200, Pablo Neira Ayuso wrote: > On Wed, Sep 16, 2015 at 07:12:47PM +0200, Jan Engelhardt wrote: > > Commit libnftnl-1.0.3-31-g5ea54b2 removed a symbol. Such requires a > > bumped to n+1:0:0. > > Right, nft_rule_expr_build_payload() was gone. But noone was using it > in our tree. But we have to update LIBTOOL version according, yes. > > > The symbol groups can be merged again to save time > > processing them as the groups are relative to a particular SONAME > > (of which we have a new one). > > > > Signed-off-by: Jan Engelhardt <jengelh@inai.de> > > --- > > This essentially supersedes "[PATCH libnftnl 0/2] map fixes". > > The use of LIBNFTNL_4 as a symbol name is modeled upon the LIBVERSION > > number. Doing this instead of _x.y is a (more) sensible choice, > > because the next modification to the symbol map (LIBNFTNL_5) needs to > > be accompanied by LIBVERSION=5:0:something in any case. > > > > > > src/libnftnl.map | 14 ++------------ > > 1 file changed, 2 insertions(+), 12 deletions(-) > > > > diff --git a/src/libnftnl.map b/src/libnftnl.map > > index 14ec88c..991fe9d 100644 > > --- a/src/libnftnl.map > > +++ b/src/libnftnl.map > > @@ -1,4 +1,4 @@ > > -LIBNFTNL_1.0 { > > +LIBNFTNL_4 { > > This is breaking hard existing nft binaries, which is what I was > trying to avoid. Sorry, what you propose is fine actually. But this should be LIBNFTNL_3 instead, I already bumped LIBVERSION from 2:0:2 to 3:0:3, see 9e1e8052025fde. If no concerns, I'll mangle your patch to make use LIBNFTNL_3 instead. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] build: bump library versioning 2015-09-16 18:00 ` Pablo Neira Ayuso @ 2015-09-16 18:22 ` Pablo Neira Ayuso 2015-09-16 18:31 ` Jan Engelhardt 2015-09-16 18:30 ` Jan Engelhardt 1 sibling, 1 reply; 9+ messages in thread From: Pablo Neira Ayuso @ 2015-09-16 18:22 UTC (permalink / raw) To: Jan Engelhardt; +Cc: netfilter-devel On Wed, Sep 16, 2015 at 08:00:48PM +0200, Pablo Neira Ayuso wrote: > On Wed, Sep 16, 2015 at 07:28:36PM +0200, Pablo Neira Ayuso wrote: [...] > Sorry, what you propose is fine actually. But this should be > LIBNFTNL_3 instead, I already bumped LIBVERSION from 2:0:2 to 3:0:3, > see 9e1e8052025fde. > > If no concerns, I'll mangle your patch to make use LIBNFTNL_3 instead. I think your LIBNFTNL_4 is intentional, now we're at 3:0:3 after 1.0.4, so to escape the current situation upcoming libnftnl-1.0.5 should be 4:0:0, hence the LIBNFTNL_4 in the map file. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] build: bump library versioning 2015-09-16 18:22 ` Pablo Neira Ayuso @ 2015-09-16 18:31 ` Jan Engelhardt 2015-09-16 18:49 ` Pablo Neira Ayuso 0 siblings, 1 reply; 9+ messages in thread From: Jan Engelhardt @ 2015-09-16 18:31 UTC (permalink / raw) To: Pablo Neira Ayuso; +Cc: netfilter-devel On Wednesday 2015-09-16 20:22, Pablo Neira Ayuso wrote: >On Wed, Sep 16, 2015 at 08:00:48PM +0200, Pablo Neira Ayuso wrote: >> On Wed, Sep 16, 2015 at 07:28:36PM +0200, Pablo Neira Ayuso wrote: >[...] >> Sorry, what you propose is fine actually. But this should be >> LIBNFTNL_3 instead, I already bumped LIBVERSION from 2:0:2 to 3:0:3, >> see 9e1e8052025fde. >> >> If no concerns, I'll mangle your patch to make use LIBNFTNL_3 instead. > >I think your LIBNFTNL_4 is intentional, now we're at 3:0:3 after >1.0.4, so to escape the current situation upcoming libnftnl-1.0.5 >should be 4:0:0, hence the LIBNFTNL_4 in the map file. "Yes" again :) ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] build: bump library versioning 2015-09-16 18:31 ` Jan Engelhardt @ 2015-09-16 18:49 ` Pablo Neira Ayuso 2015-09-16 20:40 ` Jan Engelhardt 0 siblings, 1 reply; 9+ messages in thread From: Pablo Neira Ayuso @ 2015-09-16 18:49 UTC (permalink / raw) To: Jan Engelhardt; +Cc: netfilter-devel [-- Attachment #1: Type: text/plain, Size: 898 bytes --] On Wed, Sep 16, 2015 at 08:31:47PM +0200, Jan Engelhardt wrote: > On Wednesday 2015-09-16 20:22, Pablo Neira Ayuso wrote: > >On Wed, Sep 16, 2015 at 08:00:48PM +0200, Pablo Neira Ayuso wrote: > >> On Wed, Sep 16, 2015 at 07:28:36PM +0200, Pablo Neira Ayuso wrote: > >[...] > >> Sorry, what you propose is fine actually. But this should be > >> LIBNFTNL_3 instead, I already bumped LIBVERSION from 2:0:2 to 3:0:3, > >> see 9e1e8052025fde. > >> > >> If no concerns, I'll mangle your patch to make use LIBNFTNL_3 instead. > > > >I think your LIBNFTNL_4 is intentional, now we're at 3:0:3 after > >1.0.4, so to escape the current situation upcoming libnftnl-1.0.5 > >should be 4:0:0, hence the LIBNFTNL_4 in the map file. > > "Yes" again :) I'm attaching your original patch, but I also included the LIBVERSION update into it. If no further concerns, I'll be releasing libnftnl 1.0.5 soon, thanks. [-- Attachment #2: 0001-build-bump-library-versioning.patch --] [-- Type: text/x-diff, Size: 1926 bytes --] >From 5a36269fd23c8e2905305dbe86404b59d5c76308 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt <jengelh@inai.de> Date: Wed, 16 Sep 2015 19:12:47 +0200 Subject: [PATCH libnftnl] build: bump library versioning Commit libnftnl-1.0.3-31-g5ea54b2 removed a symbol. Such requires a bumped to n+1:0:0. The symbol groups can be merged again to save time processing them as the groups are relative to a particular SONAME (of which we have a new one). Signed-off-by: Jan Engelhardt <jengelh@inai.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> --- Make_global.am | 2 +- src/libnftnl.map | 14 ++------------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/Make_global.am b/Make_global.am index 14ddeef..6720d28 100644 --- a/Make_global.am +++ b/Make_global.am @@ -18,7 +18,7 @@ # set age to 0. # </snippet> # -LIBVERSION=3:0:3 +LIBVERSION=4:0:0 AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_srcdir}/include ${LIBMNL_CFLAGS} ${LIBMXML_CFLAGS} AM_CFLAGS = ${regular_CFLAGS} ${GCC_FVISIBILITY_HIDDEN} diff --git a/src/libnftnl.map b/src/libnftnl.map index 14ec88c..991fe9d 100644 --- a/src/libnftnl.map +++ b/src/libnftnl.map @@ -1,4 +1,4 @@ -LIBNFTNL_1.0 { +LIBNFTNL_4 { global: nft_table_alloc; nft_table_free; @@ -397,10 +397,6 @@ global: nftnl_parse_perror; -local: *; -}; - -LIBNFTNL_1.1 { nft_table_attr_set_data; nft_table_attr_get_data; nft_chain_attr_set_data; @@ -423,9 +419,6 @@ LIBNFTNL_1.1 { nftnl_set_set_data; nftnl_set_get_data; -} LIBNFTNL_1.0; - -LIBNFTNL_1.2 { nft_set_elems_nlmsg_build_payload_iter; nft_batch_is_supported; nft_batch_begin; @@ -469,9 +462,6 @@ LIBNFTNL_1.2 { nftnl_gen_fprintf; -} LIBNFTNL_1.1; - -LIBNFTNL_1.2.0 { nft_ruleset_ctx_is_set; nft_ruleset_ctx_get; nft_ruleset_ctx_get_u32; @@ -506,4 +496,4 @@ LIBNFTNL_1.2.0 { nftnl_batch_iovec_len; nftnl_batch_iovec; -} LIBNFTNL_1.2; +}; -- 1.7.10.4 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] build: bump library versioning 2015-09-16 18:49 ` Pablo Neira Ayuso @ 2015-09-16 20:40 ` Jan Engelhardt 2015-09-17 11:03 ` Pablo Neira Ayuso 0 siblings, 1 reply; 9+ messages in thread From: Jan Engelhardt @ 2015-09-16 20:40 UTC (permalink / raw) To: Pablo Neira Ayuso; +Cc: netfilter-devel On Wednesday 2015-09-16 20:49, Pablo Neira Ayuso wrote: > >I'm attaching your original patch, but I also included the LIBVERSION >update into it. A "local: *" needs to be readded in the .map file. Looks good otherwise. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] build: bump library versioning 2015-09-16 20:40 ` Jan Engelhardt @ 2015-09-17 11:03 ` Pablo Neira Ayuso 0 siblings, 0 replies; 9+ messages in thread From: Pablo Neira Ayuso @ 2015-09-17 11:03 UTC (permalink / raw) To: Jan Engelhardt; +Cc: netfilter-devel On Wed, Sep 16, 2015 at 10:40:05PM +0200, Jan Engelhardt wrote: > On Wednesday 2015-09-16 20:49, Pablo Neira Ayuso wrote: > > > >I'm attaching your original patch, but I also included the LIBVERSION > >update into it. > > A "local: *" needs to be readded in the .map file. Looks good > otherwise. Just pushed it out with this change. Thanks. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] build: bump library versioning 2015-09-16 18:00 ` Pablo Neira Ayuso 2015-09-16 18:22 ` Pablo Neira Ayuso @ 2015-09-16 18:30 ` Jan Engelhardt 1 sibling, 0 replies; 9+ messages in thread From: Jan Engelhardt @ 2015-09-16 18:30 UTC (permalink / raw) To: Pablo Neira Ayuso; +Cc: netfilter-devel On Wednesday 2015-09-16 20:00, Pablo Neira Ayuso wrote: >> > index 14ec88c..991fe9d 100644 >> > --- a/src/libnftnl.map >> > +++ b/src/libnftnl.map >> > @@ -1,4 +1,4 @@ >> > -LIBNFTNL_1.0 { >> > +LIBNFTNL_4 { >> >> This is breaking hard existing nft binaries, which is what I was >> trying to avoid. Well, a system can at least have both libnftnl.so.0 and libnftnl.so.4 concurrently present, and two programs will continue work. (This in comparison to both expecting a .so.0 but with different symbols in the groups.) >Sorry, what you propose is fine actually. But this should be >LIBNFTNL_3 instead, I already bumped LIBVERSION from 2:0:2 to 3:0:3, >see 9e1e8052025fde. Indeed. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-09-17 10:56 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-09-16 17:12 [PATCH] build: bump library versioning Jan Engelhardt 2015-09-16 17:28 ` Pablo Neira Ayuso 2015-09-16 18:00 ` Pablo Neira Ayuso 2015-09-16 18:22 ` Pablo Neira Ayuso 2015-09-16 18:31 ` Jan Engelhardt 2015-09-16 18:49 ` Pablo Neira Ayuso 2015-09-16 20:40 ` Jan Engelhardt 2015-09-17 11:03 ` Pablo Neira Ayuso 2015-09-16 18:30 ` Jan Engelhardt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).