Repository navigation
tzdata: Use release timestamp for "now" tests - #582265
Closed
ARitz-Cracker wants to merge 1 commit into
Closed
ARitz-Cracker wants to merge 1 commit into
ARitz-Cracker wants to merge 1 commit into
Conversation
2 of 13 tasks
ARitz-Cracker
force-pushed
the
patch-1
branch
from
November 2, 2026 15:33
0dbb64a to
4a6467b
Compare
Contributor
|
Does it work for you? Fails for me just as it does without the change: |
Contributor
|
In contrast the following seems to work for me: --- a/pkgs/by-name/tz/tzdata/package.nix
+++ b/pkgs/by-name/tz/tzdata/package.nix
@@ -117,0 +118,11 @@ stdenv.mkDerivation (finalAttrs: {
+ preCheck = ''
+ # Releases 2026e and 2026f fail if built on or after 2026-11-01
+ # Mitigate this and potential future issues by testing with the release timestamp
+ # See: https://lists.iana.org/hyperkitty/list/[email protected]/message/WCIAEEDCPA5HT3LLJK6YQ6FH7ND5ORIK/
+ release_timestamp=$(awk '/^Release /{print $4, $5, $6; exit}' NEWS)
+ release_time_t=$(date -d"$release_timestamp" +%s)
+ checkFlagsArray+=(
+ "CHECK_NOW_TIMESTAMP=$release_time_t"
+ )
+ '';
+ |
Author
My bad, some weird caching thing must have happened with me before, re-running the build as you have sets |
Author
|
Anyway, I'm gonna close this since this specific solution isn't viable in all cases |
4 tasks done
uninsane
added a commit
to uninsane/nixpkgs
that referenced
this pull request
Nov 3, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
3 of 13 tasks
Contributor
@trofi i applied this and created a PR for it here. included you in the |
qcwallace
pushed a commit
to Qumulo/nixpkgs
that referenced
this pull request
Nov 3, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 4, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 5, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 6, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 7, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
wegank
pushed a commit
to loongson-community/nixpkgs
that referenced
this pull request
Nov 7, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]> (cherry picked from commit e3e93a8)
tm-drtina
pushed a commit
to awakesecurity/nixpkgs
that referenced
this pull request
Nov 9, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 13, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 13, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 14, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 15, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 15, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 18, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 22, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
al3xtjames
pushed a commit
to al3xtjames/nixpkgs
that referenced
this pull request
Nov 23, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]>
moeleak
pushed a commit
to moeleak/nixpkgs
that referenced
this pull request
Dec 1, 2026
fixes `nix-build -A tzdata` sourced from <NixOS#582265 (comment)> Co-authored-by: Sergei Trofimovich <[email protected]> (cherry picked from commit e3e93a8)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #582038
tzdata fails to build on or after 2026-11-01 due to the consequences of regions changing their timezones.
The time man himself, Paul Eggert, notes the following.
If timezone-related tests relative to "now" are expected to fail as regions change their timezones, then we perhaps should use the release timestamp in order to make the tests actually deterministic. This fix, (suggested by Claude Opus 5.5) uses the source timestamp as a means toward that end.
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.