summaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 13:54:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 13:54:47 +0000
commit6cff8518bd1a382de048e38205aef508ce5c0edb (patch)
treebc05e59dc130a8212f741635a9be267c6d4142e1 /debian/patches
parentAdding debian version 2024a-1. (diff)
downloadtzdata-6cff8518bd1a382de048e38205aef508ce5c0edb.tar.xz
tzdata-6cff8518bd1a382de048e38205aef508ce5c0edb.zip
Adding debian version 2024a-2.debian/2024a-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/series1
-rw-r--r--debian/patches/ziguard.awk-Move-link-to-link-feature-from-vanguard-to-ma.patch39
2 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c9692cd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+ziguard.awk-Move-link-to-link-feature-from-vanguard-to-ma.patch
diff --git a/debian/patches/ziguard.awk-Move-link-to-link-feature-from-vanguard-to-ma.patch b/debian/patches/ziguard.awk-Move-link-to-link-feature-from-vanguard-to-ma.patch
new file mode 100644
index 0000000..e788c38
--- /dev/null
+++ b/debian/patches/ziguard.awk-Move-link-to-link-feature-from-vanguard-to-ma.patch
@@ -0,0 +1,39 @@
+From: Benjamin Drung <benjamin.drung@canonical.com>
+Date: Wed, 3 Apr 2024 15:14:50 +0200
+Subject: ziguard.awk: Move link to link feature from vanguard to main
+ dataform
+
+When using BACKWARD=backward PACKRATDATA=backzone the symlinks might
+point to the incorrect file (e.g. Africa/Asmera points to Africa/Nairobi
+instead of Africa/Asmara).
+
+Move the link to link feature from vanguard to main dataform to produce
+correct symlink (e.g. Africa/Asmera -> Africa/Asmara) in this case.
+
+Forwarded: https://mm.icann.org/pipermail/tz/2024-April/058853.html
+---
+ ziguard.awk | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ziguard.awk b/ziguard.awk
+index 7a3404f..f6b8d24 100644
+--- a/ziguard.awk
++++ b/ziguard.awk
+@@ -340,7 +340,7 @@ function make_linkline(oldline, target, linkname, oldtarget, comment, \
+ return "Link\t" target "\t" replsuffix comment
+ }
+
+-/^Link/ && $4 == "#=" && DATAFORM == "vanguard" {
++/^Link/ && $4 == "#=" && (DATAFORM != "rearguard") {
+ $0 = make_linkline($0, $5, $3, $2)
+ }
+
+@@ -378,7 +378,7 @@ function cut_link_chains_short( \
+ }
+
+ END {
+- if (DATAFORM != "vanguard") {
++ if (DATAFORM == "rearguard") {
+ cut_link_chains_short()
+ }
+ for (i = 1; i <= NR; i++)