[packages/tzdata] - pin now.ck clock to release time (fails after 2026-11-01 Canada changes, as upstream advises); rel
adamg
adamg at pld-linux.org
Mon Nov 16 16:04:47 CET 2026
commit d1d55b26c6d2ebc26e253182db17c1768c56a1b5
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date: Mon Nov 16 16:04:43 2026 +0100
- pin now.ck clock to release time (fails after 2026-11-01 Canada changes, as upstream advises); rel 2
tzdata.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/tzdata.spec b/tzdata.spec
index 1889f42..1b236a5 100644
--- a/tzdata.spec
+++ b/tzdata.spec
@@ -18,7 +18,7 @@ Summary: Timezone data
Summary(pl.UTF-8): Dane o strefach czasowych
Name: tzdata
Version: 2026f
-Release: 1
+Release: 2
License: Public Domain (database), BSD/LGPL v2.1+ (code/test suite)
Group: Base
#Source0Download: https://www.iana.org/time-zones
@@ -190,10 +190,12 @@ install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{_mandir}/man5,%{_inclu
: ====================TESTING=========================
# now.ck computes timestamps past 2^31 in $(( )), mksh arithmetic is 32-bit
+# now.ck is date-dependent: pin its clock to the release time (as upstream advises)
%{__make} check \
CC="%{__cc}" \
CFLAGS="%{rpmcflags} %{rpmldflags}" \
- SHELL=/bin/bash
+ SHELL=/bin/bash \
+ CHECK_NOW_TIMESTAMP=$(date -d $(awk '/^Release /{print $4 "T" $5 $6; exit}' NEWS) +%s)
: ====================TESTING END=====================
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tzdata.git/commitdiff/d1d55b26c6d2ebc26e253182db17c1768c56a1b5
More information about the pld-cvs-commit
mailing list