From: Ian Lance Taylor Date: Mon, 27 Jan 2025 18:21:57 +0000 (-0800) Subject: lib/time: build with Ubuntu backward compatibility options X-Git-Tag: go1.25rc1~1143 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=637c235b510a885622cdbb914ad9e0d4bbce9a14;p=gostls13.git lib/time: build with Ubuntu backward compatibility options Change-Id: I7e241eb602e45eea3c730793c14d8a5f666f9181 Reviewed-on: https://go-review.googlesource.com/c/go/+/644077 LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Knyszek Reviewed-by: Damien Neil Auto-Submit: Ian Lance Taylor --- diff --git a/lib/time/update.bash b/lib/time/update.bash index 67cb016e79..940596fb11 100755 --- a/lib/time/update.bash +++ b/lib/time/update.bash @@ -40,7 +40,12 @@ curl -sS -L -O https://www.iana.org/time-zones/repository/releases/tzdata$DATA.t tar xzf tzcode$CODE.tar.gz tar xzf tzdata$DATA.tar.gz -if ! make CFLAGS=-DSTD_INSPIRED AWK=awk TZDIR=zoneinfo posix_only >make.out 2>&1; then +# The PACKRATLIST and PACKRATDATA options are copied from Ubuntu: +# https://git.launchpad.net/ubuntu/+source/tzdata/tree/debian/rules?h=debian/sid +# +# You can see the description of these make variables in the tzdata Makefile: +# https://github.com/eggert/tz/blob/main/Makefile +if ! make CFLAGS=-DSTD_INSPIRED AWK=awk TZDIR=zoneinfo PACKRATDATA=backzone PACKRATLIST=zone.tab posix_only >make.out 2>&1; then cat make.out exit 2 fi diff --git a/lib/time/zoneinfo.zip b/lib/time/zoneinfo.zip index 6ba9ff6fd6..f8099b1b49 100644 Binary files a/lib/time/zoneinfo.zip and b/lib/time/zoneinfo.zip differ