]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Make the build reproducible 1120/head
authorChris Lamb <lamby@debian.org>
Fri, 4 May 2018 15:39:03 +0000 (08:39 -0700)
committerChris Lamb <lamby@debian.org>
Fri, 4 May 2018 15:39:51 +0000 (08:39 -0700)
Whilst working on the Reproducible Builds effort [0], we noticed
that zstd could not be built reproducibly.

This is due to the manual page encoding the number of CPUs from the
build machine and thus varies across builds.

This was originally filed in Debian as #897904 [1].

 [0] https://reproducible-builds.org/
 [1] https://bugs.debian.org/897904

Signed-off-by: Chris Lamb <lamby@debian.org>
contrib/pzstd/Options.cpp

index d9b216b4295136ba4ff9617d2f0cad7e80ec5e31..1590d85ee8ae01540b491ee7cf6cb99436ba31e3 100644 (file)
@@ -85,7 +85,7 @@ void usage() {
   std::fprintf(stderr, "Usage:\n");
   std::fprintf(stderr, "  pzstd [args] [FILE(s)]\n");
   std::fprintf(stderr, "Parallel ZSTD options:\n");
-  std::fprintf(stderr, "  -p, --processes   #    : number of threads to use for (de)compression (default:%d)\n", defaultNumThreads());
+  std::fprintf(stderr, "  -p, --processes   #    : number of threads to use for (de)compression (default:<numcpus>)\n");
 
   std::fprintf(stderr, "ZSTD options:\n");
   std::fprintf(stderr, "  -#                     : # compression level (1-%d, default:%d)\n", kMaxNonUltraCompressionLevel, kDefaultCompressionLevel);