]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
change version to 2.0.0.beta1 in configure.ac lxc-2.0.0.beta1
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 21 Dec 2015 17:52:33 +0000 (12:52 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 21 Dec 2015 18:29:27 +0000 (13:29 -0500)
Note that LXC 2.0 remains backward compatible with 1.0, so the ABI
version is 1.2, not 2.0.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
configure.ac
src/lxc/Makefile.am
src/lxc/version.h.in

index e2827ac6c5547d6bfb6725ce4b9045b02eb3bf40..74edf91ac22a4348ba4ac78d296d198c0ec69c63 100644 (file)
@@ -1,10 +1,11 @@
 #                                               -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
 
-m4_define([lxc_version_major], 1)
-m4_define([lxc_version_minor], 1)
+m4_define([lxc_version_major], 2)
+m4_define([lxc_version_minor], 0)
 m4_define([lxc_version_micro], 0)
-m4_define([lxc_version_beta], [])
+m4_define([lxc_version_beta], beta1)
+m4_define([lxc_version_abi], 1.2.0)
 
 m4_define([lxc_version_base], [lxc_version_major.lxc_version_minor.lxc_version_micro])
 m4_define([lxc_version],
@@ -21,6 +22,7 @@ AC_SUBST(LXC_VERSION_BETA, lxc_version_beta)
 AC_SUBST([LXC_VERSION_MAJOR], [lxc_version_major])
 AC_SUBST([LXC_VERSION_MINOR], [lxc_version_minor])
 AC_SUBST([LXC_VERSION_MICRO], [lxc_version_micro])
+AC_SUBST([LXC_VERSION_ABI], [lxc_version_abi])
 AC_SUBST([LXC_VERSION], [lxc_version])
 
 AC_CONFIG_SRCDIR([configure.ac])
index 44945d07082a941cd2fe5897da62b30eaaaee1f0..cd160865aa1805318676fc6814e1bf0c24c470e4 100644 (file)
@@ -160,7 +160,7 @@ liblxc_so_CFLAGS = -fPIC -DPIC $(AM_CFLAGS) -pthread
 liblxc_so_LDFLAGS = \
        -pthread \
        -shared \
-       -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
+       -Wl,-soname,liblxc.so.$(firstword $(subst ., ,@LXC_VERSION_ABI@))
 
 liblxc_so_LDADD = $(CAP_LIBS) $(APPARMOR_LIBS) $(SELINUX_LIBS) $(SECCOMP_LIBS)
 
@@ -268,10 +268,10 @@ endif
 install-exec-local: install-soPROGRAMS
        mkdir -p $(DESTDIR)$(datadir)/lxc
        install -c -m 644 lxc.functions $(DESTDIR)$(datadir)/lxc
-       mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
+       mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.@LXC_VERSION_ABI@
        cd $(DESTDIR)$(libdir); \
-       ln -sf liblxc.so.$(VERSION) liblxc.so.$(firstword $(subst ., ,$(VERSION))); \
-       ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
+       ln -sf liblxc.so.@LXC_VERSION_ABI@ liblxc.so.$(firstword $(subst ., ,@LXC_VERSION_ABI@)); \
+       ln -sf liblxc.so.$(firstword $(subst ., ,@LXC_VERSION_ABI@)) liblxc.so
 
 install-exec-hook:
        chmod u+s $(DESTDIR)$(libexecdir)/lxc/lxc-user-nic
index 803a46e46e28a504cd6ab9e73846c5cdcd3970f7..cd1b6ebc299226c604ce7387445ddffb062aec92 100644 (file)
@@ -26,6 +26,7 @@
 #define LXC_VERSION_MAJOR @LXC_VERSION_MAJOR@
 #define LXC_VERSION_MINOR @LXC_VERSION_MINOR@
 #define LXC_VERSION_MICRO @LXC_VERSION_MICRO@
+#define LXC_VERSION_ABI "@LXC_VERSION_ABI@"
 #define LXC_VERSION "@LXC_VERSION@"
 
 #endif