[Git][NTPsec/ntpsec][master] 2 commits: Try --enable-pylib=ffi and --enable-pylib=ext

Hal Murray (@hal.murray) gitlab at mg.gitlab.com
Sat Feb 12 07:18:15 UTC 2022



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
29108c1a by Hal Murray at 2022-02-11T22:42:13-08:00
Try --enable-pylib=ffi and --enable-pylib=ext

- - - - -
d67df8b0 by Hal Murray at 2022-02-11T23:04:34-08:00
Fix WNRO logging every second

- - - - -


2 changed files:

- ntpd/refclock_nmea.c
- tests/option-tester.sh


Changes:

=====================================
ntpd/refclock_nmea.c
=====================================
@@ -958,6 +958,7 @@ nmea_receive(
 		rc_time	 = parse_time(&date, &rdata, 1);
 		pp->leap = parse_qual(&rdata, 2, 'A', 0);
 		rc_date	 = parse_date(&date, &rdata, 9, DATE_1_DDMMYY);
+		fix_WNRO(&date, &up->wnro, peer);
 		if (CLK_FLAG4 & pp->sloppyclockflag)
 			field_wipe(&rdata, 3, 4, 5, 6, -1);
 		break;
@@ -985,12 +986,14 @@ nmea_receive(
 		pp->leap = LEAP_NOWARNING;
 		rc_time	 = parse_time(&date, &rdata, 1);
 		rc_date	 = parse_date(&date, &rdata, 2, DATE_3_DDMMYYYY);
+		fix_WNRO(&date, &up->wnro, peer);
 		break;
 
 	case NMEA_GPZDG:
 		/* Check quality byte, fetch time & full date */
 		rc_time	 = parse_time(&date, &rdata, 1);
 		rc_date	 = parse_date(&date, &rdata, 2, DATE_3_DDMMYYYY);
+		fix_WNRO(&date, &up->wnro, peer);
 		pp->leap = parse_qual(&rdata, 4, '0', 1);
 /* May be wrong sign: HGM, 2022-Jan-17 */
 		date.tv_sec = -1; /* GPZDG is following second */
@@ -1047,16 +1050,13 @@ nmea_receive(
 		up->gps_time = true;
 	}
 
-	/* Check/fix WNRO */
-	fix_WNRO(&date, &up->wnro, peer);
-	rd_reftime = tspec_stamp_to_lfp(date);
-
 	/*
 	 * Get the reference time stamp from the calendar buffer.
 	 * Process the new sample in the median filter and determine the
 	 * timecode timestamp, but only if the PPS is not in control.
 	 * Discard sentence if reference time did not change.
 	 */
+	rd_reftime = tspec_stamp_to_lfp(date);
 	if (up->last_reftime == rd_reftime) {
 		/* Do not touch pp->a_lastcode on purpose! */
 		up->tally.filtered++;


=====================================
tests/option-tester.sh
=====================================
@@ -92,9 +92,9 @@ doit default ""
 doit minimal "--disable-droproot --disable-mdns-registration --disable-doc --disable-manpage"
 
 # This also tests refclocks without DEBUG
-doit classic "--enable-classic-mode --refclock=all --disable-doc --disable-manpage"
+doit classic "--enable-classic-mode --refclock=all --disable-doc --disable-manpage --enable-pylib=ffi"
 
-doit all     "--enable-warnings --enable-debug --enable-debug-gdb --enable-debug-timing --refclock=all --enable-leap-smear --enable-mssntp --enable-early-droproot --disable-fuzz $LINUX --disable-doc --disable-manpage"
+doit all     "--enable-warnings --enable-debug --enable-debug-gdb --enable-debug-timing --refclock=all --enable-leap-smear --enable-mssntp --enable-early-droproot --disable-fuzz $LINUX --disable-doc --disable-manpage --enable-pylib=ext"
 
 if [ "`which asciidoc 2>/dev/null`" != "" -a \
      "`which xsltproc 2>/dev/null`" != "" ]



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/compare/0951e8a9490a8dec01a5e84b06545f579f8024be...d67df8b09dc726c0a1fd86f2a4b2bd6f0042b3dc

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/compare/0951e8a9490a8dec01a5e84b06545f579f8024be...d67df8b09dc726c0a1fd86f2a4b2bd6f0042b3dc
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20220212/66d94d6c/attachment-0001.htm>


More information about the vc mailing list