summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:36:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:36:16 +0000
commit8a88d5d1ed5308b49c5e2e6027749d6300d96121 (patch)
tree8b8bbe8826b345d4c3d4b7cf153923ce3e7dd7b8 /debian/rules
parentAdding debian version 2024a-3. (diff)
downloadtzdata-debian/2024a-4.tar.xz
tzdata-debian/2024a-4.zip
Adding debian version 2024a-4.debian/2024a-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules6
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index 06ceafc..50fe8c3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,8 +17,10 @@ override_dh_auto_build-indep:
# Replace hardlinks by symlinks
grep '^L ' $(CURDIR)/tzdata.zi | while read L target name ; do \
- ln -srf $(TZGEN)/$$target $(TZGEN)/$$name ; \
- ln -srf $(TZGEN)/right/$$target $(TZGEN)/right/$$name ; \
+ absolute_name="$(TZGEN)/$$name"; \
+ relative_target=$$(realpath -m -s --relative-to="$${absolute_name%/*}" "$(TZGEN)/$$target"); \
+ ln -sf "$$relative_target" "$(TZGEN)/$$name" ; \
+ ln -sf "$$relative_target" "$(TZGEN)/right/$$name" ; \
done
# Generate a posixrules file