guix/gnu/packages/patches/date-ignore-zonenow.patch
Josselin Poiret 2008a30d4c
gnu: date: Fix build with newer tzdata.
* gnu/packages/patches/date-ignore-zonenow.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/calendar.scm (date): Use it.

Change-Id: I29bdfb49237650706abd870f2b9875739d12c6d5
2024-08-31 10:44:56 +02:00

13 lines
671 B
Diff

Ignore the new zonenow.tab file introduced in tzdata 2023d.
diff -u a/src/tz.cpp b/src/tz.cpp
--- a/src/tz.cpp 2024-03-08 11:14:14.822488065 +0100
+++ b/src/tz.cpp 2024-03-08 11:47:12.105268426 +0100
@@ -2667,6 +2667,7 @@
strcmp(d->d_name, "right") == 0 ||
strcmp(d->d_name, "+VERSION") == 0 ||
strcmp(d->d_name, "zone.tab") == 0 ||
+ strcmp(d->d_name, "zonenow.tab") == 0 ||
strcmp(d->d_name, "zone1970.tab") == 0 ||
strcmp(d->d_name, "tzdata.zi") == 0 ||
strcmp(d->d_name, "leapseconds") == 0 ||