From e27d476a652874ad8556fcdb06d877ebabb3e9c7 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 13 Nov 2012 22:25:45 +0000 Subject: [PATCH] Update tzcode from upstream git and support --with-bugurl for it. --- ChangeLog | 9 +++++++++ timezone/Makefile | 6 ++++-- timezone/tzselect.ksh | 10 ++++++---- timezone/zdump.c | 6 +++--- timezone/zic.c | 10 +++++----- 5 files changed, 27 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index cfb5a29e77..76d5e82388 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2012-11-13 Joseph Myers + * timezone/tzselect.ksh: Update from tzcode git revision + a435f9f0ecafa56d9e0263835836bd0c64cd7307. + * timezone/zdump.c: Likewise. + * timezone/zic.c: Likewise. + * timezone/Makefile ($(objpfx)version.h): Only include $(version) + in TZVERSION setting, not $(PKGVERSION). + ($(objpfx)tzselect): Likewise. Also substitute PKGVERSION and + REPORT_BUGS_TO settings. + [BZ #14838] * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define macro. diff --git a/timezone/Makefile b/timezone/Makefile index 87b03e2c5f..a1da8fa56c 100644 --- a/timezone/Makefile +++ b/timezone/Makefile @@ -57,7 +57,7 @@ $(objpfx)zic: $(objpfx)scheck.o $(objpfx)ialloc.o $(objpfx)zic.o $(objpfx)zdump.o: $(objpfx)version.h $(objpfx)version.h: $(common-objpfx)config.make - echo 'static char const TZVERSION[]="$(PKGVERSION)$(version)";' \ + echo 'static char const TZVERSION[]="$(version)";' \ > $@.new mv -f $@.new $@ @@ -115,7 +115,9 @@ $(testdata)/Asia/Tokyo: asia $(zic-deps) $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make sed -e 's|/bin/bash|$(KSH)|g' \ -e '/TZDIR=/s|\$$(pwd)|$(zonedir)|' \ - -e '/TZVERSION=/s|see_Makefile|"$(PKGVERSION)$(version)"|' \ + -e '/TZVERSION=/s|see_Makefile|"$(version)"|' \ + -e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \ + -e '/REPORT_BUGS_TO=/s|=.*|="$(REPORT_BUGS_TO)"|' \ < $< > $@.new chmod 555 $@.new mv -f $@.new $@ diff --git a/timezone/tzselect.ksh b/timezone/tzselect.ksh index 4fe5d02ba1..8e66b44273 100644 --- a/timezone/tzselect.ksh +++ b/timezone/tzselect.ksh @@ -1,6 +1,8 @@ #!/bin/bash +PKGVERSION='(tzcode) ' TZVERSION=see_Makefile +REPORT_BUGS_TO=tz@iana.org # Ask the user about the time zone, and output the resulting TZ value to stdout. # Interact with the user via stderr and stdin. @@ -43,14 +45,14 @@ if [ "$1" = "--help" ]; then Usage: tzselect Select a time zone interactively. -Report bugs to tz@elsie.nci.nih.gov. +Report bugs to $REPORT_BUGS_TO. EOF - exit 0 + exit elif [ "$1" = "--version" ]; then cat < 3) -mp = _("time zone abbreviation has more than 3 alphabetics"); + if (noise && cp - string < 3) +mp = _("time zone abbreviation has fewer than 3 alphabetics"); if (cp - string > ZIC_MAX_ABBR_LEN_WO_WARN) mp = _("time zone abbreviation has too many alphabetics"); if (mp == NULL && (*cp == '+' || *cp == '-')) {