aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/dist/module.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-01-08 10:24:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-01-08 10:24:42 +0200
commit834876c5fb13dfaa102000e816e9052af139048c (patch)
treeb07b7670ce555ad50415d811885ea46ae89a533f /libbuild2/dist/module.hxx
parenta8017ff4b661305a71fe98813d0118b6c3876c52 (diff)
Initial attempt (gzip -n and preserve post-processed manifest timestamp)reproducible-dist
Turns our this is not enough since tar saves timestamps (as well as owner information, file order, etc) including for directories and getting rid of that in a portable way is not going to be easy. Looks like the most plausible way would be to switch to embedded libarchive (provided it's possible to achieve everything we need).
Diffstat (limited to 'libbuild2/dist/module.hxx')
-rw-r--r--libbuild2/dist/module.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbuild2/dist/module.hxx b/libbuild2/dist/module.hxx
index 314dc96..e1af9fc 100644
--- a/libbuild2/dist/module.hxx
+++ b/libbuild2/dist/module.hxx
@@ -59,6 +59,10 @@ namespace build2
// Note also that in the bootstrap distribution mode only callbacks
// registered during bootstrap will be called.
//
+ // If the callback is doing some sort of post-processing, then you may
+ // want to consider preserving the timestamps of the files being
+ // modified in order produce the same archive for the same distribution.
+ //
using callback_func = void (const path&, const scope&, void*);
void