Page MenuHomePhabricator

[guix] Make x86_64-w64-mingw32 builds reproducible
ClosedPublic

Authored by PiRK on Mar 6 2024, 14:15.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC6218b29bc826: [guix] Make x86_64-w64-mingw32 builds reproducible
Summary
  • Set "SetDateSave off" in NSIS script

From https://nsis.sourceforge.io/Docs/Chapter4.html#flags

"This command sets the file date/time saving flag which is used by the
File command to determine whether or not to save the last write date and
time of the file, so that it can be restored on installation. Valid
flags are 'on' and 'off'. 'on' is the default."

This is a partial backport of core#17595
https://github.com/bitcoin/bitcoin/pull/17595/commits/acf4b3b3b5accf60a19441a0298ef27001b78e72

Test Plan

Run the build twice and compare the hashes

contrib/guix/guix-clean
HOSTS="x86_64-w64-mingw32" contrib/guix/guix-build &> ../guix-win.log1

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable