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 tzdata2018c from ftp:/...



details:   https://anonhg.NetBSD.org/src/rev/ea91378a3ef0
branches:  trunk
changeset: 829277:ea91378a3ef0
user:      kre <kre%NetBSD.org@localhost>
date:      Wed Jan 24 13:51:56 2018 +0000

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

Summary of changes in tzdata2018c (2018-01-22 23:00:44 -0800):
Summary of changes in tzdata2018b (2018-01-17 23:24:48 -0800):
Summary of changes in tzdata2018a (2018-01-12 22:29:21 -0800):

        2018a and 2018b were (kind of) released, but never announced.
        Some "issues" were found with them that caused the relatively
        quick updates...

        The updates are from the previous version (2017c) to the
        current one (2018c) - that 2018a & 2018b intervened is best
        forgotten... (changes in 2018a that were corrected (2018b) or
        reverted (2018c) are not mentioned).

  Briefly:

     Sao Tome and Principe (An island nation off west coast of Equatorial Africa)
     switched from +00 to +01.

     Brazil's DST will now start on November's first Sunday.

     Use Debian-style installation locations, instead of 4.3BSD-style.
        (this does not affect NetBSD, we do not use the tzdata Makefile)

  Changes to past and future time stamps

    Sao Tome and Principe switched from +00 to +01 on 2018-01-01 at
    01:00.  (Thanks to Steffen Thorsen and Michael Deckers.)

  Changes to future time stamps

    Starting in 2018 southern Brazil will begin DST on November's
    first Sunday instead of October's third Sunday.  (Thanks to
    Steffen Thorsen.)

  Changes to past time stamps

    Japanese DST transitions (1948-1951) were Sundays at 00:00, not
    Saturdays or Sundays at 02:00.  (Thanks to Takayuki Nikai.)

    A discrepancy of 4 s in timestamps before 1931 in South Sudan has
    been corrected.  The 'backzone' and 'zone.tab' files did not agree
    with the 'africa' and 'zone1970.tab' files.  (Problem reported by
    Michael Deckers.)

    The abbreviation invented for Bolivia Summer Time (1931-2) is now
    BST instead of BOST, to be more consistent with the convention
    used for Latvian Summer Time (1918-9) and for British Summer Time.

diffstat:

 external/public-domain/tz/dist/Makefile          |  193 ++++++++++++++--------
 external/public-domain/tz/dist/NEWS              |  166 ++++++++++++++++++-
 external/public-domain/tz/dist/README            |    4 +-
 external/public-domain/tz/dist/africa            |   16 +-
 external/public-domain/tz/dist/asia              |   38 ++--
 external/public-domain/tz/dist/australasia       |    6 +-
 external/public-domain/tz/dist/backzone          |   10 -
 external/public-domain/tz/dist/europe            |  123 +++++++++++--
 external/public-domain/tz/dist/leap-seconds.list |   15 +-
 external/public-domain/tz/dist/leapseconds       |    4 +-
 external/public-domain/tz/dist/northamerica      |   14 +-
 external/public-domain/tz/dist/southamerica      |   21 ++-
 external/public-domain/tz/dist/theory.html       |  146 ++++++++++++-----
 external/public-domain/tz/dist/version           |    2 +-
 external/public-domain/tz/dist/zishrink.awk      |    7 +-
 external/public-domain/tz/dist/zone.tab          |    2 +-
 external/public-domain/tz/dist/zone1970.tab      |    3 +-
 17 files changed, 563 insertions(+), 207 deletions(-)

diffs (truncated from 1472 to 300 lines):

diff -r 0db14ecdeab5 -r ea91378a3ef0 external/public-domain/tz/dist/Makefile
--- a/external/public-domain/tz/dist/Makefile   Wed Jan 24 13:49:23 2018 +0000
+++ b/external/public-domain/tz/dist/Makefile   Wed Jan 24 13:51:56 2018 +0000
@@ -42,36 +42,63 @@
 # Also see TZDEFRULESTRING below, which takes effect only
 # if the time zone files cannot be accessed.
 
-# Everything gets put in subdirectories of. . .
+
+# Installation locations.
+#
+# The defaults are suitable for Debian, except that if REDO is
+# posix_right or right_posix then files that Debian puts under
+# /usr/share/zoneinfo/posix and /usr/share/zoneinfo/right are instead
+# put under /usr/share/zoneinfo-posix and /usr/share/zoneinfo-leaps,
+# respectively.  Problems with the Debian approach are discussed in
+# the commentary for the right_posix rule (below).
 
-TOPDIR=                /usr/local
+# Destination directory, which can be used for staging.
+# 'make DESTDIR=/stage install' installs under /stage (e.g., to
+# /stage/etc/localtime instead of to /etc/localtime).  Files under
+# /stage are not intended to work as-is, but can be copied by hand to
+# the root directory later.  If DESTDIR is empty, 'make install' does
+# not stage, but installs directly into production locations.
+DESTDIR =
+
+# Everything is installed into subdirectories of TOPDIR, and used there.
+# TOPDIR should be empty (meaning the root directory),
+# or a directory name that does not end in "/".
+# TOPDIR should be empty or an absolute name unless you're just testing.
+TOPDIR =
+
+# The default local time zone is taken from the file TZDEFAULT.
+TZDEFAULT = $(TOPDIR)/etc/localtime
+
+# The subdirectory containing installed program and data files, and
+# likewise for installed files that can be shared among architectures.
+# These should be relative file names.
+USRDIR = usr
+USRSHAREDIR = $(USRDIR)/share
 
 # "Compiled" time zone information is placed in the "TZDIR" directory
 # (and subdirectories).
-# Use an absolute path name for TZDIR unless you're just testing the software.
 # TZDIR_BASENAME should not contain "/" and should not be ".", ".." or empty.
+TZDIR_BASENAME=        zoneinfo
+TZDIR = $(TOPDIR)/$(USRSHAREDIR)/$(TZDIR_BASENAME)
+
+# The "tzselect" and (if you do "make INSTALL") "date" commands go in:
+BINDIR = $(TOPDIR)/$(USRDIR)/bin
+
+# The "zdump" command goes in:
+ZDUMPDIR = $(BINDIR)
 
-TZDIR_BASENAME=        zoneinfo
-TZDIR=         $(TOPDIR)/etc/$(TZDIR_BASENAME)
+# The "zic" command goes in:
+ZICDIR = $(TOPDIR)/$(USRDIR)/sbin
+
+# Manual pages go in subdirectories of. . .
+MANDIR = $(TOPDIR)/$(USRSHAREDIR)/man
+
+# Library functions are put in an archive in LIBDIR.
+LIBDIR = $(TOPDIR)/$(USRDIR)/lib
+
 
 # Types to try, as an alternative to time_t.  int64_t should be first.
-TIME_T_ALTERNATIVES= int64_t int32_t uint32_t uint64_t
-
-# The "tzselect", "zic", and "zdump" commands get installed in. . .
-
-ETCDIR=                $(TOPDIR)/etc
-
-# If you "make INSTALL", the "date" command gets installed in. . .
-
-BINDIR=                $(TOPDIR)/bin
-
-# Manual pages go in subdirectories of. . .
-
-MANDIR=                $(TOPDIR)/man
-
-# Library functions are put in an archive in LIBDIR.
-
-LIBDIR=                $(TOPDIR)/lib
+TIME_T_ALTERNATIVES = int64_t int32_t uint32_t uint64_t
 
 # If you want only POSIX time, with time values interpreted as
 # seconds since the epoch (not counting leap seconds), use
@@ -105,11 +132,14 @@
 TZDATA_TEXT=   leapseconds tzdata.zi
 
 # For backward-compatibility links for old zone names, use
+#      BACKWARD=       backward
+# If you also want the link US/Pacific-New, even though it is confusing
+# and is planned to be removed from the database eventually, use
 #      BACKWARD=       backward pacificnew
 # To omit these links, use
 #      BACKWARD=
 
-BACKWARD=      backward pacificnew
+BACKWARD=      backward
 
 # If you want out-of-scope and often-wrong data from the file 'backzone', use
 #      PACKRATDATA=    backzone
@@ -313,7 +343,7 @@
 
 # How to use zic to install tz binary files.
 
-ZIC_INSTALL=   $(ZIC) -d $(DESTDIR)$(TZDIR) $(LEAPSECONDS)
+ZIC_INSTALL=   $(ZIC) -d '$(DESTDIR)$(TZDIR)' $(LEAPSECONDS)
 
 # The name of a Posix-compliant 'awk' on your system.
 AWK=           awk
@@ -341,8 +371,8 @@
 VALIDATE = nsgmls
 VALIDATE_FLAGS = -s -B -wall -wno-unused-param
 VALIDATE_ENV = \
-  SGML_CATALOG_FILES=$(SGML_CATALOG_FILES) \
-  SGML_SEARCH_PATH=$(SGML_SEARCH_PATH) \
+  SGML_CATALOG_FILES='$(SGML_CATALOG_FILES)' \
+  SGML_SEARCH_PATH='$(SGML_SEARCH_PATH)' \
   SP_CHARSET_FIXED=YES \
   SP_ENCODING=UTF-8
 
@@ -396,7 +426,7 @@
 #MAKE=         make
 
 cc=            cc
-CC=            $(cc) -DTZDIR=\"$(TZDIR)\"
+CC=            $(cc) -DTZDIR='"$(TZDIR)"'
 
 AR=            ar
 
@@ -421,18 +451,19 @@
                        date.1.txt
 COMMON=                calendars CONTRIBUTING LICENSE Makefile \
                        NEWS README theory.html version
-WEB_PAGES=     tz-art.htm tz-how-to.html tz-link.htm
+WEB_PAGES=     tz-art.html tz-how-to.html tz-link.html
 DOCS=          $(MANS) date.1 $(MANTXTS) $(WEB_PAGES)
 PRIMARY_YDATA= africa antarctica asia australasia \
                europe northamerica southamerica
-YDATA=         $(PRIMARY_YDATA) etcetera $(BACKWARD)
+YDATA=         $(PRIMARY_YDATA) etcetera
 NDATA=         systemv factory
-TDATA=         $(YDATA) $(NDATA)
+TDATA_TO_CHECK=        $(YDATA) $(NDATA) backward pacificnew
+TDATA=         $(YDATA) $(NDATA) $(BACKWARD)
 ZONETABLES=    zone1970.tab zone.tab
 TABDATA=       iso3166.tab $(TZDATA_TEXT) $(ZONETABLES)
 LEAP_DEPS=     leapseconds.awk leap-seconds.list
-TZDATA_ZI_DEPS=        zishrink.awk $(TDATA) $(PACKRATDATA)
-DATA=          $(YDATA) $(NDATA) backzone iso3166.tab leap-seconds.list \
+TZDATA_ZI_DEPS=        zishrink.awk version $(TDATA) $(PACKRATDATA)
+DATA=          $(TDATA_TO_CHECK) backzone iso3166.tab leap-seconds.list \
                        leapseconds yearistype.sh $(ZONETABLES)
 AWK_SCRIPTS=   checklinks.awk checktab.awk leapseconds.awk zishrink.awk
 MISC=          $(AWK_SCRIPTS) zoneinfo2tdf.pl
@@ -457,7 +488,7 @@
                newctime.3 newstrftime.3 newtzset.3 northamerica \
                pacificnew private.h \
                southamerica strftime.c systemv theory.html \
-               time2posix.3 tz-art.htm tz-how-to.html tz-link.htm \
+               time2posix.3 tz-art.html tz-how-to.html tz-link.html \
                tzfile.5 tzfile.h tzselect.8 tzselect.ksh \
                workman.sh yearistype.sh \
                zdump.8 zdump.c zic.8 zic.c \
@@ -473,35 +504,41 @@
 ALL:           all date $(ENCHILADA)
 
 install:       all $(DATA) $(REDO) $(MANS)
-               mkdir -p $(DESTDIR)$(ETCDIR) $(DESTDIR)$(TZDIR) \
-                       $(DESTDIR)$(LIBDIR) \
-                       $(DESTDIR)$(MANDIR)/man3 $(DESTDIR)$(MANDIR)/man5 \
-                       $(DESTDIR)$(MANDIR)/man8
-               $(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES)
-               cp -f $(TABDATA) $(DESTDIR)$(TZDIR)/.
-               cp tzselect zic zdump $(DESTDIR)$(ETCDIR)/.
-               cp libtz.a $(DESTDIR)$(LIBDIR)/.
-               $(RANLIB) $(DESTDIR)$(LIBDIR)/libtz.a
-               cp -f newctime.3 newtzset.3 $(DESTDIR)$(MANDIR)/man3/.
-               cp -f tzfile.5 $(DESTDIR)$(MANDIR)/man5/.
-               cp -f tzselect.8 zdump.8 zic.8 $(DESTDIR)$(MANDIR)/man8/.
+               mkdir -p '$(DESTDIR)$(BINDIR)' \
+                       '$(DESTDIR)$(ZDUMPDIR)' '$(DESTDIR)$(ZICDIR)' \
+                       '$(DESTDIR)$(LIBDIR)' \
+                       '$(DESTDIR)$(MANDIR)/man3' '$(DESTDIR)$(MANDIR)/man5' \
+                       '$(DESTDIR)$(MANDIR)/man8'
+               $(ZIC_INSTALL) -l $(LOCALTIME) -p $(POSIXRULES) \
+                       -t '$(DESTDIR)$(TZDEFAULT)'
+               cp -f $(TABDATA) '$(DESTDIR)$(TZDIR)/.'
+               cp tzselect '$(DESTDIR)$(BINDIR)/.'
+               cp zdump '$(DESTDIR)$(ZDUMPDIR)/.'
+               cp zic '$(DESTDIR)$(ZICDIR)/.'
+               cp libtz.a '$(DESTDIR)$(LIBDIR)/.'
+               $(RANLIB) '$(DESTDIR)$(LIBDIR)/libtz.a'
+               cp -f newctime.3 newtzset.3 '$(DESTDIR)$(MANDIR)/man3/.'
+               cp -f tzfile.5 '$(DESTDIR)$(MANDIR)/man5/.'
+               cp -f tzselect.8 zdump.8 zic.8 '$(DESTDIR)$(MANDIR)/man8/.'
 
 INSTALL:       ALL install date.1
-               mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
-               cp date $(DESTDIR)$(BINDIR)/.
-               cp -f date.1 $(DESTDIR)$(MANDIR)/man1/.
+               mkdir -p '$(DESTDIR)$(BINDIR)' '$(DESTDIR)$(MANDIR)/man1'
+               cp date '$(DESTDIR)$(BINDIR)/.'
+               cp -f date.1 '$(DESTDIR)$(MANDIR)/man1/.'
 
 version:       $(VERSION_DEPS)
                { (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); } && \
+                 V='$(VERSION)'; } && \
                printf '%s\n' "$$V" >$@.out
                mv $@.out $@
 
 # This file can be tailored by setting BACKWARD, PACKRATDATA, etc.
 tzdata.zi:     $(TZDATA_ZI_DEPS)
-               LC_ALL=C $(AWK) -f zishrink.awk $(TDATA) $(PACKRATDATA) >$@.out
+               version=`sed 1q version` && \
+                 LC_ALL=C $(AWK) -v version="$$version" -f zishrink.awk \
+                   $(TDATA) $(PACKRATDATA) >$@.out
                mv $@.out $@
 
 version.h:     version
@@ -529,12 +566,13 @@
 # Arguments to pass to submakes of install_data.
 # They can be overridden by later submake arguments.
 INSTALLARGS = \
- BACKWARD=$(BACKWARD) \
- DESTDIR=$(DESTDIR) \
+ BACKWARD='$(BACKWARD)' \
+ DESTDIR='$(DESTDIR)' \
  LEAPSECONDS='$(LEAPSECONDS)' \
  PACKRATDATA='$(PACKRATDATA)' \
- TZDIR=$(TZDIR) \
- YEARISTYPE=$(YEARISTYPE) \
+ TZDEFAULT='$(TZDEFAULT)' \
+ TZDIR='$(TZDIR)' \
+ YEARISTYPE='$(YEARISTYPE)' \
  ZIC='$(ZIC)'
 
 # 'make install_data' installs one set of tz binary files.
@@ -558,16 +596,16 @@
 # You must replace all of $(TZDIR) to switch from not using leap seconds
 # to using them, or vice versa.
 right_posix:   right_only
-               rm -fr $(DESTDIR)$(TZDIR)-leaps
-               ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-leaps || \
-                 $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-leaps right_only
-               $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-posix posix_only
+               rm -fr '$(DESTDIR)$(TZDIR)-leaps'
+               ln -s '$(TZDIR_BASENAME)' '$(DESTDIR)$(TZDIR)-leaps' || \
+                 $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-leaps' right_only
+               $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-posix' posix_only
 
 posix_right:   posix_only
-               rm -fr $(DESTDIR)$(TZDIR)-posix
-               ln -s $(TZDIR_BASENAME) $(DESTDIR)$(TZDIR)-posix || \
-                 $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-posix posix_only
-               $(MAKE) $(INSTALLARGS) TZDIR=$(TZDIR)-leaps right_only
+               rm -fr '$(DESTDIR)$(TZDIR)-posix'
+               ln -s '$(TZDIR_BASENAME)' '$(DESTDIR)$(TZDIR)-posix' || \
+                 $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-posix' posix_only
+               $(MAKE) $(INSTALLARGS) TZDIR='$(TZDIR)-leaps' right_only
 
 # This obsolescent rule is present for backwards compatibility with
 # tz releases 2014g through 2015g.  It should go away eventually.
@@ -633,7 +671,7 @@
                        $(MISC) $(SOURCES) $(WEB_PAGES) \
                        CONTRIBUTING LICENSE Makefile README \
                        version tzdata.zi && \
-               ! grep -Env $(SAFE_SHARP_LINE) $(TDATA) backzone \
+               ! grep -Env $(SAFE_SHARP_LINE) $(TDATA_TO_CHECK) backzone \
                        leapseconds yearistype.sh zone.tab && \
                ! grep -Env $(OK_LINE) $(ENCHILADA); \
        }
@@ -641,14 +679,16 @@
 check_white_space: $(ENCHILADA)
                patfmt=' \t|[\f\r\v]' && pat=`printf "$$patfmt\\n"` && \
                ! grep -En "$$pat" $(ENCHILADA)
-               ! grep -n '[[:space:]]$$' $(ENCHILADA)
+               ! grep -n '[[:space:]]$$' \
+                       $$(ls $(ENCHILADA) | grep -Fvx leap-seconds.list)
 
 PRECEDES_FILE_NAME = ^(Zone|Link[[:space:]]+[^[:space:]]+)[[:space:]]+
 FILE_NAME_COMPONENT_TOO_LONG = \
   $(PRECEDES_FILE_NAME)[^[:space:]]*[^/[:space:]]{15}
 
-check_name_lengths: $(TDATA) backzone
-               ! grep -En '$(FILE_NAME_COMPONENT_TOO_LONG)' $(TDATA) backzone
+check_name_lengths: $(TDATA_TO_CHECK) backzone
+               ! grep -En '$(FILE_NAME_COMPONENT_TOO_LONG)' \
+                       $(TDATA_TO_CHECK) backzone
 
 CHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; }
 
@@ -662,8 +702,8 @@



Home | Main Index | Thread Index | Old Index