Source: cloudkitty
Version: 11.0.0-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 number of CPUs of the build host in the
sample configuration. Patch attached that uses oslo-config's
sample_default instead.

 [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   2019-10-22 10:56:27.050521261 
+0100
@@ -0,0 +1,20 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2019-10-22
+
+--- cloudkitty-11.0.0.orig/cloudkitty/orchestrator.py
++++ cloudkitty-11.0.0/cloudkitty/orchestrator.py
+@@ -57,11 +57,13 @@ orchestrator_opts = [
+     cfg.IntOpt(
+         'max_workers',
+         default=multiprocessing.cpu_count(),
++        sample_default=4,
+         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=20,
+                min=1,
+                deprecated_name='max_greenthreads',
+                advanced=True,
--- a/debian/patches/series     2019-10-22 10:41:15.533024624 +0100
--- b/debian/patches/series     2019-10-22 10:56:25.978511313 +0100
@@ -1,2 +1,3 @@
 missing-files.patch
 remove-mathjax-extention-from-sphinx-doc.patch
+reproducible-build.patch

Reply via email to