Subject: lib/36647: incorrect __NetBSD_Version__ in netbsd-3-0 and netbsd-3-1
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <est@ceres.ne.jp>
List: netbsd-bugs
Date: 07/14/2007 16:35:01
>Number:         36647
>Category:       lib
>Synopsis:       incorrect __NetBSD_Version__ in netbsd-3-0 and netbsd-3-1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 14 16:35:01 +0000 2007
>Originator:     Azuma Okamoto
>Release:        3.0.1, 3.0.2, 3.0.3, 3.1.1
>Organization:
>Environment:
NetBSD karaage 3.0.3 NetBSD 3.0.3 (KARAAGE) #1: Sat Jun 30 14:10:19 JST 2007  dayomon@karaage:/usr/obj/sys/arch/i386/compile/KARAAGE i386
>Description:
__NetBSD_Version__ defined in header sys/param.h is incorrect as follows.
(1) In version 3.0.x and 3.1.x (x > 0), the patchlevel is 10 times larger.
(2) In version 3.0.3, the minor version is incorrect.
As the result of these two problems, the macro of 3.0.3 indicates 3.1.30 (301003000). 


>How-To-Repeat:
see sys/param.h in branches netbsd-3-0 and netbsd-3-1

>Fix:
> #define __NetBSD_Version__ 301003000 /* NetBSD 3.0.3 */
should be
> #define __NetBSD_Version__ 300000300 /* NetBSD 3.0.3 */