glibc/timezone
Joseph Myers 92bd70fb85 Update timezone code from tzcode 2017b.
This patch updates files coming from tzcode to the versions in tzcode
2017b.  A couple of changes to other glibc code are needed.
time/tzset.c was using the SECSPERDAY macro from tzfile.h, which no
longer defines that macro, so a local definition is added to tzset.c.
Because timezone/private.h now defines the _ macro whenever
HAVE_GETTEXT is true, even if it was previously defined, it is also
necessary to avoid a conflict with the definition in
include/libintl.h.  Defining _ISOMAC is the obvious way to avoid such
internal definitions being visible, together with defining TZ_DOMAIN
so that zic and zdump continue to get the messages from the libc
domain as desired.  However, zic and zdump rely on PKGVERSION and
REPORT_BUGS_TO from config.h, which is not included by default with
_ISOMAC, so -include config.h needs adding to the options for these
programs as well.  Together those changes allow unmodified tzcode
2017b sources to work in glibc.

Tested for x86_64.

	* timezone/private.h: Update from tzcode 2017b.
	* timezone/tzfile.h: Likewise.
	* timezone/tzselect.ksh: Likewise.
	* timezone/zdump.c: Likewise.
	* timezone/zic.c: Likewise.
	* timezone/Makefile (tz-cflags): Add -D_ISOMAC
	-DTZ_DOMAIN='"libc"' -include $(common-objpfx)config.h.
	* time/tzset.c (SECSPERDAY): New macro.
2017-06-16 11:09:21 +00:00
..
testdata Make time zone file parser more robust [BZ #17715] 2015-04-24 17:34:48 +02:00
africa Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
antarctica Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
asia Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
australasia Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
backward Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
etcetera Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
europe Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
factory Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
iso3166.tab Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
leapseconds Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
Makefile Update timezone code from tzcode 2017b. 2017-06-16 11:09:21 +00:00
northamerica Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
pacificnew Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
private.h Update timezone code from tzcode 2017b. 2017-06-16 11:09:21 +00:00
README Remove mention of checktab.awk in timezone/README. 2016-03-14 14:11:51 -04:00
simplebackw
solar87 Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
solar88 Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
solar89 Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
southamerica Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
systemv Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
test-tz.c
tst-timezone.c Add missing header files throughout the testsuite. 2017-02-16 17:33:18 -05:00
tst-tzset.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tzfile.h Update timezone code from tzcode 2017b. 2017-06-16 11:09:21 +00:00
tzselect.ksh Update timezone code from tzcode 2017b. 2017-06-16 11:09:21 +00:00
yearistype Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00
zdump.c Update timezone code from tzcode 2017b. 2017-06-16 11:09:21 +00:00
zic.c Update timezone code from tzcode 2017b. 2017-06-16 11:09:21 +00:00
zone.tab Update timezone data from tzdata2009i. 2009-06-15 08:39:40 -07:00

The files
	zic.c zdump.c tzfile.h private.h tzselect.ksh
come from the tzcode package by Arthur David Olson et.al.

The files
	africa antarctica asia australasia europe
	northamerica southamerica pacificnew etcetera factory
	backward systemv solar87 solar88 solar89
	iso3166.tab zone.tab leapseconds yearistype
come from the tzdata package by Arthur David Olson et.al.

Please check the ChangeLog files in the top level directory for the
version of the tzcode and tzdata packages.

Please also see: https://sourceware.org/glibc/wiki/SharedSourceFiles

These packages may be found at ftp://ftp.iana.org/tz/releases/.  Commentary
should be addressed to tz@iana.org.

The subdirectory testdata contains manually edited data files for
regression testing purposes.