Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/lib Apply patch (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/c0012550b0f2
branches:  netbsd-1-4
changeset: 470711:c0012550b0f2
user:      he <he%NetBSD.org@localhost>
date:      Mon Jul 03 17:17:08 2000 +0000

description:
Apply patch (requested by he):
  Handle use of "tiny" version numbers, to allow version bumps of
  shared libraries on a release branch without reusing version
  numbers.  This paves the way for libc.so.12.40.1.  In order to
  not have to rework bsd.lib.mk, the "minor" version number in the
  shlib_version file will in this example be 40.1, and this script
  tears that apart before comparing.  The tiny version numbers are
  (of course) optional.

diffstat:

 lib/checkver |  17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r c750c7cd3141 -r c0012550b0f2 lib/checkver
--- a/lib/checkver      Sun Jul 02 21:49:07 2000 +0000
+++ b/lib/checkver      Mon Jul 03 17:17:08 2000 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: checkver,v 1.5 1999/03/16 18:57:31 christos Exp $
+#      $NetBSD: checkver,v 1.5.2.1 2000/07/03 17:17:08 he Exp $
 #
 # Copyright (c) 1998 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -193,15 +193,28 @@
     exit 2
 fi
 
+tiny=`echo $minor | awk 'BEGIN { FS="." } { print $2 + 0 } '`
+minor=`echo $minor | awk 'BEGIN { FS="." } { print $1 } '`
+
 # Find every shared object library with the same base name.
  for instlib in `grep $libname.so "$LIBLIST" ` ; do
     # Grab the major and minor from the installed library.
     instmajor=`basename $instlib | awk 'BEGIN { FS="." } { print $3 } '`
     instminor=`basename $instlib | awk 'BEGIN { FS="." } { print $4 } '`
+    insttiny=`basename $instlib | awk 'BEGIN { FS="." } { print $5 + 0 } '`
 
     # If they're greater than the source, complain.
     if [ "0$major" -eq "0$instmajor" ] ; then
-       if [ "0$minor" -lt "0$instminor" ] ; then
+       if [ "0$minor" -eq "0$instminor" ] ; then
+           if [ "0$tiny" -lt "0$insttiny" ] ; then
+               if [ $error -eq 0 -a $quiet -eq 0 ]; then
+                   echo -n "The following libraries have versions greater"
+                   echo " than the source:"
+               fi
+               echo $instlib > /dev/stderr
+               error=1
+           fi
+        elif [ "0$minor" -lt "0$instminor" ] ; then
            if [ $error -eq 0 -a $quiet -eq 0 ]; then
                echo -n "The following libraries have versions greater"
                echo " than the source:"



Home | Main Index | Thread Index | Old Index