[tor-bugs] #31264 [Applications/rbm]: tar.gz output files contain nonreproducible timestamps
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Jul 30 09:26:44 UTC 2019
#31264: tar.gz output files contain nonreproducible timestamps
------------------------------+-----------------------
Reporter: JeremyRand | Owner: boklm
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Applications/rbm | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
------------------------------+-----------------------
Comment (by boklm):
Replying to [comment:3 JeremyRand]:
> So, would a good solution be to patch
http://jqs44zhtxl2uo6gk.onion/builders/rbm.git/tree/lib/RBM/DefaultConfig.pm?id=e04f03f9626e993bb66d7784d258f95ca07bc769#n578
, replacing this:
>
> tar --no-recursion [% IF c('gnu_utils') -%]
>
> With this:
>
> GZIP="--no-name" tar --no-recursion [% IF c('gnu_utils') -%]
Yes, that would work.
An other place we should patch is the `maketar` function in `lib/RBM.pm`,
which is used to generate the source tarballs:
{{{
diff --git a/lib/RBM.pm b/lib/RBM.pm
index 75912af..087ebe3 100644
--- a/lib/RBM.pm
+++ b/lib/RBM.pm
@@ -582,7 +582,7 @@ sub maketar {
}
my %compress = (
xz => ['xz', '-f'],
- gz => ['gzip', '-f'],
+ gz => ['gzip', '--no-name', '-f'],
bz2 => ['bzip2', '-f'],
);
if (my $c = project_config($project, 'compress_tar', $options)) {
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31264#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list