Bump soname major to 1
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Feb 2021 20:31:48 +0000 (15:31 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 24 Feb 2021 15:23:18 +0000 (10:23 -0500)
The event notifier (trigger) feature required a significant rework of
public data structures which should never have been made public in the
first place.

Bump the soname major to 1, which will require applications and
tracepoint providers to rebuild against an updated lttng-ust to use it.

Old applications and tracepoint providers linked against libraries with
major soname 0 should be able to co-exist on the same system.

Now (before the next release) is a good time to eliminate LTTng-UST APIs
which were made public by accident.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I804c875ab7c0ae30daaab4817614574ccebc26c8

configure.ac
include/lttng/tracepoint.h
liblttng-ust-cyg-profile/Makefile.am
liblttng-ust-dl/Makefile.am
liblttng-ust-fd/Makefile.am
liblttng-ust-fork/Makefile.am
liblttng-ust-libc-wrapper/Makefile.am

index 7c7bf26e38fcadb45fe389e6eaa26f4bcb248f22..d2dc3769ed9357596e799ec47709e4f71b62f4ed 100644 (file)
@@ -20,7 +20,7 @@ AC_SUBST([PATCHLEVEL_VERSION], [V_PATCH])
 # Following the numbering scheme proposed by libtool for the library version
 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
 # This is the library version of liblttng-ust.
-m4_define([UST_LIB_V_MAJOR], [0])
+m4_define([UST_LIB_V_MAJOR], [1])
 m4_define([UST_LIB_V_MINOR], [0])
 m4_define([UST_LIB_V_PATCH], [0])
 
index 41ac5a2816a9ecd0967bb872476c6e1224ed5d68..51eafdeb5a4cce36e957ede0d5af31557fb5d803 100644 (file)
@@ -349,7 +349,7 @@ __tracepoints__init(void)
                tracepoint_dlopen_ptr = &tracepoint_dlopen;
        if (!tracepoint_dlopen_ptr->liblttngust_handle)
                tracepoint_dlopen_ptr->liblttngust_handle =
-                       dlopen("liblttng-ust-tracepoint.so.0", RTLD_NOW | RTLD_GLOBAL);
+                       dlopen("liblttng-ust-tracepoint.so.1", RTLD_NOW | RTLD_GLOBAL);
        if (!tracepoint_dlopen_ptr->liblttngust_handle)
                return;
        __tracepoint__init_urcu_sym();
@@ -471,7 +471,7 @@ __tracepoints__ptrs_init(void)
                tracepoint_dlopen_ptr = &tracepoint_dlopen;
        if (!tracepoint_dlopen_ptr->liblttngust_handle)
                tracepoint_dlopen_ptr->liblttngust_handle =
-                       dlopen("liblttng-ust-tracepoint.so.0", RTLD_NOW | RTLD_GLOBAL);
+                       dlopen("liblttng-ust-tracepoint.so.1", RTLD_NOW | RTLD_GLOBAL);
        if (!tracepoint_dlopen_ptr->liblttngust_handle)
                return;
        if (!tracepoint_destructors_syms_ptr)
index a3a2ff92455a91340179a1b7b183c8d4b6c0ec00..14c2080eb6ade4d6d471ccc23ba9253787e8e14f 100644 (file)
@@ -11,6 +11,8 @@ liblttng_ust_cyg_profile_la_LIBADD = \
        $(top_builddir)/liblttng-ust/liblttng-ust.la \
        $(DL_LIBS)
 
+liblttng_ust_cyg_profile_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)
+
 liblttng_ust_cyg_profile_fast_la_SOURCES = \
        lttng-ust-cyg-profile-fast.c \
        lttng-ust-cyg-profile-fast.h
@@ -19,4 +21,6 @@ liblttng_ust_cyg_profile_fast_la_LIBADD = \
        $(top_builddir)/liblttng-ust/liblttng-ust.la \
        $(DL_LIBS)
 
+liblttng_ust_cyg_profile_fast_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)
+
 dist_noinst_SCRIPTS = run run-fast
index 8df6eb576c56cfd5e3e898e06fc036738f0fddc5..16eefe37021f68f9e2e1725a3760bc4a5de08788 100644 (file)
@@ -11,3 +11,4 @@ liblttng_ust_dl_la_LIBADD = \
        $(DL_LIBS)
 
 liblttng_ust_dl_la_CFLAGS = -DUST_COMPONENT=liblttng-ust-dl $(AM_CFLAGS)
+liblttng_ust_dl_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)
index f253c61f2598ad1e24af0a3cc0a91c733b693790..b8b6a73dd620f3e8ba6917c607093f9f4324645f 100644 (file)
@@ -9,3 +9,5 @@ liblttng_ust_fd_la_LIBADD = \
        $(DL_LIBS)
 
 liblttng_ust_fd_la_CFLAGS = -DUST_COMPONENT=liblttng-ust-fd $(AM_CFLAGS)
+
+liblttng_ust_fd_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)
index de318c92b5f3a5654f2ef354364bf3f25c26edaa..af4e5ca32817a4c87238122eeaf2cba5ff2541b0 100644 (file)
@@ -7,3 +7,5 @@ liblttng_ust_fork_la_LIBADD = \
        $(DL_LIBS)
 
 liblttng_ust_fork_la_CFLAGS = -DUST_COMPONENT=liblttng-ust-fork $(AM_CFLAGS)
+
+liblttng_ust_fork_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)
index 12e8196623f69c4542fa0a91689a41a653906167..d4ecea3df4018f477b9ddc971197db9b45aa808b 100644 (file)
@@ -11,6 +11,8 @@ liblttng_ust_libc_wrapper_la_LIBADD = \
        $(top_builddir)/liblttng-ust/liblttng-ust.la \
        $(DL_LIBS)
 
+liblttng_ust_libc_wrapper_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)
+
 liblttng_ust_pthread_wrapper_la_SOURCES = \
        lttng-ust-pthread.c \
        ust_pthread.h
@@ -19,5 +21,7 @@ liblttng_ust_pthread_wrapper_la_LIBADD = \
        $(top_builddir)/liblttng-ust/liblttng-ust.la \
        $(DL_LIBS)
 
+liblttng_ust_pthread_wrapper_la_LDFLAGS = -version-info $(LTTNG_UST_LIBRARY_VERSION)
+
 dist_noinst_SCRIPTS = run
 EXTRA_DIST = README
This page took 0.028987 seconds and 5 git commands to generate.