Source-Changes-HG archive

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

[src/netbsd-7-0]: src Pull up following revision(s) (requested by kre in tick...



details:   https://anonhg.NetBSD.org/src/rev/5f8002e03e4d
branches:  netbsd-7-0
changeset: 801404:5f8002e03e4d
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Nov 05 20:44:40 2017 +0000

description:
Pull up following revision(s) (requested by kre in ticket #1519):
        distrib/sets/lists/base/mi: 1.1164
        doc/3RDPARTY: 1.2326 via patch
        external/public-domain/tz/dist/CONTRIBUTING: up to 1.1.1.4
        external/public-domain/tz/dist/LICENSE: up to 1.1.1.3
        external/public-domain/tz/dist/Makefile: up to 1.1.1.18
        external/public-domain/tz/dist/NEWS: up to 1.1.1.19
        external/public-domain/tz/dist/TZDATA_VERSION: up to 1.9
        external/public-domain/tz/dist/Theory: delete
        external/public-domain/tz/dist/africa: up to 1.1.1.12
        external/public-domain/tz/dist/antarctica: up to 1.1.1.9
        external/public-domain/tz/dist/asia: up to 1.1.1.17
        external/public-domain/tz/dist/australasia: up to 1.1.1.12
        external/public-domain/tz/dist/backward: up to 1.1.1.8
        external/public-domain/tz/dist/backzone: up to 1.1.1.12
        external/public-domain/tz/dist/calendars: up to 1.1.1.1
        external/public-domain/tz/dist/checklinks.awk: up to 1.1.1.3
        external/public-domain/tz/dist/europe: up to 1.1.1.18
        external/public-domain/tz/dist/leap-seconds.list: up to 1.1.1.8
        external/public-domain/tz/dist/leapseconds: up to 1.1.1.9
        external/public-domain/tz/dist/leapseconds.awk: up to 1.1.1.6
        external/public-domain/tz/dist/northamerica: up to 1.1.1.17
        external/public-domain/tz/dist/southamerica: up to 1.1.1.12
        external/public-domain/tz/dist/theory.html: up to 1.1.1.1
        external/public-domain/tz/dist/version: up to 1.1.1.6
        external/public-domain/tz/dist/zishrink.awk: up to 1.1.1.1
        external/public-domain/tz/dist/zone.tab: up to 1.1.1.12
        external/public-domain/tz/dist/zone1970.tab: up to 1.1.1.14
Update tzdata to 2017c.

diffstat:

 distrib/sets/lists/base/mi                       |     4 +-
 doc/3RDPARTY                                     |     6 +-
 external/public-domain/tz/dist/CONTRIBUTING      |    18 +-
 external/public-domain/tz/dist/LICENSE           |     9 +-
 external/public-domain/tz/dist/Makefile          |   253 +++-
 external/public-domain/tz/dist/NEWS              |   178 +++-
 external/public-domain/tz/dist/TZDATA_VERSION    |     2 +-
 external/public-domain/tz/dist/Theory            |   870 ------------------
 external/public-domain/tz/dist/africa            |    99 +-
 external/public-domain/tz/dist/antarctica        |     8 +-
 external/public-domain/tz/dist/asia              |   144 ++-
 external/public-domain/tz/dist/australasia       |    67 +-
 external/public-domain/tz/dist/backward          |     4 +-
 external/public-domain/tz/dist/backzone          |    18 +-
 external/public-domain/tz/dist/calendars         |   173 +++
 external/public-domain/tz/dist/checklinks.awk    |     4 +-
 external/public-domain/tz/dist/europe            |    88 +-
 external/public-domain/tz/dist/leap-seconds.list |     8 +-
 external/public-domain/tz/dist/leapseconds       |    17 +-
 external/public-domain/tz/dist/leapseconds.awk   |    13 +-
 external/public-domain/tz/dist/northamerica      |   169 ++-
 external/public-domain/tz/dist/southamerica      |    32 +-
 external/public-domain/tz/dist/theory.html       |  1034 ++++++++++++++++++++++
 external/public-domain/tz/dist/version           |     2 +-
 external/public-domain/tz/dist/zishrink.awk      |   156 +++
 external/public-domain/tz/dist/zone.tab          |     4 +-
 external/public-domain/tz/dist/zone1970.tab      |     7 +-
 27 files changed, 2154 insertions(+), 1233 deletions(-)

diffs (truncated from 5189 to 300 lines):

diff -r cead7dfbed22 -r 5f8002e03e4d distrib/sets/lists/base/mi
--- a/distrib/sets/lists/base/mi        Tue Oct 24 09:24:32 2017 +0000
+++ b/distrib/sets/lists/base/mi        Sun Nov 05 20:44:40 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1087.2.7.2.3 2017/03/02 07:44:13 snj Exp $
+# $NetBSD: mi,v 1.1087.2.7.2.4 2017/11/05 20:44:40 snj Exp $
 #
 # Note:        Don't delete entries from here - mark them as "obsolete" instead,
 #      unless otherwise stated below.
@@ -5547,7 +5547,7 @@
 ./usr/share/zoneinfo/Canada                    base-sys-share
 ./usr/share/zoneinfo/Canada/Atlantic           base-sys-share          share
 ./usr/share/zoneinfo/Canada/Central            base-sys-share          share
-./usr/share/zoneinfo/Canada/East-Saskatchewan  base-sys-share          share
+./usr/share/zoneinfo/Canada/East-Saskatchewan  base-obsolete           obsolete
 ./usr/share/zoneinfo/Canada/Eastern            base-sys-share          share
 ./usr/share/zoneinfo/Canada/Mountain           base-sys-share          share
 ./usr/share/zoneinfo/Canada/Newfoundland       base-sys-share          share
diff -r cead7dfbed22 -r 5f8002e03e4d doc/3RDPARTY
--- a/doc/3RDPARTY      Tue Oct 24 09:24:32 2017 +0000
+++ b/doc/3RDPARTY      Sun Nov 05 20:44:40 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: 3RDPARTY,v 1.1145.2.18.2.24 2017/08/12 05:31:30 snj Exp $
+#      $NetBSD: 3RDPARTY,v 1.1145.2.18.2.25 2017/11/05 20:44:40 snj Exp $
 #
 # This file contains a list of the software that has been integrated into
 # NetBSD where we are not the primary maintainer.
@@ -1300,8 +1300,8 @@
 Added changes from a5 -> a12 manually.
 
 Package:       tz
-Version:       tzcode2014j (+ upgraded zic) / tzdata2017b
-Current Vers:  tzcode2017b / tzdata2017b
+Version:       tzcode2014j (+ upgraded zic) / tzdata2017c
+Current Vers:  tzcode2017c / tzdata2017c
 Maintainer:    Paul Eggert <eggert%cs.ucla.edu@localhost>
 Archive Site:  ftp://ftp.iana.org/tz/releases/
 Archive Site:  ftp://munnari.oz.au/pub/oldtz/
diff -r cead7dfbed22 -r 5f8002e03e4d external/public-domain/tz/dist/CONTRIBUTING
--- a/external/public-domain/tz/dist/CONTRIBUTING       Tue Oct 24 09:24:32 2017 +0000
+++ b/external/public-domain/tz/dist/CONTRIBUTING       Sun Nov 05 20:44:40 2017 +0000
@@ -5,20 +5,26 @@
 warning, the data entries do not cover all of civil time before
 1970, and undoubtedly errors remain in the code and data.  Feel
 free to fill gaps or fix mistakes, and please email improvements
-to tz%iana.org@localhost for use in the future.
+to tz%iana.org@localhost for use in the future.  In your email, please give
+reliable sources that reviewers can check.
+
+-----
+
+Developers can contribute technical changes to the source code and
+data as follows.
 
 To email small changes, please run a POSIX shell command like
 'diff -u old/europe new/europe >myfix.patch', and attach
 myfix.patch to the email.
 
-For more-elaborate changes, please read the Theory file and browse
-the mailing list archives <http://mm.icann.org/pipermail/tz/> for
-examples of patches that tend to work well.  Ideally, additions to
+For more-elaborate changes, please read the theory.html file and browse
+the mailing list archives <https://mm.icann.org/pipermail/tz/> for
+examples of patches that tend to work well.  Additions to
 data should contain commentary citing reliable sources as
-justification.
+justification.  Citations should use https: URLs if available.
 
 Please submit changes against either the latest release in
-<ftp://ftp.iana.org/tz/> or the master branch of the development
+<https://www.iana.org/time-zones> or the master branch of the development
 repository.  If you use Git the following workflow may be helpful:
 
   * Copy the development repository.
diff -r cead7dfbed22 -r 5f8002e03e4d external/public-domain/tz/dist/LICENSE
--- a/external/public-domain/tz/dist/LICENSE    Tue Oct 24 09:24:32 2017 +0000
+++ b/external/public-domain/tz/dist/LICENSE    Sun Nov 05 20:44:40 2017 +0000
@@ -1,4 +1,5 @@
-With a few exceptions, all files in the tz code and data (including
-this one) are in the public domain.  The exceptions are date.c,
-newstrftime.3, and strftime.c, which contain material derived from BSD
-and which use the BSD 3-clause license.
+Unless specified below, all files in the tz code and data (including
+this LICENSE file) are in the public domain.
+
+If the files date.c, newstrftime.3, and strftime.c are present, they
+contain material derived from BSD and use the BSD 3-clause license.
diff -r cead7dfbed22 -r 5f8002e03e4d external/public-domain/tz/dist/Makefile
--- a/external/public-domain/tz/dist/Makefile   Tue Oct 24 09:24:32 2017 +0000
+++ b/external/public-domain/tz/dist/Makefile   Sun Nov 05 20:44:40 2017 +0000
@@ -49,6 +49,7 @@
 # "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)/etc/$(TZDIR_BASENAME)
@@ -75,7 +76,7 @@
 # If you want only POSIX time, with time values interpreted as
 # seconds since the epoch (not counting leap seconds), use
 #      REDO=           posix_only
-# below.  If you want want only "right" time, with values interpreted
+# below.  If you want only "right" time, with values interpreted
 # as seconds since the epoch (counting leap seconds), use
 #      REDO=           right_only
 # below.  If you want both sets of data available, with leap seconds not
@@ -92,6 +93,24 @@
 
 REDO=          posix_right
 
+# To install data in text form that has all the information of the binary data,
+# (optionally incorporating leap second information), use
+#      TZDATA_TEXT=    tzdata.zi leapseconds
+# To install text data without leap second information (e.g., because
+# REDO='posix_only'), use
+#      TZDATA_TEXT=    tzdata.zi
+# To avoid installing text data, use
+#      TZDATA_TEXT=
+
+TZDATA_TEXT=   leapseconds tzdata.zi
+
+# For backward-compatibility links for old zone names, use
+#      BACKWARD=       backward pacificnew
+# To omit these links, use
+#      BACKWARD=
+
+BACKWARD=      backward pacificnew
+
 # If you want out-of-scope and often-wrong data from the file 'backzone', use
 #      PACKRATDATA=    backzone
 # To omit this data, use
@@ -99,6 +118,11 @@
 
 PACKRATDATA=
 
+# The name of a locale using the UTF-8 encoding, used during self-tests.
+# The tests are skipped if the name does not appear to work on this system.
+
+UTF8_LOCALE=   en_US.utf8
+
 # Since "." may not be in PATH...
 
 YEARISTYPE=    ./yearistype
@@ -106,50 +130,53 @@
 # Non-default libraries needed to link.
 LDLIBS=
 
-# Add the following to the end of the "CFLAGS=" line as needed.
+# Add the following to the end of the "CFLAGS=" line as needed to override
+# defaults specified in the source code.  "-DFOO" is equivalent to "-DFOO=1".
 #  -DBIG_BANG=-9999999LL if the Big Bang occurred at time -9999999 (see zic.c)
+#  -DDEPRECATE_TWO_DIGIT_YEARS for optional runtime warnings about strftime
+#      formats that generate only the last two digits of year numbers
+#  -DEPOCH_LOCAL if the 'time' function returns local time not UT
+#  -DEPOCH_OFFSET=N if the 'time' function returns a value N greater
+#      than what POSIX specifies, assuming local time is UT.
+#      For example, N is 252460800 on AmigaOS.
 #  -DHAVE_DECL_ASCTIME_R=0 if <time.h> does not declare asctime_r
+#  -DHAVE_DECL_ENVIRON if <unistd.h> declares 'environ'
 #  -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 (e.g., GNU/Linux, FreeBSD, Solaris)
-#  -DHAVE_INCOMPATIBLE_CTIME_R=1 if your system's time.h declares
+#  -DHAVE_GENERIC=0 if _Generic does not work
+#  -DHAVE_GETTEXT if 'gettext' works (e.g., GNU/Linux, FreeBSD, Solaris)
+#  -DHAVE_INCOMPATIBLE_CTIME_R if your system's time.h declares
 #      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_INTTYPES_H if you have a non-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
 #  -DHAVE_LOCALTIME_RZ=0 if you do not want zdump to use localtime_rz
-#      This defaults to 1 if a working localtime_rz seems to be available.
 #      localtime_rz can make zdump significantly faster, but is nonstandard.
 #  -DHAVE_POSIX_DECLS=0 if your system's include files do not declare
 #      functions like 'link' or variables like 'tzname' required by POSIX
-#  -DHAVE_STDINT_H=1 if you have a pre-C99 compiler with "stdint.h"
-#  -DHAVE_STRFTIME_L=1 if <time.h> declares locale_t and strftime_l
-#      This defaults to 0 if _POSIX_VERSION < 200809, 1 otherwise.
+#  -DHAVE_SNPRINTF=0 if your system lacks the snprintf function
+#  -DHAVE_STDBOOL_H if you have a non-C99 compiler with <stdbool.h>
+#  -DHAVE_STDINT_H if you have a non-C99 compiler with <stdint.h>
+#  -DHAVE_STRFTIME_L if <time.h> declares locale_t and strftime_l
 #  -DHAVE_STRDUP=0 if your system lacks the strdup function
 #  -DHAVE_SYMLINK=0 if your system lacks the symlink function
-#  -DHAVE_SYS_STAT_H=0 if your compiler lacks a "sys/stat.h"
-#  -DHAVE_SYS_WAIT_H=0 if your compiler lacks a "sys/wait.h"
+#  -DHAVE_SYS_STAT_H=0 if your compiler lacks a <sys/stat.h>
+#  -DHAVE_SYS_WAIT_H=0 if your compiler lacks a <sys/wait.h>
 #  -DHAVE_TZSET=0 if your system lacks a tzset function
-#  -DHAVE_UNISTD_H=0 if your compiler lacks a "unistd.h" (Microsoft C++ 7?)
-#  -DEPOCH_LOCAL=1 if the 'time' function returns local time not UT
-#  -DEPOCH_OFFSET=N if the 'time' function returns a value N greater
-#      than what POSIX specifies, assuming local time is UT.
-#      For example, N is 252460800 on AmigaOS.
-#  -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU=1
-#      if you do not want run time warnings about formats that may cause
-#      year 2000 grief
-#  -Dssize_t=long on ancient hosts that lack ssize_t
-#  -DTHREAD_SAFE=1 to make localtime.c thread-safe, as POSIX requires;
+#  -DHAVE_UNISTD_H=0 if your compiler lacks a <unistd.h>
+#  -Dlocale_t=XXX if your system uses XXX instead of locale_t
+#  -Dssize_t=long on hosts like MS-Windows that lack ssize_t
+#  -DTHREAD_SAFE to make localtime.c thread-safe, as POSIX requires;
 #      not needed by the main-program tz code, which is single-threaded.
 #      Append other compiler flags as needed, e.g., -pthread on GNU/Linux.
 #  -Dtime_tz=\"T\" to use T as the time_t type, rather than the system time_t
+#      This is intended for internal use only; it mangles external names.
 #  -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz"
 #  -DTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory;
 #      the default is system-supplied, typically "/usr/lib/locale"
 #  -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified
 #      DST transitions if the time zone files cannot be accessed
-#  -DUNINIT_TRAP=1 if reading uninitialized storage can cause problems
+#  -DUNINIT_TRAP if reading uninitialized storage can cause problems
 #      other than simply getting garbage data
 #  -DUSE_LTZ=0 to build zdump with the system time zone library
 #      Also set TZDOBJS=zdump.o and CHECK_TIME_T_ALTERNATIVES= below.
@@ -157,26 +184,27 @@
 #      (or some other number) to set the maximum time zone abbreviation length
 #      that zic will accept without a warning (the default is 6)
 #  $(GCC_DEBUG_FLAGS) if you are using recent GCC and want lots of checking
-GCC_DEBUG_FLAGS = -Dlint -g3 -O3 -fno-common -fstrict-aliasing \
-       -Wall -Wextra \
-       -Wbad-function-cast -Wcast-align -Wdate-time \
-       -Wdeclaration-after-statement \
-       -Wdouble-promotion \
-       -Wformat=2 -Winit-self -Wjump-misses-init \
-       -Wlogical-op -Wmissing-prototypes -Wnested-externs \
-       -Wold-style-definition -Woverlength-strings -Wpointer-arith \
-       -Wshadow -Wstrict-prototypes -Wsuggest-attribute=const \
-       -Wsuggest-attribute=format -Wsuggest-attribute=noreturn \
-       -Wsuggest-attribute=pure -Wtrampolines \
-       -Wundef -Wunused -Wwrite-strings \
-       -Wno-address -Wno-format-nonliteral -Wno-sign-compare \
-       -Wno-type-limits -Wno-unused-parameter
-#
-# If you want to use System V compatibility code, add
-#      -DUSG_COMPAT
-# to the end of the "CFLAGS=" line.  This arrange for "timezone" and "daylight"
-# variables to be kept up-to-date by the time conversion functions.  Neither
-# "timezone" nor "daylight" is described in X3J11's work.
+# Select instrumentation via "make GCC_INSTRUMENT='whatever'".
+GCC_INSTRUMENT = \
+  -fsanitize=undefined -fsanitize-address-use-after-scope \
+  -fsanitize-undefined-trap-on-error -fstack-protector
+GCC_DEBUG_FLAGS = -DGCC_LINT -g3 -O3 -fno-common \
+  $(GCC_INSTRUMENT) \
+  -Wall -Wextra \
+  -Walloc-size-larger-than=100000 -Warray-bounds=2 \
+  -Wbad-function-cast -Wcast-align -Wdate-time \
+  -Wdeclaration-after-statement -Wdouble-promotion \
+  -Wformat=2 -Wformat-overflow=2 -Wformat-signedness -Wformat-truncation \
+  -Winit-self -Wjump-misses-init -Wlogical-op \
+  -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
+  -Wold-style-definition -Woverlength-strings -Wpointer-arith \
+  -Wshadow -Wshift-overflow=2 -Wstrict-prototypes -Wstringop-overflow=5 \
+  -Wsuggest-attribute=const -Wsuggest-attribute=format \
+  -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure \
+  -Wtrampolines -Wundef -Wuninitialized -Wunused \
+  -Wvariadic-macros -Wvla -Wwrite-strings \
+  -Wno-address -Wno-format-nonliteral -Wno-sign-compare \
+  -Wno-type-limits -Wno-unused-parameter
 #
 # If your system has a "GMT offset" field in its "struct tm"s
 # (or if you decide to add such a field in your system's "time.h" file),
@@ -189,6 +217,31 @@
 # and define NO_TM_ZONE to suppress any guessing.  These two fields are not
 # required by POSIX, but are widely available on GNU/Linux and BSD systems.
 #
+# The next batch of options control support for external variables
+# exported by tzcode.  In practice these variables are less useful
+# than TM_GMTOFF and TM_ZONE.  However, most of them are standardized.
+# #
+# # To omit or support the external variable "tzname", add one of:
+# #    -DHAVE_TZNAME=0
+# #    -DHAVE_TZNAME=1
+# # to the "CFLAGS=" line.  "tzname" is required by POSIX 1988 and later.
+# # If not defined, the code attempts to guess HAVE_TZNAME from other macros.
+# # Warning: unless time_tz is also defined, HAVE_TZNAME=1 can cause
+# # crashes when combined with some platforms' standard libraries,
+# # presumably due to memory allocation issues.
+# #
+# # To omit or support the external variables "timezone" and "daylight", add
+# #    -DUSG_COMPAT=0
+# #    -DUSG_COMPAT=1
+# # to the "CFLAGS=" line; "timezone" and "daylight" are inspired by
+# # Unix Systems Group code and are required by POSIX 2008 (with XSI) and later.
+# # If not defined, the code attempts to guess USG_COMPAT from other macros.
+# #
+# # To support the external variable "altzone", add
+# #    -DALTZONE
+# # to the end of the "CFLAGS=" line; although "altzone" appeared in
+# # System V Release 3.1 it has not been standardized.
+#
 # If you want functions that were inspired by early versions of X3J11's work,
 # add
 #      -DSTD_INSPIRED



Home | Main Index | Thread Index | Old Index