Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/public-domain/tz/dist Import tzdata2016h from ftp:/...



details:   https://anonhg.NetBSD.org/src/rev/fec480190671
branches:  trunk
changeset: 818643:fec480190671
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Oct 20 23:12:25 2016 +0000

description:
Import tzdata2016h from ftp://ftp.iana.org/tz/releases/tzdata2016h.tar.gz

Summary of changes in tzdata2016h (2016-10-19 23:17:57 -0700):

        Asia/Gaza and Asia/Hebron end of summer time for 2016 is
        2016-10-29 at 01:00 rather than 2016-10-21 at 00:00 (which
        is within hours after this update).  Guess that future
        end dates will be the last Sat of October.

        Corrected some historic time (and one date) transition
        times for Turkey (all 1990 or before.)

        Switch Sri-Lanka to use numeric abbreviation for time zone
        as the tzdata invented one is not correct, and the correct
        one seems not to be widely used.

diffstat:

 external/public-domain/tz/dist/Makefile     |  96 +++++++++++++++++-----------
 external/public-domain/tz/dist/NEWS         |  57 +++++++++++++++++
 external/public-domain/tz/dist/Theory       |  68 ++++++++++++++++---
 external/public-domain/tz/dist/asia         |  78 +++++++++++------------
 external/public-domain/tz/dist/australasia  |   8 ++-
 external/public-domain/tz/dist/europe       |  44 ++++++------
 external/public-domain/tz/dist/northamerica |  28 +++++++-
 external/public-domain/tz/dist/version      |   1 +
 8 files changed, 264 insertions(+), 116 deletions(-)

diffs (truncated from 667 to 300 lines):

diff -r e59f713fe8ba -r fec480190671 external/public-domain/tz/dist/Makefile
--- a/external/public-domain/tz/dist/Makefile   Thu Oct 20 20:17:46 2016 +0000
+++ b/external/public-domain/tz/dist/Makefile   Thu Oct 20 23:12:25 2016 +0000
@@ -101,7 +101,6 @@
 YEARISTYPE=    ./yearistype
 
 # Non-default libraries needed to link.
-# Add -lintl if you want to use 'gettext' on Solaris.
 LDLIBS=
 
 # Add the following to the end of the "CFLAGS=" line as needed.
@@ -109,9 +108,10 @@
 #  -DHAVE_DECL_ASCTIME_R=0 if <time.h> does not declare asctime_r
 #  -DHAVE_DIRECT_H if mkdir needs <direct.h> (MS-Windows)
 #  -DHAVE_DOS_FILE_NAMES if file names have drive specifiers etc. (MS-DOS)
-#  -DHAVE_GETTEXT=1 if 'gettext' works (GNU, Linux, Solaris); also see LDLIBS
+#  -DHAVE_GETTEXT=1 if 'gettext' works (e.g., GNU/Linux, FreeBSD, Solaris)
 #  -DHAVE_INCOMPATIBLE_CTIME_R=1 if your system's time.h declares
-#      ctime_r and asctime_r incompatibly with the POSIX standard (Solaris 8).
+#      ctime_r and asctime_r incompatibly with the POSIX standard
+#      (Solaris when _POSIX_PTHREAD_SEMANTICS is not defined).
 #  -DHAVE_INTTYPES_H=1 if you have a pre-C99 compiler with "inttypes.h"
 #  -DHAVE_LINK=0 if your system lacks a link function
 #  -DHAVE_LOCALTIME_R=0 if your system lacks a localtime_r function
@@ -356,14 +356,14 @@
 NONLIBSRCS=    zic.c zdump.c
 NEWUCBSRCS=    date.c strftime.c
 SOURCES=       $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) \
-                       tzselect.ksh version workman.sh
+                       tzselect.ksh workman.sh
 MANS=          newctime.3 newstrftime.3 newtzset.3 time2posix.3 \
                        tzfile.5 tzselect.8 zic.8 zdump.8
 MANTXTS=       newctime.3.txt newstrftime.3.txt newtzset.3.txt \
                        time2posix.3.txt \
                        tzfile.5.txt tzselect.8.txt zic.8.txt zdump.8.txt \
                        date.1.txt
-COMMON=                CONTRIBUTING LICENSE Makefile NEWS README Theory
+COMMON=                CONTRIBUTING LICENSE Makefile NEWS README Theory version
 WEB_PAGES=     tz-art.htm tz-how-to.html tz-link.htm
 DOCS=          $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
 PRIMARY_YDATA= africa antarctica asia australasia \
@@ -434,16 +434,20 @@
                cp -f date.1 $(DESTDIR)$(MANDIR)/man1/.
 
 version:       $(VERSION_DEPS)
-               { V=$$(git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \
-                               --abbrev=7 --dirty) || \
+               { (type git) >/dev/null 2>&1 && \
+                 V=`git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \
+                               --abbrev=7 --dirty` || \
                  V=$(VERSION); } && \
-               printf '%s\n' "$$V" >$@
+               printf '%s\n' "$$V" >$@.out
+               mv $@.out $@
 
 version.h:     version
-               (echo 'static char const PKGVERSION[]="($(PACKAGE)) ";' && \
-                printf 'static char const TZVERSION[]="%s";\n' \
-                  "$$(cat version)" && \
-                echo 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";') >$@
+               VERSION=`cat version` && printf '%s\n' \
+                 'static char const PKGVERSION[]="($(PACKAGE)) ";' \
+                 "static char const TZVERSION[]=\"$$VERSION\";" \
+                 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";' \
+                 >$@.out
+               mv $@.out $@
 
 zdump:         $(TZDOBJS)
                $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS)
@@ -456,7 +460,8 @@
                chmod +x yearistype
 
 leapseconds:   $(LEAP_DEPS)
-               $(AWK) -f leapseconds.awk leap-seconds.list >$@
+               $(AWK) -f leapseconds.awk leap-seconds.list >$@.out
+               mv $@.out $@
 
 # Arguments to pass to submakes of install_data.
 # They can be overridden by later submake arguments.
@@ -514,12 +519,14 @@
                $(zic) -d tzs.dir $(TDATA)
                $(AWK) '/^Link/{print $$1 "\t" $$2 "\t" $$3}' \
                   $(TDATA) | LC_ALL=C sort >$@.out
-               zones=$$($(AWK) -v wd="$$(pwd)" \
+               wd=`pwd` && \
+               zones=`$(AWK) -v wd="$$wd" \
                                '/^Zone/{print wd "/tzs.dir/" $$2}' $(TDATA) \
-                        | LC_ALL=C sort) && \
+                        | LC_ALL=C sort` && \
                ./zdump -i -c $(TZS_YEAR) $$zones >>$@.out
-               sed 's,^TZ=".*tzs\.dir/,TZ=",' $@.out >$@
+               sed 's,^TZ=".*tzs\.dir/,TZ=",' $@.out >$@.sed.out
                rm -fr tzs.dir $@.out
+               mv $@.sed.out $@
 
 # If $(TZS) does not already exist (e.g., old-format tarballs), create it.
 # If it exists but 'make check_tzs' fails, a maintainer should inspect the
@@ -538,15 +545,16 @@
                $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS)
 
 tzselect:      tzselect.ksh version
-               sed \
+               VERSION=`cat version` && sed \
                        -e 's|#!/bin/bash|#!$(KSHELL)|g' \
                        -e 's|AWK=[^}]*|AWK=$(AWK)|g' \
                        -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \
                        -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \
                        -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
-                       -e 's|\(TZVERSION\)=.*|\1='"$$(cat version)"'|' \
-                       <$@.ksh >$@
-               chmod +x $@
+                       -e 's|\(TZVERSION\)=.*|\1='"$$VERSION"'|' \
+                       <$@.ksh >$@.out
+               chmod +x $@.out
+               mv $@.out $@
 
 check:         check_character_set check_white_space check_links check_sorted \
                  check_tables check_tzs check_web
@@ -554,14 +562,16 @@
 check_character_set: $(ENCHILADA)
                LC_ALL=en_US.utf8 && export LC_ALL && \
                sharp='#' && \
-               ! grep -Env $(SAFE_LINE) Makefile $(MANS) date.1 $(MANTXTS) \
-                       $(MISC) $(SOURCES) $(WEB_PAGES) && \
+               ! grep -Env $(SAFE_LINE) $(MANS) date.1 $(MANTXTS) \
+                       $(MISC) $(SOURCES) $(WEB_PAGES) \
+                       CONTRIBUTING LICENSE Makefile README version && \
                ! grep -Env $(SAFE_SHARP_LINE) $(TDATA) backzone \
                        leapseconds yearistype.sh zone.tab && \
                ! grep -Env $(OK_LINE) $(ENCHILADA)
 
 check_white_space: $(ENCHILADA)
-               ! grep -En ' '$(TAB_CHAR)"|$$(printf '[\f\r\v]')" $(ENCHILADA)
+               patfmt=' \t|[\f\r\v]' && pat=`printf "$$patfmt\\n"` && \
+               ! grep -En "$$pat" $(ENCHILADA)
                ! grep -n '[[:space:]]$$' $(ENCHILADA)
 
 CHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; }
@@ -619,7 +629,8 @@
 zic.8.txt:     zic.8
 
 $(MANTXTS):    workman.sh
-               LC_ALL=C sh workman.sh `expr $@ : '\(.*\)\.txt$$'` >$@
+               LC_ALL=C sh workman.sh `expr $@ : '\(.*\)\.txt$$'` >$@.out
+               mv $@.out $@
 
 # Set the time stamps to those of the git repository, if available,
 # and if the files have not changed since then.
@@ -630,7 +641,8 @@
 # to be the maximum of the files it depends on.
 set-timestamps.out: $(ENCHILADA)
                rm -f $@
-               if files=`git ls-files $(ENCHILADA)` && \
+               if (type git) >/dev/null 2>&1 && \
+                  files=`git ls-files $(ENCHILADA)` && \
                   touch -md @1 test.out; then \
                  rm -f test.out && \
                  for file in $$files; do \
@@ -647,8 +659,8 @@
                  touch -cmr `ls -t $$file workman.sh | sed 1q` $$file.txt || \
                    exit; \
                done
-               touch -cmr $$(ls -t $(TZS_DEPS) | sed 1q) $(TZS)
-               touch -cmr $$(ls -t $(VERSION_DEPS) | sed 1q) version
+               touch -cmr `ls -t $(TZS_DEPS) | sed 1q` $(TZS)
+               touch -cmr `ls -t $(VERSION_DEPS) | sed 1q` version
                touch $@
 
 # The zics below ensure that each data file can stand on its own.
@@ -672,11 +684,12 @@
                else \
                  quiet_option=''; \
                fi && \
+               wd=`pwd` && \
                zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \
                for type in $(TIME_T_ALTERNATIVES); do \
                  mkdir -p time_t.dir/$$type && \
                  $(MAKE) clean_misc && \
-                 $(MAKE) TOPDIR=$$(pwd)/time_t.dir/$$type \
+                 $(MAKE) TOPDIR="$$wd/time_t.dir/$$type" \
                    CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \
                    REDO='$(REDO)' \
                    install && \
@@ -700,33 +713,38 @@
                done
                rm -fr time_t.dir
 
-tarballs signatures: version
-               $(MAKE) VERSION="$$(cat version)" $@_version
+tarballs traditional_tarballs signatures traditional_signatures: version
+               VERSION=`cat version` && \
+               $(MAKE) VERSION="$$VERSION" $@_version
 
-tarballs_version: tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz \
-               tzdb-$(VERSION).tar.lz
+tarballs_version: traditional_tarballs_version tzdb-$(VERSION).tar.lz
+traditional_tarballs_version: \
+  tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz
+signatures_version: traditional_signatures_version tzdb-$(VERSION).tar.lz.asc
+traditional_signatures_version: \
+  tzcode$(VERSION).tar.gz.asc tzdata$(VERSION).tar.gz.asc \
 
 tzcode$(VERSION).tar.gz: set-timestamps.out
                LC_ALL=C && export LC_ALL && \
                tar $(TARFLAGS) -cf - \
                    $(COMMON) $(DOCS) $(SOURCES) | \
-                 gzip $(GZIPFLAGS) > $@
+                 gzip $(GZIPFLAGS) >$@.out
+               mv $@.out $@
 
 tzdata$(VERSION).tar.gz: set-timestamps.out
                LC_ALL=C && export LC_ALL && \
                tar $(TARFLAGS) -cf - $(COMMON) $(DATA) $(MISC) | \
-                 gzip $(GZIPFLAGS) > $@
+                 gzip $(GZIPFLAGS) >$@.out
+               mv $@.out $@
 
 tzdb-$(VERSION).tar.lz: set-timestamps.out
                rm -fr tzdb-$(VERSION)
                mkdir tzdb-$(VERSION)
                ln $(ENCHILADA) tzdb-$(VERSION)
-               touch -cmr $$(ls -t tzdb-$(VERSION)/* | sed 1q) tzdb-$(VERSION)
+               touch -cmr `ls -t tzdb-$(VERSION)/* | sed 1q` tzdb-$(VERSION)
                LC_ALL=C && export LC_ALL && \
-               tar $(TARFLAGS) -cf - tzdb-$(VERSION) | lzip -9 > $@
-
-signatures_version: tzcode$(VERSION).tar.gz.asc tzdata$(VERSION).tar.gz.asc \
-               tzdb-$(VERSION).tar.lz.asc
+               tar $(TARFLAGS) -cf - tzdb-$(VERSION) | lzip -9 >$@.out
+               mv $@.out $@
 
 tzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz
                gpg --armor --detach-sign $?
diff -r e59f713fe8ba -r fec480190671 external/public-domain/tz/dist/NEWS
--- a/external/public-domain/tz/dist/NEWS       Thu Oct 20 20:17:46 2016 +0000
+++ b/external/public-domain/tz/dist/NEWS       Thu Oct 20 23:12:25 2016 +0000
@@ -1,5 +1,62 @@
 News for the tz database
 
+Release 2016h - 2016-10-19 23:17:57 -0700
+
+  Changes to future time stamps
+
+    Asia/Gaza and Asia/Hebron end DST on 2016-10-29 at 01:00, not
+    2016-10-21 at 00:00.  (Thanks to Sharef Mustafa.)  Predict that
+    future fall transitions will be on the last Saturday of October
+    at 01:00, which is consistent with predicted spring transitions
+    on the last Saturday of March.  (Thanks to Tim Parenti.)
+
+  Changes to past time stamps
+
+    In Turkey, transitions in 1986-1990 were at 01:00 standard time
+    not at 02:00, and the spring 1994 transition was on March 20, not
+    March 27.  (Thanks to Kıvanç Yazan.)
+
+  Changes to past and future time zone abbreviations
+
+    Asia/Colombo now uses numeric time zone abbreviations like "+0530"
+    instead of alphabetic ones like "IST" and "LKT".  Various
+    English-language sources use "IST", "LKT" and "SLST", with no
+    working consensus.  (Usage of "SLST" mentioned by Sadika
+    Sumanapala.)
+
+  Changes to code
+
+    zic no longer mishandles relativizing file names when creating
+    symbolic links like /etc/localtime, when these symbolic links
+    are outside the usual directory hierarchy.  This fixes a bug
+    introduced in 2016g.  (Problem reported by Andreas Stieger.)
+
+  Changes to build procedure
+
+    New rules 'traditional_tarballs' and 'traditional_signatures' for
+    building just the traditional-format distribution.  (Requested by
+    Deborah Goldsmith.)
+
+    The file 'version' is now put into the tzdata tarball too.
+    (Requested by Howard Hinnant.)
+
+  Changes to documentation and commentary
+
+    The 'Theory' file now has a section on interface stability.
+    (Requested by Paul Koning.)  It also mentions features like
+    tm_zone and localtime_rz that have long been supported by the
+    reference code.
+
+    tz-link.htm has improved coverage of time zone boundaries suitable
+    for geolocation.  (Thanks to heads-ups from Evan Siroky and Matt
+    Johnson.)
+
+    The US commentary now mentions Allen and the "day of two noons".
+
+    The Fiji commentary mentions the government's 2016-10-03 press
+    release.  (Thanks to Raymond Kumar.)
+
+
 Release 2016g - 2016-09-13 08:56:38 -0700
 
   Changes to future time stamps
diff -r e59f713fe8ba -r fec480190671 external/public-domain/tz/dist/Theory



Home | Main Index | Thread Index | Old Index