Branch: Tag:

2016-10-23

2016-10-23 20:48:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Updated to tzdata2016h.

4:   # Package name for the code distribution.   PACKAGE= tzcode    - # Version numbers of the code and data distributions. - VERSION= 2016f + # Version number for the distribution, overridden in the 'tarballs' rule below. + VERSION= unknown      # Email address for bug reports.   BUGEMAIL= tz@iana.org
101:   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:   # -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
240:   CFLAGS=      # Linker flags. Default to $(LFLAGS) for backwards compatibility - # to tzcode2012h and earlier. + # to release 2012h and earlier.      LDFLAGS= $(LFLAGS)   
256:      ZFLAGS=    - # How to use zic to install tzdata binary files. + # How to use zic to install tz binary files.      ZIC_INSTALL= $(ZIC) -y $(YEARISTYPE) -d $(DESTDIR)$(TZDIR) $(LEAPSECONDS)   
272:   KSHELL= /bin/bash      # The path where SGML DTDs are kept and the catalog file(s) to use when - # validating. The default is appropriate for Ubuntu 13.10. + # validating. The default should work on both Debian and Red Hat.   SGML_TOPDIR= /usr   SGML_DTDDIR= $(SGML_TOPDIR)/share/xml/w3c-sgml-lib/schema/dtd   SGML_SEARCH_PATH= $(SGML_DTDDIR)/REC-html401-19991224   SGML_CATALOG_FILES= \ -  $(SGML_TOPDIR)/share/doc/w3-recs/html/www.w3.org/TR/1999/REC-html401-19991224/HTML4.cat +  $(SGML_TOPDIR)/share/doc/w3-recs/html/www.w3.org/TR/1999/REC-html401-19991224/HTML4.cat:$(SGML_TOPDIR)/share/sgml/html/4.01/HTML4.cat      # The name, arguments and environment of a program to validate your web pages. - # See <http://www.jclark.com/sp/> for a validator, and - # <http://validator.w3.org/source/> for a validation library. + # See <http://openjade.sourceforge.net/doc/> for a validator, and + # <https://validator.w3.org/source/> for a validation library.   VALIDATE = nsgmls   VALIDATE_FLAGS = -s -B -wall -wno-unused-param   VALIDATE_ENV = \
326:      # Flags to give 'tar' when making a distribution.   # Try to use flags appropriate for GNU tar. - GNUTARFLAGS= --numeric-owner --owner=0 --group=0 --mode=go+u,go-w + GNUTARFLAGS= --numeric-owner --owner=0 --group=0 --mode=go+u,go-w --sort=name   TARFLAGS= `if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \    then echo $(GNUTARFLAGS); \    else :; \
363:    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 \
378:    leap-seconds.list yearistype.sh   AWK_SCRIPTS= checklinks.awk checktab.awk leapseconds.awk   MISC= $(AWK_SCRIPTS) zoneinfo2tdf.pl - ENCHILADA= $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC) + TZS_YEAR= 2050 + TZS= to$(TZS_YEAR).tzs + TZS_NEW= to$(TZS_YEAR)new.tzs + TZS_DEPS= $(PRIMARY_YDATA) asctime.c localtime.c \ +  private.h tzfile.h zdump.c zic.c + ENCHILADA= $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC) $(TZS)    -  + # Consult these files when deciding whether to rebuild the 'version' file. + # This list is not the same as the output of 'git ls-files', since + # .gitignore is not distributed. + VERSION_DEPS= \ +  CONTRIBUTING LICENSE Makefile NEWS README Theory \ +  africa antarctica asctime.c asia australasia \ +  backward backzone \ +  checklinks.awk checktab.awk \ +  date.1 date.c difftime.c \ +  etcetera europe factory iso3166.tab \ +  leap-seconds.list leapseconds.awk localtime.c \ +  newctime.3 newstrftime.3 newtzset.3 northamerica \ +  pacificnew private.h \ +  southamerica strftime.c systemv \ +  time2posix.3 tz-art.htm tz-how-to.html tz-link.htm \ +  tzfile.5 tzfile.h tzselect.8 tzselect.ksh \ +  workman.sh yearistype.sh \ +  zdump.8 zdump.c zic.8 zic.c \ +  zone.tab zone1970.tab zoneinfo2tdf.pl +    # And for the benefit of csh users on systems that assume the user   # shell should be used to handle commands in Makefiles. . .   
408:    cp date $(DESTDIR)$(BINDIR)/.    cp -f date.1 $(DESTDIR)$(MANDIR)/man1/.    - version.h: -  (echo 'static char const PKGVERSION[]="($(PACKAGE)) ";' && \ -  echo 'static char const TZVERSION[]="$(VERSION)";' && \ -  echo 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";') >$@ + 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); } && \ +  printf '%s\n' "$$V" >$@.out +  mv $@.out $@    -  + version.h: version +  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)   
424:    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.
477:      zones: $(REDO)    + $(TZS_NEW): $(TDATA) zdump zic +  mkdir -p tzs.dir +  $(zic) -d tzs.dir $(TDATA) +  $(AWK) '/^Link/{print $$1 "\t" $$2 "\t" $$3}' \ +  $(TDATA) | LC_ALL=C sort >$@.out +  wd=`pwd` && \ +  zones=`$(AWK) -v wd="$$wd" \ +  '/^Zone/{print wd "/tzs.dir/" $$2}' $(TDATA) \ +  | LC_ALL=C sort` && \ +  ./zdump -i -c $(TZS_YEAR) $$zones >>$@.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 + # failed output and fix the inconsistency, perhaps by running 'make force_tzs'. + $(TZS): +  $(MAKE) force_tzs +  + force_tzs: $(TZS_NEW) +  cp $(TZS_NEW) $(TZS) +    libtz.a: $(LIBOBJS)    $(AR) ru $@ $(LIBOBJS)    $(RANLIB) $@
484:   date: $(DATEOBJS)    $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS)    - tzselect: tzselect.ksh -  sed \ + tzselect: tzselect.ksh version +  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=$(VERSION)|' \ -  <$? >$@ -  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_web +  check_tables check_tzs check_web      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]; }
532:    || exit; \    done    + check_tzs: $(TZS) $(TZS_NEW) +  diff -u $(TZS) $(TZS_NEW) +    check_web: $(WEB_PAGES)    $(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) $(WEB_PAGES)   
539:    rm -f core *.o *.out \    date tzselect version.h zdump zic yearistype libtz.a   clean: clean_misc -  rm -fr tzpublic +  rm -fr *.dir tzdb-*/ $(TZS_NEW)      maintainer-clean: clean    @echo 'This command is intended for maintainers to use; it'    @echo 'deletes files that may need special tools to rebuild.' -  rm -f leapseconds $(MANTXTS) *.asc *.tar.gz +  rm -f leapseconds version $(MANTXTS) $(TZS) *.asc *.tar.*      names:    @echo $(ENCHILADA)
563:   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.
574:   # 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 \
591:    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 $@      # The zics below ensure that each data file can stand on its own.
599:   check_public:    $(MAKE) maintainer-clean    $(MAKE) "CFLAGS=$(GCC_DEBUG_FLAGS)" ALL -  mkdir tzpublic +  mkdir -p public.dir    for i in $(TDATA) ; do \ -  $(zic) -v -d tzpublic $$i 2>&1 || exit; \ +  $(zic) -v -d public.dir $$i 2>&1 || exit; \    done -  $(zic) -v -d tzpublic $(TDATA) -  rm -fr tzpublic +  $(zic) -v -d public.dir $(TDATA) +  rm -fr public.dir      # Check that the code works under various alternative   # implementations of time_t.
614:    else \    quiet_option=''; \    fi && \ +  wd=`pwd` && \    zones=`$(AWK) '/^[^#]/ { print $$3 }' <zone1970.tab` && \    for type in $(TIME_T_ALTERNATIVES); do \ -  mkdir -p tzpublic/$$type && \ +  mkdir -p time_t.dir/$$type && \    $(MAKE) clean_misc && \ -  $(MAKE) TOPDIR=`pwd`/tzpublic/$$type \ +  $(MAKE) TOPDIR="$$wd/time_t.dir/$$type" \    CFLAGS='$(CFLAGS) -Dtime_tz='"'$$type'" \    REDO='$(REDO)' \    install && \    diff $$quiet_option -r \ -  tzpublic/int64_t/etc/zoneinfo \ -  tzpublic/$$type/etc/zoneinfo && \ +  time_t.dir/int64_t/etc/zoneinfo \ +  time_t.dir/$$type/etc/zoneinfo && \    case $$type in \    int32_t) range=-2147483648,2147483647;; \    uint32_t) range=0,4294967296;; \
633:    *) range=-10000000000,10000000000;; \    esac && \    echo checking $$type zones ... && \ -  tzpublic/int64_t/etc/zdump -V -t $$range $$zones \ -  >tzpublic/int64_t.out && \ -  tzpublic/$$type/etc/zdump -V -t $$range $$zones \ -  >tzpublic/$$type.out && \ -  diff -u tzpublic/int64_t.out tzpublic/$$type.out \ +  time_t.dir/int64_t/etc/zdump -V -t $$range $$zones \ +  >time_t.dir/int64_t.out && \ +  time_t.dir/$$type/etc/zdump -V -t $$range $$zones \ +  >time_t.dir/$$type.out && \ +  diff -u time_t.dir/int64_t.out time_t.dir/$$type.out \    || exit; \    done -  rm -fr tzpublic +  rm -fr time_t.dir    - tarballs: tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz + tarballs traditional_tarballs signatures traditional_signatures: version +  VERSION=`cat version` && \ +  $(MAKE) VERSION="$$VERSION" $@_version    -  + 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 $@    - signatures: tzcode$(VERSION).tar.gz.asc tzdata$(VERSION).tar.gz.asc + 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) +  LC_ALL=C && export LC_ALL && \ +  tar $(TARFLAGS) -cf - tzdb-$(VERSION) | lzip -9 >$@.out +  mv $@.out $@      tzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz    gpg --armor --detach-sign $?
663:   tzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz    gpg --armor --detach-sign $?    + tzdb-$(VERSION).tar.lz.asc: tzdb-$(VERSION).tar.lz +  gpg --armor --detach-sign $? +    typecheck:    $(MAKE) clean    for i in "long long" unsigned; \
688:   .PHONY: ALL INSTALL all   .PHONY: check check_character_set check_links   .PHONY: check_public check_sorted check_tables - .PHONY: check_time_t_alternatives check_web check_white_space clean clean_misc + .PHONY: check_time_t_alternatives check_tzs check_web check_white_space + .PHONY: clean clean_misc force_tzs   .PHONY: install install_data maintainer-clean names   .PHONY: posix_only posix_packrat posix_right - .PHONY: public right_only right_posix signatures tarballs typecheck + .PHONY: public right_only right_posix signatures signatures_version + .PHONY: tarballs tarballs_version typecheck   .PHONY: zonenames zones