[Git][reproducible-builds/strip-nondeterminism][master] dh_strip_nondeterminism: use get_non_binnmu_date_epoch() when available.
Mattia Rizzolo (@mattia)
gitlab at salsa.debian.org
Sat Dec 11 14:45:44 UTC 2021
Mattia Rizzolo pushed to branch master at Reproducible Builds / strip-nondeterminism
Commits:
96fcd0f6 by Mattia Rizzolo at 2021-12-11T15:45:08+01:00
dh_strip_nondeterminism: use get_non_binnmu_date_epoch() when available.
Closes: #999665
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
1 changed file:
- bin/dh_strip_nondeterminism
Changes:
=====================================
bin/dh_strip_nondeterminism
=====================================
@@ -91,7 +91,16 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
find(\&testfile,$tmp);
next unless @nondeterministic_files;
- $File::StripNondeterminism::canonical_time = get_source_date_epoch();
+ # This has been introduced in debhelper/13.5.3 specifically for
+ # strip-nondeterminism. See https://bugs.debian.org/999665 for the
+ # background of get_non_binnmu_date_epoch().
+ if (eval "get_non_binnmu_date_epoch()") {
+ $File::StripNondeterminism::canonical_time
+ = get_non_binnmu_date_epoch();
+ $ENV{SOURCE_DATE_EPOCH} = get_non_binnmu_date_epoch()
+ } else {
+ $File::StripNondeterminism::canonical_time = get_source_date_epoch();
+ }
verbose_print("Using $File::StripNondeterminism::canonical_time as canonical time");
View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/commit/96fcd0f6391a8d05a30af2fb9b77f530b9f88adb
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/commit/96fcd0f6391a8d05a30af2fb9b77f530b9f88adb
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20211211/be630f59/attachment.htm>
More information about the rb-commits
mailing list