Module Name: src
Committed By: andvar
Date: Sun Sep 3 19:38:58 UTC 2023
Modified Files:
src/share/man/man4: options.4
src/sys/conf: files
Log Message:
config(5): enable NTP option implicitly when PPS_SYNC option is enabled.
PPS_SYNC requires NTP, but some code blocks are ifdef'ed without it,
thus allowing an attempt to build kernel with PPS_SYNC, and without NTP
(and it almost builds with one line change).
Update options(4) man page to reflect the change.
Solution suggested by riastradh.
To generate a diff of this commit:
cvs rdiff -u -r1.526 -r1.527 src/share/man/man4/options.4
cvs rdiff -u -r1.1307 -r1.1308 src/sys/conf/files
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man4/options.4
diff -u src/share/man/man4/options.4:1.526 src/share/man/man4/options.4:1.527
--- src/share/man/man4/options.4:1.526 Mon Aug 14 16:51:52 2023
+++ src/share/man/man4/options.4 Sun Sep 3 19:38:58 2023
@@ -1,4 +1,4 @@
-.\" $NetBSD: options.4,v 1.526 2023/08/14 16:51:52 riastradh Exp $
+.\" $NetBSD: options.4,v 1.527 2023/09/03 19:38:58 andvar Exp $
.\"
.\" Copyright (c) 1996
.\" Perry E. Metzger. All rights reserved.
@@ -30,7 +30,7 @@
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\"
-.Dd May 7, 2022
+.Dd September 3, 2023
.Dt OPTIONS 4
.Os
.Sh NAME
@@ -1428,13 +1428,6 @@ fractional clock ticks at NTP time-forma
.It Cd options PPS_SYNC
This option enables a kernel serial line discipline for receiving time
phase signals from an external reference clock such as a radio clock.
-.Po
-The
-.Em NTP
-option (which see) must be on if the
-.Em PPS_SYNC
-option is used
-.Pc .
Some reference clocks generate a Pulse Per Second (PPS) signal in
phase with their time source.
The
@@ -1467,6 +1460,10 @@ currently supports this option in
.Xr com 4
and
.Xr zsc 4 .
+.Pp
+.Em NOTE :
+Using this option will also enable
+.Em options NTP .
.It Cd options SETUIDSCRIPTS
Allows scripts with the setuid bit set to execute as the effective
user rather than the real user, just like binary executables.
Index: src/sys/conf/files
diff -u src/sys/conf/files:1.1307 src/sys/conf/files:1.1308
--- src/sys/conf/files:1.1307 Sun Apr 16 16:51:38 2023
+++ src/sys/conf/files Sun Sep 3 19:38:58 2023
@@ -1,4 +1,4 @@
-# $NetBSD: files,v 1.1307 2023/04/16 16:51:38 jmcneill Exp $
+# $NetBSD: files,v 1.1308 2023/09/03 19:38:58 andvar Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
version 20171118
@@ -86,7 +86,8 @@ defparam opt_sysvparam.h SEMMAP SEMMNI S
defparam opt_sysvparam.h SEMUME SEMUSZ SEMVMX SEMAEM
defparam opt_sysvparam.h SHMMAX SHMMIN SHMMNI SHMSEG SHMMAXPGS
-defflag opt_ntp.h PPS_SYNC PPS_DEBUG NTP
+defflag opt_ntp.h PPS_DEBUG NTP
+defflag opt_ntp.h PPS_SYNC: NTP
defflag opt_ptm.h NO_DEV_PTM COMPAT_BSDPTY