Source: cloudkitty Version: 11.0.1-2 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: environment X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0] we noticed that cloudkitty could not be built reproducibly. This is because it embeds the current CPU count (and similar) in cloudkitty.conf under the /usr/share/cloudkitty-common directory. A patch is attached that uses the `sample_default` mechanism. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible-build.patch 2020-03-30 16:05:47.523300533 +0100 @@ -0,0 +1,20 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2020-03-30 + +--- cloudkitty-11.0.1.orig/cloudkitty/orchestrator.py ++++ cloudkitty-11.0.1/cloudkitty/orchestrator.py +@@ -57,11 +57,13 @@ orchestrator_opts = [ + cfg.IntOpt( + 'max_workers', + default=multiprocessing.cpu_count(), ++ sample_default="1", + min=1, + help='Max nb of workers to run. Defaults to the nb of available CPUs'), + cfg.IntOpt('max_threads', + # NOTE(peschk_l): This is the futurist default + default=multiprocessing.cpu_count() * 5, ++ sample_default=5, + min=1, + deprecated_name='max_greenthreads', + advanced=True, --- a/debian/patches/series 2020-03-30 15:55:24.246790299 +0100 --- b/debian/patches/series 2020-03-30 16:05:46.087298935 +0100 @@ -1,2 +1,3 @@ missing-files.patch remove-mathjax-extention-from-sphinx-doc.patch +reproducible-build.patch