summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-10-28 19:13:56 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-10-28 19:13:56 +0100
commit23d8465817e7bc0d188f36fc2ad14f41ff01c221 (patch)
tree29f65f669e430c701971d946cd6b71c480b3a02a /apt-pkg
parent10c9f030e02ccec5c002abc42776f994c124c574 (diff)
refactor the buildsystem to extract library versions from one file,
so it is not needed to change x-files to just increase a version number (because this is far to easy to forget one of the files, which will not result in failures or is bad in general, but is inconsitent.)
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/init.h6
-rw-r--r--apt-pkg/makefile10
2 files changed, 10 insertions, 6 deletions
diff --git a/apt-pkg/init.h b/apt-pkg/init.h
index 44a57eb45..b3e4b147f 100644
--- a/apt-pkg/init.h
+++ b/apt-pkg/init.h
@@ -16,7 +16,11 @@
#include <apt-pkg/configuration.h>
#include <apt-pkg/pkgsystem.h>
-// See the makefile
+// These lines are extracted by the makefiles and the buildsystem
+// Increasing MAJOR or MINOR results in the need of recompiling all
+// reverse-dependencies of libapt-pkg against the new SONAME.
+// Non-ABI-Breaks should only increase RELEASE number.
+// See also buildlib/libversion.mak
#define APT_PKG_MAJOR 4
#define APT_PKG_MINOR 9
#define APT_PKG_RELEASE 0
diff --git a/apt-pkg/makefile b/apt-pkg/makefile
index 80038e28e..f71367ace 100644
--- a/apt-pkg/makefile
+++ b/apt-pkg/makefile
@@ -9,13 +9,13 @@ HEADER_TARGETDIRS = apt-pkg
# Bring in the default rules
include ../buildlib/defaults.mak
-# The library name, don't forget to update init.h and the copy in
-# methods/makefile - FIXME
+# The library name and version (indirectly used from init.h)
+include ../buildlib/libversion.mak
LIBRARY=apt-pkg
-MAJOR=4.9
-MINOR=0
+MAJOR=$(LIBAPTPKG_MAJOR)
+MINOR=$(LIBAPTPKG_RELEASE)
SLIBS=$(PTHREADLIB) $(INTLLIBS) -lutil -ldl
-APT_DOMAIN:=libapt-pkg$(MAJOR)
+APT_DOMAIN:=libapt-pkg$(LIBAPTPKG_MAJOR)
# Source code for the contributed non-core things
SOURCE = contrib/mmap.cc contrib/error.cc contrib/strutl.cc \