summaryrefslogtreecommitdiff
path: root/recipes-navigation/gpsd
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-01-23 10:04:52 -0600
committerJohn Klug <john.klug@multitech.com>2017-01-23 10:04:52 -0600
commit65b363bd0d5fda841ca73bf023093d3ec7538138 (patch)
tree03ab393584cc9de5d2b61b152fbeeed391113b0e /recipes-navigation/gpsd
parent979946da3ed44d340c2840a454148ec51ebe79d4 (diff)
downloadmeta-mlinux-65b363bd0d5fda841ca73bf023093d3ec7538138.tar.gz
meta-mlinux-65b363bd0d5fda841ca73bf023093d3ec7538138.tar.bz2
meta-mlinux-65b363bd0d5fda841ca73bf023093d3ec7538138.zip
Remove code that contradicts ITU leap second standard
Diffstat (limited to 'recipes-navigation/gpsd')
-rw-r--r--recipes-navigation/gpsd/gpsd-3.16/0006-itu_r_tf_460_6.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-navigation/gpsd/gpsd-3.16/0006-itu_r_tf_460_6.patch b/recipes-navigation/gpsd/gpsd-3.16/0006-itu_r_tf_460_6.patch
new file mode 100644
index 0000000..8e8d814
--- /dev/null
+++ b/recipes-navigation/gpsd/gpsd-3.16/0006-itu_r_tf_460_6.patch
@@ -0,0 +1,23 @@
+diff -Naur old/ntpshmwrite.c new/ntpshmwrite.c
+--- old/ntpshmwrite.c 2017-01-23 10:00:05.497129473 -0600
++++ new/ntpshmwrite.c 2017-01-23 09:47:58.881627772 -0600
+@@ -32,11 +32,18 @@
+ * NTP expects leap pending for only 1 month prior to insertion
+ * Per http://bugs.ntp.org/1090 */
+ (void)gmtime_r( &(td->real.tv_sec), &tm);
++/* 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
+ 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
+ *
+ * ntpd does this: