diff --git a/extra/tzdata/build b/extra/tzdata/build index 0685a003..7585a791 100755 --- a/extra/tzdata/build +++ b/extra/tzdata/build @@ -1,5 +1,7 @@ #!/bin/sh -e +patch -p1 < awk.patch + make make DESTDIR="$1" ZICDIR=/usr/bin install diff --git a/extra/tzdata/checksums b/extra/tzdata/checksums index 2d8da0d5..f95cb7ba 100644 --- a/extra/tzdata/checksums +++ b/extra/tzdata/checksums @@ -1 +1,2 @@ -e9d82a851a15bb5db2cbaae2c3fc633743ad9edc069e3738c5e8908978064ed8 +5da3fd3eb51d51d2aa4c599db8a1dd8dff453d79f4881131e35d40707ae1f838 +5fb0497a5a004d182f33a5e49e6a6f10a1c2db29c208363c7eefde8fc009b383 diff --git a/extra/tzdata/patches/awk.patch b/extra/tzdata/patches/awk.patch new file mode 100644 index 00000000..dcf7ab4e --- /dev/null +++ b/extra/tzdata/patches/awk.patch @@ -0,0 +1,22 @@ +diff --git a/ziguard.awk b/ziguard.awk +index 0728baa..9b3f2f8 100644 +--- a/ziguard.awk ++++ b/ziguard.awk +@@ -165,7 +165,7 @@ DATAFORM != "main" { + sub(/[-+][^\t ]+CHANGE-TO-/, "") + } else { + if (/^[^#]*%z/) { +- stdoff_column = 2 * /^Zone/ + 1 ++ stdoff_column = 2 * int(/^Zone/) + 1 + rules_column = stdoff_column + 1 + stdoff = get_minutes($stdoff_column) + rules = $rules_column +@@ -222,7 +222,7 @@ DATAFORM != "main" { + stdoff_subst[1] = rounded_stdoff + } + } else if (stdoff_subst[0]) { +- stdoff_column = 2 * /^Zone/ + 1 ++ stdoff_column = 2 * int(/^Zone/) + 1 + stdoff_column_val = $stdoff_column + if (stdoff_column_val == stdoff_subst[0]) { + sub(stdoff_subst[0], stdoff_subst[1]) diff --git a/extra/tzdata/sources b/extra/tzdata/sources index ef6466ba..990f92d2 100644 --- a/extra/tzdata/sources +++ b/extra/tzdata/sources @@ -1 +1,2 @@ https://github.com/eggert/tz/archive/VERSION.tar.gz +patches/awk.patch diff --git a/extra/tzdata/version b/extra/tzdata/version index affee6b4..96588fd9 100644 --- a/extra/tzdata/version +++ b/extra/tzdata/version @@ -1 +1 @@ -2022a 1 +2022b 1