]> Cypherpunks repositories - gostls13.git/commitdiff
lib/time: build with Ubuntu backward compatibility options
authorIan Lance Taylor <iant@golang.org>
Mon, 27 Jan 2025 18:21:57 +0000 (10:21 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 7 Feb 2025 01:10:15 +0000 (17:10 -0800)
Change-Id: I7e241eb602e45eea3c730793c14d8a5f666f9181
Reviewed-on: https://go-review.googlesource.com/c/go/+/644077
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>

lib/time/update.bash
lib/time/zoneinfo.zip

index 67cb016e79392fd519d2d62e3bd17cbe0a7f4767..940596fb11221f0104233d3633feeb8ff26ae839 100755 (executable)
@@ -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
index 6ba9ff6fd6afc9736c41c5ec2c3bfd1aa12a0f1b..f8099b1b494fc920c1bc181cf783431e6105f36a 100644 (file)
Binary files a/lib/time/zoneinfo.zip and b/lib/time/zoneinfo.zip differ