From 834876c5fb13dfaa102000e816e9052af139048c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 8 Jan 2021 10:24:42 +0200 Subject: Initial attempt (gzip -n and preserve post-processed manifest timestamp) 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). --- libbuild2/dist/module.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libbuild2/dist/module.hxx') 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 -- cgit v1.1