]> git.notmuchmail.org Git - notmuch/commitdiff
lib: Make VERSION macros agree with soname version
authorAustin Clements <amdragon@MIT.EDU>
Wed, 4 Dec 2013 16:19:44 +0000 (11:19 -0500)
committerDavid Bremner <david@tethera.net>
Sat, 7 Dec 2013 02:31:04 +0000 (10:31 +0800)
We have two distinct "library version" numbers: the soname version and
the version macros.  We need both for different reasons: the version
macros enable easy compile-time version detection (and conditional
compilation), while the soname version enables runtime version
detection (which includes the version checking done by things like the
Python bindings).

However, currently, these two version numbers are different, which is
unnecessary and can lead to confusion (especially in things like
Debian, which include the soname version in the package name).  This
patch makes them the same by bumping the version macros up to agree
with the soname version.

(We should probably keep the version number in just one place so they
can't get out of sync, but that can be done in another patch.)

lib/Makefile.local
lib/notmuch.h

index 155ac02ff00e3f90bd4227edf393e90f0e887bdf..cd2c60df70bb619c8787cc49423e8883fb0a2349 100644 (file)
@@ -18,6 +18,9 @@ LIBNOTMUCH_VERSION_MINOR = 0
 # simply compatible changes to the implementation).
 LIBNOTMUCH_VERSION_RELEASE = 0
 
+# Note: Don't forget to change the VERSION macros in notmuch.h when
+# any of the above change.
+
 ifeq ($(PLATFORM),MACOSX)
 LIBRARY_SUFFIX = dylib
 # On OS X, library version numbers go before suffix.
index 7c3a30c1adb1fb90e299d99c6fba1161bab8d0a7..42188a8046b5f5ba3d2eed37dd33c111cfd6aaf7 100644 (file)
@@ -41,8 +41,12 @@ NOTMUCH_BEGIN_DECLS
 #define TRUE 1
 #endif
 
-#define NOTMUCH_MAJOR_VERSION  0
-#define NOTMUCH_MINOR_VERSION  17
+/*
+ * The library version number.  This must agree with the soname
+ * version in Makefile.local.
+ */
+#define NOTMUCH_MAJOR_VERSION  3
+#define NOTMUCH_MINOR_VERSION  0
 #define NOTMUCH_MICRO_VERSION  0
 
 /*