Subject: 1.5A2 lib/checkver fails during make build for libc
To: None <current-users@netbsd.org>
From: john heasley <heas@shrubbery.net>
List: current-users
Date: 11/13/2000 10:23:20
{cvsroot/}src/lib/checkver seems to have issues with teeny
versions.  causing make build (anoncvs update from yesterday)
to fail during install of the shared libc.  eg:

install ===> lib/libc
The following libraries have versions greater than the source:
/u5/release-1.5A2/usr/lib/libc.so.12.62.1
*** Error code 1

where this is the version of the installed and build versions.

maple [159] cat lib/libc/shlib_version
#       $NetBSD: shlib_version,v 1.91.2.1 2000/08/11 10:41:10 kleink Exp $
#       Remember to update distrib/sets/lists/base/shl.* when changing
#
# things we wish to do on next major version bump:
# - libc/net/rcmd.c: make __ivaliduser() and __ivaliduser_sa() static
# - libc/net: resolver update to BIND8/9?
#
major=12
minor=62
teeny=1

this fixes it; but i'm not sure what was intended since checkver uses
varname "tiny" and the shlib_version specifies "teeny", while major
and minor var names are consistent between shlib_version and checkver.

also note that awk is printing the wrong field.

Index: checkver
===================================================================
RCS file: /cvsroot/basesrc/lib/checkver,v
retrieving revision 1.9.4.1
diff -r1.9.4.1 checkver
205c205
< tiny=`echo $minor | awk 'BEGIN { FS="." } { print $2 + 0 } '`
---
> tiny=`echo $teeny | awk 'BEGIN { FS="." } { print $1 + 0 } '`

appears to have been introduced here:

----------------------------
revision 1.11
date: 2000/07/05 18:56:20;  author: he;  state: Exp;  lines: +3 -6
No longer abuse the "minor" number in the shlib_version file to
optionally contain the "teeny" version number.  Instead, introduce
a separate optional "teeny" variable.  This corresponds to the change
in revision 1.171 of share/bsd.lib.mk.
----------------------------