diff options
-rw-r--r-- | doc/HISTORY | 4 | ||||
-rw-r--r-- | lib/Makefile | 26 |
2 files changed, 28 insertions, 2 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index bfcb56a8..f7d89460 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -13,6 +13,10 @@ not yet BJH Release 11.00.01 fitstopnm: fix invalid memory reference (nonterminated ASCIIZ string). + packaging: Fix library minor number to 100 + Netpbm minor number + so it is higher than previous ones in library major 100. + I.e. libnetpbm.so.100.101 instead of libnetpbm.so.100.1. + 22.09.28 BJH Release 11.00.00 (No significance to new major number; just ran out of 2-digit diff --git a/lib/Makefile b/lib/Makefile index d7dfc993..5040e40f 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -99,8 +99,30 @@ libpbm3.o: CFLAGS_TARGET+=$(CFLAGS_SSE) $(LIBOBJECTS): %.o: %.c importinc $(CC) -c $(INCLUDES) $(CFLAGS_ALL) -o $@ $< -MAJ = 11 -MIN = $(NETPBM_MINOR_RELEASE) +# The major number increases when there is a non-backward-compatible change +# to the library at the binary level, meaning any client of the library needs +# to keep using the old library until it has been recompiled for the new +# library. We try very hard never to lose backward compatibility at the +# source level, which would mean the client source code has to be modified +# before it can use the new library. +# +# The major number might seem like it corresponds to the major version number +# of Netpbm, but it does not. It is independent. +# +# Adding functions is backward compatible, so does not require a major number +# change. +# +# The minor number must always increase within a major number. +# +# It is convenient to have the minor number equal to the minor version number +# of Netpbm, but when we changed the Netpbm major version number from 10 to 11 +# just to keep the minor version number 2 digits, we had to continue +# increasing the library minor number, so we went to 100 + minor version +# number. If we ever increase the major number to 12, we can go back to using +# the minor version number for the library minor number. + +MAJ := 11 +$(eval MIN:=$(shell echo $$((100+$(NETPBM_MINOR_RELEASE))))) SONAME = libnetpbm.$(NETPBMLIBSUFFIX).$(MAJ) |