Skip to contentSkip to conversation

Cluster Project branch, master, updated. gfs-kernel_0_1_22-93-g53bfde1

Cluster-devel [email protected] 1 participant 1 message Mar 21, 2008

lore
Share & tools
lore
#0 lore raw

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=53bfde1e82343cfa5d2c713f97372beecee60eb6

The branch, master has been updated

       via  53bfde1e82343cfa5d2c713f97372beecee60eb6 (commit)
      from  99a0f20cc084fbf5be602db8be24b67a1e9ab6ac (commit)

Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.

- Log ----------------------------------------------------------------- commit 53bfde1e82343cfa5d2c713f97372beecee60eb6

Author: Fabio M. Di Nitto <[email protected]>
Date:   Fri Mar 21 06:32:04 2008 +0100

[BUILD] Fix handling of version and libraries soname

The overall handling of release_major/minor/micro was wrong and it was discovered only after the first STABLE2 release.

This change obsoletes release_major/minor/micro and introduces 3 new configure options: release_version, somajor and sominor. And add options to make/official_release_version.

somajor/sominor should only be numbers (no sanity check is performed) and they can either be specified when invoking configure (both must be present at the same time and they will override official_release_version) or in make/official_release_version as:
SONAME "2.2"
If not specified anywhere they will be generated as before.

release_version can now be a random string that will be shown when asking for tool versions. When specified from the configure it will override the one specified in make/official_release_version as previously documented (ex: VERSION "2.02.01").
If not specified anywhere it will be generated by somajor.sominor.

NOTE to developers: you will need to rerun configure to regenerate make/defines.mk.

NOTE to packagers: sorry about this intrusive change but the problem was noticed too late. Removing --release_major/minor/micro from your configure invokation should be enough and usually those values should be set by upstream. While we provide an easy option to override values, please try to keep them consistent with upstream for easy tracking of bugs vs released versions.

NOTE to release manager: make/official_release_version is not tracked in git and should now contains 2 keywords to work properly (order is not important).

-----------------------------------------------------------------------

Summary of changes:

 cman/lib/Makefile |   14 +++++-----
 configure         |   79 ++++++++++++++++++++++++++++++-----------------------
 dlm/lib/Makefile  |   26 +++++++++---------
 3 files changed, 65 insertions(+), 54 deletions(-)
cman/lib/Makefile +7 -7
index 7124b80..fbc4a28 100644
@@ -14,16 +14,16 @@
 TARGET= libcman
 
 LIBDIRT=$(TARGET).a \
-	$(TARGET).so.$(RELEASE_MAJOR).$(RELEASE_MINOR)
+	$(TARGET).so.$(SOMAJOR).$(SOMINOR)
 
 LIBSYMT=$(TARGET).so \
-	$(TARGET).so.$(RELEASE_MAJOR)
+	$(TARGET).so.$(SOMAJOR)
 
 INCDIRT=$(TARGET).h
 
 include ../../make/defines.mk
 
-SHAREDLIB=$(TARGET).so.${RELEASE_MAJOR}.${RELEASE_MINOR}
+SHAREDLIB=$(TARGET).so.${SOMAJOR}.${SOMINOR}
 STATICLIB=$(TARGET).a
 
 all: $(STATICLIB) $(SHAREDLIB)
@@ -41,9 +41,9 @@ $(TARGET).a: $(TARGET).o
 	${AR} r $@ $^
 	${RANLIB} $@
 
-$(TARGET).so.${RELEASE_MAJOR}.${RELEASE_MINOR}: $(TARGET).o
-	$(CC) -shared -o $@ -Wl,-soname=$(TARGET).so.$(RELEASE_MAJOR) $<
-	ln -sf $(TARGET).so.$(RELEASE_MAJOR).$(RELEASE_MINOR) $(TARGET).so
-	ln -sf $(TARGET).so.$(RELEASE_MAJOR).$(RELEASE_MINOR) $(TARGET).so.$(RELEASE_MAJOR)
+$(TARGET).so.${SOMAJOR}.${SOMINOR}: $(TARGET).o
+	$(CC) -shared -o $@ -Wl,-soname=$(TARGET).so.$(SOMAJOR) $<
+	ln -sf $(TARGET).so.$(SOMAJOR).$(SOMINOR) $(TARGET).so
+	ln -sf $(TARGET).so.$(SOMAJOR).$(SOMINOR) $(TARGET).so.$(SOMAJOR)
 
 clean: generalclean
configure +45 -34

116 lines not on this page · raw message

dlm/lib/Makefile +13 -13
index 85a78b2..b223df7 100644
@@ -15,13 +15,13 @@ TARGET= libdlm
 
 LIBDIRT=$(TARGET).a \
 	$(TARGET)_lt.a \
-	$(TARGET).so.${RELEASE_MAJOR}.${RELEASE_MINOR} \
-	$(TARGET)_lt.so.${RELEASE_MAJOR}.${RELEASE_MINOR}
+	$(TARGET).so.${SOMAJOR}.${SOMINOR} \
+	$(TARGET)_lt.so.${SOMAJOR}.${SOMINOR}
 
 LIBSYMT=$(TARGET).so \
 	$(TARGET)_lt.so \
-	$(TARGET).so.$(RELEASE_MAJOR) \
-	$(TARGET)_lt.so.$(RELEASE_MAJOR)
+	$(TARGET).so.$(SOMAJOR) \
+	$(TARGET)_lt.so.$(SOMAJOR)
 
 INCDIRT=$(TARGET).h
 
@@ -29,7 +29,7 @@ UDEVT=51-dlm.rules
 
 include ../../make/defines.mk
 
-SHAREDLIB=$(TARGET).so.${RELEASE_MAJOR}.${RELEASE_MINOR} $(TARGET)_lt.so.${RELEASE_MAJOR}.${RELEASE_MINOR}
+SHAREDLIB=$(TARGET).so.${SOMAJOR}.${SOMINOR} $(TARGET)_lt.so.${SOMAJOR}.${SOMINOR}
 STATICLIB=$(TARGET).a $(TARGET)_lt.a
 
 all: $(STATICLIB) $(SHAREDLIB)
@@ -55,15 +55,15 @@ $(TARGET)_lt.a: $(TARGET)_lt.o
 	${AR} r $@ $^
 	${RANLIB} $@
 
-$(TARGET).so.${RELEASE_MAJOR}.${RELEASE_MINOR}: $(TARGET).po $(AISTARGET).po
-	$(CC) $(PTHREAD_LDFLAGS) $(LDFLAGS) -shared -o $@ -Wl,-soname=$(TARGET).so.$(RELEASE_MAJOR) $<
-	ln -sf $(TARGET).so.$(RELEASE_MAJOR).$(RELEASE_MINOR) $(TARGET).so
-	ln -sf $(TARGET).so.$(RELEASE_MAJOR).$(RELEASE_MINOR) $(TARGET).so.$(RELEASE_MAJOR)
+$(TARGET).so.${SOMAJOR}.${SOMINOR}: $(TARGET).po $(AISTARGET).po
+	$(CC) $(PTHREAD_LDFLAGS) $(LDFLAGS) -shared -o $@ -Wl,-soname=$(TARGET).so.$(SOMAJOR) $<
+	ln -sf $(TARGET).so.$(SOMAJOR).$(SOMINOR) $(TARGET).so
+	ln -sf $(TARGET).so.$(SOMAJOR).$(SOMINOR) $(TARGET).so.$(SOMAJOR)
 
-$(TARGET)_lt.so.${RELEASE_MAJOR}.${RELEASE_MINOR}: $(TARGET)_lt.po
-	$(CC) $(LDFLAGS) -shared -o $@ -Wl,-soname=$(TARGET)_lt.so.$(RELEASE_MAJOR) $<
-	ln -sf $(TARGET)_lt.so.$(RELEASE_MAJOR).$(RELEASE_MINOR) $(TARGET)_lt.so
-	ln -sf $(TARGET)_lt.so.$(RELEASE_MAJOR).$(RELEASE_MINOR) $(TARGET)_lt.so.$(RELEASE_MAJOR)
+$(TARGET)_lt.so.${SOMAJOR}.${SOMINOR}: $(TARGET)_lt.po
+	$(CC) $(LDFLAGS) -shared -o $@ -Wl,-soname=$(TARGET)_lt.so.$(SOMAJOR) $<
+	ln -sf $(TARGET)_lt.so.$(SOMAJOR).$(SOMINOR) $(TARGET)_lt.so
+	ln -sf $(TARGET)_lt.so.$(SOMAJOR).$(SOMINOR) $(TARGET)_lt.so.$(SOMAJOR)
 
 %_lt.o: $(S)/%.c
 	$(CC) $(CFLAGS) -c -o $@ $<

hooks/post-receive
--
Cluster Project