Subject: kern/2165: TIMEZONE and DST options in kernel config files are obsolete
To: None <gnats-bugs@NetBSD.ORG>
From: Iain Hibbert <plunky@skate.demon.co.uk>
List: netbsd-bugs
Date: 03/03/1996 09:39:41
>Number:         2165
>Category:       kern
>Synopsis:       TIMEZONE and DST options are obsolete, yet still needed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Mar  3 06:35:01 1996
>Last-Modified:
>Originator:     Iain Hibbert
>Organization:
There ain't none
>Release:        1.1
>Environment:
System: NetBSD skate.demon.co.uk 1.1 NetBSD 1.1 (skate) #0: Sun Dec 10 13:57:07 GMT 1995 plunky@skate.demon.co.uk:/home/plunky/src/sys/arch/sparc/compile/skate sparc


>Description:
the sparc kernel config files list the DST and TIMEZONE options as obsolete,
and I have determined that they really are - yet they are needed to compile
a kernel, and most of the other ports do not have them labelled as obsolete.
>How-To-Repeat:
compile a kernel
>Fix:
I have a patch for src/sys/conf/param.c, which just initialises the timezone
structure with zeros in case anybody looks there for the time before it gets
set.  All of the TIMEZONE and DST options can now be removed from the
src/sys/arch/*/conf/* files, should I send a patch for this too?

*** param.c.orig	Sun Mar  3 09:27:08 1996
--- param.c	Sun Mar  3 09:29:38 1996
***************
*** 81,87 ****
  int	hz = HZ;
  int	tick = 1000000 / HZ;
  int	tickadj = 240000 / (60 * HZ);		/* can adjust 240ms in 60s */
! struct	timezone tz = { TIMEZONE, DST };
  #define	NPROC (20 + 16 * MAXUSERS)
  int	maxproc = NPROC;
  #define	NTEXT (80 + NPROC / 8)			/* actually the object cache */
--- 81,87 ----
  int	hz = HZ;
  int	tick = 1000000 / HZ;
  int	tickadj = 240000 / (60 * HZ);		/* can adjust 240ms in 60s */
! struct	timezone tz = { 0, 0 };		/*  */
  #define	NPROC (20 + 16 * MAXUSERS)
  int	maxproc = NPROC;
  #define	NTEXT (80 + NPROC / 8)			/* actually the object cache */
>Audit-Trail:
>Unformatted: