Source-Changes-HG archive

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

[src/netbsd-7]: src Apply patch (requested by apb in ticket #245):



details:   https://anonhg.NetBSD.org/src/rev/8cd5d226b7dd
branches:  netbsd-7
changeset: 798600:8cd5d226b7dd
user:      snj <snj%NetBSD.org@localhost>
date:      Tue Nov 18 18:32:29 2014 +0000

description:
Apply patch (requested by apb in ticket #245):
Update tzdata from 2014g to 2014j.  Some of the changes are:
* A new Zone Pacific/Bougainville, for the part of Papua New Guinea
  that plans to switch from UTC+10 to UTC+11 on 2014-12-28 at 02:00.
* Changes for Fiji, Belarus, and Turks & Caicos that take effect
  at various times in 2014.
* Changes to historical data.

diffstat:

 distrib/sets/lists/base/mi                     |    3 +-
 doc/3RDPARTY                                   |    6 +-
 external/public-domain/tz/dist/Makefile        |   20 ++-
 external/public-domain/tz/dist/NEWS            |  159 +++++++++++++++++++++
 external/public-domain/tz/dist/Theory          |    4 +-
 external/public-domain/tz/dist/africa          |  136 +++++------------
 external/public-domain/tz/dist/asia            |  169 +++++++++++++++------
 external/public-domain/tz/dist/australasia     |   56 +++++-
 external/public-domain/tz/dist/backzone        |  185 ++++++++++++++++++++++--
 external/public-domain/tz/dist/checktab.awk    |   21 --
 external/public-domain/tz/dist/europe          |   33 +++-
 external/public-domain/tz/dist/leapseconds     |    4 +-
 external/public-domain/tz/dist/leapseconds.awk |    4 +-
 external/public-domain/tz/dist/northamerica    |   61 +++++--
 external/public-domain/tz/dist/southamerica    |   18 +-
 external/public-domain/tz/dist/zone.tab        |    3 +-
 external/public-domain/tz/dist/zone1970.tab    |    8 +-
 17 files changed, 641 insertions(+), 249 deletions(-)

diffs (truncated from 1609 to 300 lines):

diff -r 63cb02f74a8d -r 8cd5d226b7dd distrib/sets/lists/base/mi
--- a/distrib/sets/lists/base/mi        Tue Nov 18 18:19:09 2014 +0000
+++ b/distrib/sets/lists/base/mi        Tue Nov 18 18:32:29 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1087 2014/08/10 17:32:54 joerg Exp $
+# $NetBSD: mi,v 1.1087.2.1 2014/11/18 18:32:29 snj Exp $
 #
 # Note:        Don't delete entries from here - mark them as "obsolete" instead,
 #      unless otherwise stated below.
@@ -5562,6 +5562,7 @@
 ./usr/share/zoneinfo/Pacific                   base-sys-share
 ./usr/share/zoneinfo/Pacific/Apia              base-sys-share          share
 ./usr/share/zoneinfo/Pacific/Auckland          base-sys-share          share
+./usr/share/zoneinfo/Pacific/Bougainville      base-sys-share          share
 ./usr/share/zoneinfo/Pacific/Chatham           base-sys-share          share
 ./usr/share/zoneinfo/Pacific/Chuuk             base-sys-share          share
 ./usr/share/zoneinfo/Pacific/Easter            base-sys-share          share
diff -r 63cb02f74a8d -r 8cd5d226b7dd doc/3RDPARTY
--- a/doc/3RDPARTY      Tue Nov 18 18:19:09 2014 +0000
+++ b/doc/3RDPARTY      Tue Nov 18 18:32:29 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: 3RDPARTY,v 1.1145.2.1 2014/09/21 18:50:41 snj Exp $
+#      $NetBSD: 3RDPARTY,v 1.1145.2.2 2014/11/18 18:32:29 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:       tzcode2014e / tzdata2014g
-Current Vers:  tzcode2014g / tzdata2014g
+Version:       tzcode2014e / tzdata2014j
+Current Vers:  tzcode2014j / tzdata2014j
 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 63cb02f74a8d -r 8cd5d226b7dd external/public-domain/tz/dist/Makefile
--- a/external/public-domain/tz/dist/Makefile   Tue Nov 18 18:19:09 2014 +0000
+++ b/external/public-domain/tz/dist/Makefile   Tue Nov 18 18:32:29 2014 +0000
@@ -5,7 +5,7 @@
 PACKAGE=       tzcode
 
 # Version numbers of the code and data distributions.
-VERSION=       2014g
+VERSION=       2014j
 
 # Email address for bug reports.
 BUGEMAIL=      tz%iana.org@localhost
@@ -129,6 +129,7 @@
 #  -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;
 #      not needed by the main-program tz code, which is single-threaded.
 #      Append other compiler flags as needed, e.g., -pthread on GNU/Linux.
@@ -467,7 +468,8 @@
                        <$? >$@
                chmod +x $@
 
-check:         check_character_set check_white_space check_tables check_web
+check:         check_character_set check_white_space check_sorted \
+                 check_tables check_web
 
 check_character_set: $(ENCHILADA)
                LC_ALL=en_US.utf8 && export LC_ALL && \
@@ -486,6 +488,18 @@
                ! grep -n '[[:space:]]$$' $(ENCHILADA)
                ! grep -n "$$(printf '[\f\r\v]\n')" $(ENCHILADA)
 
+CHECK_CC_LIST = { n = split($$1,a,/,/); for (i=2; i<=n; i++) print a[1], a[i]; }
+
+check_sorted: backward backzone iso3166.tab zone.tab zone1970.tab
+               $(AWK) '/^Link/ {print $$3}' backward | LC_ALL=C sort -cu
+               $(AWK) '/^Zone/ {print $$2}' backzone | LC_ALL=C sort -cu
+               $(AWK) '/^[^#]/ {print $$1}' iso3166.tab | LC_ALL=C sort -cu
+               $(AWK) '/^[^#]/ {print $$1}' zone.tab | LC_ALL=C sort -c
+               $(AWK) '/^[^#]/ {print substr($$0, 1, 2)}' zone1970.tab | \
+                 LC_ALL=C sort -c
+               $(AWK) '/^[^#]/ $(CHECK_CC_LIST)' zone1970.tab | \
+                 LC_ALL=C sort -cu
+
 check_tables:  checktab.awk $(PRIMARY_YDATA) $(ZONETABLES)
                for tab in $(ZONETABLES); do \
                  $(AWK) -f checktab.awk -v zone_table=$$tab $(PRIMARY_YDATA) \
@@ -648,7 +662,7 @@
 .KEEP_STATE:
 
 .PHONY: ALL INSTALL all
-.PHONY: check check_character_set check_public check_tables
+.PHONY: check check_character_set check_public check_sorted check_tables
 .PHONY: check_time_t_alternatives check_web check_white_space clean clean_misc
 .PHONY: install maintainer-clean names posix_packrat posix_only posix_right
 .PHONY: public right_only right_posix signatures tarballs typecheck
diff -r 63cb02f74a8d -r 8cd5d226b7dd external/public-domain/tz/dist/NEWS
--- a/external/public-domain/tz/dist/NEWS       Tue Nov 18 18:19:09 2014 +0000
+++ b/external/public-domain/tz/dist/NEWS       Tue Nov 18 18:32:29 2014 +0000
@@ -1,11 +1,170 @@
 News for the tz database
 
+Release 2014j - 2014-11-10 17:37:11 -0800
+
+  Changes affecting current and future time stamps
+
+    Turks & Caicos' switch from US eastern time to UTC-4 year-round
+    did not occur on 2014-11-02 at 02:00.  It's currently scheduled
+    for 2015-11-01 at 02:00.  (Thanks to Chris Walton.)
+
+  Changes affecting past time stamps
+
+    Many pre-1989 time stamps have been corrected for Asia/Seoul and
+    Asia/Pyongyang, based on sources for the Korean-language Wikipedia
+    entry for time in Korea.  (Thanks to Sanghyuk Jung.)  Also, no
+    longer guess that Pyongyang mimicked Seoul time after World War II,
+    as this is politically implausible.
+
+    Some more zones have been turned into links, when they differed
+    from existing zones only for older time stamps.  As usual,
+    these changes affect UTC offsets in pre-1970 time stamps only.
+    Their old contents have been moved to the 'backzone' file.
+    The affected zones are: Africa/Addis_Ababa, Africa/Asmara,
+    Africa/Dar_es_Salaam, Africa/Djibouti, Africa/Kampala,
+    Africa/Mogadishu, Indian/Antananarivo, Indian/Comoro, and
+    Indian/Mayotte.
+
+  Changes affecting commentary
+
+    The commentary is less enthusiastic about Shanks as a source,
+    and is more careful to distinguish UT from UTC.
+
+
+Release 2014i - 2014-10-21 22:04:57 -0700
+
+  Changes affecting future time stamps
+
+    Pacific/Fiji will observe DST from 2014-11-02 02:00 to 2015-01-18 03:00.
+    (Thanks to Ken Rylander for the heads-up.)  Guess that future
+    years will use a similar pattern.
+
+    A new Zone Pacific/Bougainville, for the part of Papua New Guinea
+    that plans to switch from UTC+10 to UTC+11 on 2014-12-28 at 02:00.
+    (Thanks to Kiley Walbom for the heads-up.)
+
+  Changes affecting time zone abbreviations
+
+    Since Belarus is not changing its clocks even though Moscow is,
+    the time zone abbreviation in Europe/Minsk is changing from FET
+    to its more-traditional value MSK on 2014-10-26 at 01:00.
+    (Thanks to Alexander Bokovoy for the heads-up about Belarus.)
+
+    The new abbreviation IDT stands for the pre-1976 use of UT+8 in
+    Indochina, to distinguish it better from ICT (UT+7).
+
+  Changes affecting past time stamps
+
+    Many time stamps have been corrected for Asia/Ho_Chi_Minh before 1976
+    (thanks to Trần Ng�c Quân for an indirect pointer to Trần Tiến Bình's
+    authoritative book).  Asia/Ho_Chi_Minh has been added to
+    zone1970.tab, to give tzselect users in Vietnam two choices,
+    since north and south Vietnam disagreed after our 1970 cutoff.
+
+    Asia/Phnom_Penh and Asia/Vientiane have been turned into links, as
+    they differed from existing zones only for older time stamps.  As
+    usual, these changes affect pre-1970 time stamps only.  Their old
+    contents have been moved to the 'backzone' file.
+
+  Changes affecting code
+
+    The time-related library functions now set errno on failure, and
+    some crashes in the new tzalloc-related library functions have
+    been fixed.  (Thanks to Christos Zoulas for reporting most of
+    these problems and for suggesting fixes.)
+
+    If USG_COMPAT is defined and the requested time stamp is standard time,
+    the tz library's localtime and mktime functions now set the extern
+    variable timezone to a value appropriate for that time stamp; and
+    similarly for ALTZONE, daylight saving time, and the altzone variable.
+    This change is a companion to the tzname change in 2014h, and is
+    designed to make timezone and altzone more compatible with tzname.
+
+    The tz library's functions now set errno to EOVERFLOW if they fail
+    because the result cannot be represented.  ctime and ctime_r now
+    return NULL and set errno when a time stamp is out of range, rather
+    than having undefined behavior.
+
+    Some bugs associated with the new 2014g functions have been fixed.
+    This includes a bug that largely incapacitated the new functions
+    time2posix_z and posix2time_z.  (Thanks to Christos Zoulas.)
+    It also includes some uses of uninitialized variables after tzalloc.
+    The new code uses the standard type 'ssize_t', which the Makefile
+    now gives porting advice about.
+
+  Changes affecting commentary
+
+    Updated URLs for NRC Canada (thanks to Matt Johnson and Brian Inglis).
+
+
+Release 2014h - 2014-09-25 18:59:03 -0700
+
+  Changes affecting past time stamps
+
+    America/Jamaica's 1974 spring-forward transition was Jan. 6, not Apr. 28.
+
+    Shanks says Asia/Novokuznetsk switched from LMT (not "NMT") on 1924-05-01,
+    not 1920-01-06.  The old entry was based on a misinterpretation of Shanks.
+
+    Some more zones have been turned into links, when they differed
+    from existing zones only for older time stamps.  As usual,
+    these changes affect UTC offsets in pre-1970 time stamps only.
+    Their old contents have been moved to the 'backzone' file.
+    The affected zones are: Africa/Blantyre, Africa/Bujumbura,
+    Africa/Gaborone, Africa/Harare, Africa/Kigali, Africa/Lubumbashi,
+    Africa/Lusaka, Africa/Maseru, and Africa/Mbabane.
+
+  Changes affecting code
+
+    zdump -V and -v now output gmtoff= values on all platforms,
+    not merely on platforms defining TM_GMTOFF.
+
+    The tz library's localtime and mktime functions now set tzname to a value
+    appropriate for the requested time stamp, and zdump now uses this
+    on platforms not defining TM_ZONE, fixing a 2014g regression.
+    (Thanks to Tim Parenti for reporting the problem.)
+
+    The tz library no longer sets tzname if localtime or mktime fails.
+
+    zdump -c no longer mishandles transitions near year boundaries.
+    (Thanks to Tim Parenti for reporting the problem.)
+
+    An access to uninitalized data has been fixed.
+    (Thanks to Jörg Richter for reporting the problem.)
+
+    When THREAD_SAFE is defined, the code ports to the C11 memory model.
+    A memory leak has been fixed if ALL_STATE and THREAD_SAFE are defined
+    and two threads race to initialize data used by gmtime-like functions.
+    (Thanks to Andy Heninger for reporting the problems.)
+
+  Changes affecting build procedure
+
+    'make check' now checks better for properly-sorted data.
+
+  Changes affecting documentation and commentary
+
+    zdump's gmtoff=N output is now documented, and its isdst=D output
+    is now documented to possibly output D values other than 0 or 1.
+
+    zdump -c's treatment of years is now documented to use the
+    Gregorian calendar and Universal Time without leap seconds,
+    and its behavior at cutoff boundaries is now documented better.
+    (Thanks to Arthur David Olson and Tim Parenti for reporting the problems.)
+
+    Programs are now documented to use the proleptic Gregorian calendar.
+    (Thanks to Alan Barrett for the suggestion.)
+
+    Fractional-second GMT offsets have been documented for civil time
+    in 19th-century Chennai, Jakarta, and New York.
+
+
 Release 2014g - 2014-08-28 12:31:23 -0700
 
   Changes affecting future time stamps
 
     Turks & Caicos is switching from US eastern time to UTC-4 year-round,
     modeled as a switch from EST/EDT to AST on 2014-11-02 at 02:00.
+    [As noted in 2014j, this switch was later delayed.]
 
   Changes affecting past time stamps
 
diff -r 63cb02f74a8d -r 8cd5d226b7dd external/public-domain/tz/dist/Theory
--- a/external/public-domain/tz/dist/Theory     Tue Nov 18 18:19:09 2014 +0000
+++ b/external/public-domain/tz/dist/Theory     Tue Nov 18 18:32:29 2014 +0000
@@ -103,7 +103,7 @@
        signed time_t values stop working after 2038-01-19 03:14:07 UTC, so
        new implementations these days typically use a signed 64-bit integer.
        Unsigned 32-bit integers are used on one or two platforms,
-       and 36-bit integers are also used occasionally.
+       and 36-bit and 40-bit integers are also used occasionally.
        Although earlier POSIX versions allowed time_t to be a
        floating-point type, this was not supported by any practical
        systems, and POSIX.1-2013 and the tz code both require time_t
@@ -318,7 +318,7 @@
    way to specify Easter, these exceptional years are entered as
    separate tz Rule lines, even though the legal rules did not change.
 
- * The tz database models pre-standard time using the Gregorian
+ * The tz database models pre-standard time using the proleptic Gregorian
    calendar and local mean time (LMT), but many people used other
    calendars and other timescales.  For example, the Roman Empire used
    the Julian calendar, and had 12 varying-length daytime hours with a
diff -r 63cb02f74a8d -r 8cd5d226b7dd external/public-domain/tz/dist/africa
--- a/external/public-domain/tz/dist/africa     Tue Nov 18 18:19:09 2014 +0000
+++ b/external/public-domain/tz/dist/africa     Tue Nov 18 18:32:29 2014 +0000
@@ -6,20 +6,19 @@
 # tz%iana.org@localhost for general use in the future).  For more, please see
 # the file CONTRIBUTING in the tz distribution.
 
-# From Paul Eggert (2013-02-21):
+# From Paul Eggert (2014-10-31):
 #



Home | Main Index | Thread Index | Old Index