summaryrefslogtreecommitdiff
path: root/recipes-navigation/gpsd/gpsd-3.23.1/0006-itu_r_tf_460_6.patch
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2021-12-28 16:53:45 +0200
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2021-12-28 16:53:45 +0200
commita9d3d75f87a8c25e7cca7a6bc23784fae4c96bc9 (patch)
tree6bf6c44a62e51b2a4287a83e1d23b60fd26e0ba4 /recipes-navigation/gpsd/gpsd-3.23.1/0006-itu_r_tf_460_6.patch
parent754d0018a92e3b21c61171213c7deb774213b3b1 (diff)
downloadmeta-mlinux-a9d3d75f87a8c25e7cca7a6bc23784fae4c96bc9.tar.gz
meta-mlinux-a9d3d75f87a8c25e7cca7a6bc23784fae4c96bc9.tar.bz2
meta-mlinux-a9d3d75f87a8c25e7cca7a6bc23784fae4c96bc9.zip
gps: reintegrate 3.20 patches to 3.23.1; remove unused init script
Diffstat (limited to 'recipes-navigation/gpsd/gpsd-3.23.1/0006-itu_r_tf_460_6.patch')
-rw-r--r--recipes-navigation/gpsd/gpsd-3.23.1/0006-itu_r_tf_460_6.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-navigation/gpsd/gpsd-3.23.1/0006-itu_r_tf_460_6.patch b/recipes-navigation/gpsd/gpsd-3.23.1/0006-itu_r_tf_460_6.patch
new file mode 100644
index 0000000..e17cfad
--- /dev/null
+++ b/recipes-navigation/gpsd/gpsd-3.23.1/0006-itu_r_tf_460_6.patch
@@ -0,0 +1,37 @@
+From 799f41e6bf0955d04510f16b33cdf731d27a597a Mon Sep 17 00:00:00 2001
+From: Mykyta Dorokhin <mykyta.dorokhin@globallogic.com>
+Date: Tue, 28 Dec 2021 15:46:42 +0200
+Subject: [PATCH] Reintegrate 0006-itu_r_tf_460_6.patch
+
+---
+ gpsd/ntpshmwrite.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/gpsd/ntpshmwrite.c b/gpsd/ntpshmwrite.c
+index 3f2ded3..5f0524b 100644
+--- a/gpsd/ntpshmwrite.c
++++ b/gpsd/ntpshmwrite.c
+@@ -39,11 +39,20 @@ void ntp_write(volatile struct shmTime *shmseg,
+ * ITU-R TF.460-6, Section 2.1, says laep seconds can be primarily
+ * in Jun/Dec but may be in March or September
+ */
++
++/* This code contradicts page 3 section 2.1 of ITU-R RV.460-6 that
++ * leap second may occur at the last second of a month, with
++ * preference for December and June, 2nd preference to March and
++ * September.
++ * https://www.itu.int/dms_pubrec/itu-r/rec/tf/R-REC-TF.460-6-200202-I!!PDF-E.pdf
++ */
++#ifdef NOTITU_R_TF_460_6
+ (void)gmtime_r( &(td->real.tv_sec), &tm);
+ if ( 5 != tm.tm_mon && 11 != tm.tm_mon ) {
+ /* Not june, not December, no way */
+ leap_notify = LEAP_NOWARNING;
+ }
++#endif /* NOTITU_R_TF_460_6 */
+
+ /* we use the shmTime mode 1 protocol
+ *
+--
+2.25.1
+