Subject: kern/1690: netbsd version string inconsistency
To: None <gnats-bugs@gnats.netbsd.org>
From: Daniel Carosone <dan@anarres.mame.mu.oz.au>
List: netbsd-bugs
Date: 10/25/1995 16:10:56
>Number:         1690
>Category:       kern
>Synopsis:       "what netbsd" doesn't work for all architectures
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 25 02:35:03 1995
>Last-Modified:
>Originator:     Daniel Carosone
>Organization:
Daniel Carosone                                abm Data Network Consultants
Senior Consultant             Lev. 1, 434 St Kilda Rd, Melbourne, Australia
D.Carosone@abm.com.au                  V: +61 3 243 5666  F: +61 3 866 5460
>Release:        all versions i've ever noticed
>Environment:
	
System: NetBSD anarres 1.0A NetBSD 1.0A (_anarres_) #26: Sun Sep 17 20:42:23 EST 1995 dan@blah:/amd/an/fs/b/l/NetBSD/src/sys/arch/i386/compile/_anarres_ i386


>Description:

This is a minor consistency nit, it would be nice to clean up before 1.1

On the i386, "what netbsd" on the kernel file will tell you the
version string, because vers.c puts a SCCS magic @(#) in front of it.

I keep my kernels in /netbsd.NN with the build number as NN, "what
netbsd" is a convenient way to find this number after building and
before installing a new kernel in /.

On the sparc, and possibly other machines, it doesn't work, and I need
to "strings netbsd | grep XX" where XX is "NetBSD" or the kernel
config name or "1995" or whatever else I feel like typing on the day.

vers.c looks the same on both, so this might be some alignment or
linker issue.

>How-To-Repeat:
	manual inspection
>Fix:
	find a nice way to do this on all platforms.
>Audit-Trail:
>Unformatted: