Source: nova
Version: 2:17.0.0~rc1-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that nova could not be built reproducibly as the docs etc contain
the absolute build path.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1969-12-31 16:00:00.000000000 
-0800
--- b/debian/patches/reproducible-build.patch   2018-03-08 16:02:34.172527581 
-0800
@@ -0,0 +1,14 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2018-03-08
+
+--- nova-17.0.0~rc1.orig/nova/conf/paths.py
++++ nova-17.0.0~rc1/nova/conf/paths.py
+@@ -22,6 +22,7 @@ from oslo_config import cfg
+ 
+ ALL_OPTS = [
+     cfg.StrOpt('pybasedir',
++        sample_default='<Path>',
+         default=os.path.abspath(os.path.join(os.path.dirname(__file__),
+                                              '../../')),
+         help="""
--- a/debian/patches/series     2018-03-08 15:12:30.939719515 -0800
--- b/debian/patches/series     2018-03-08 16:02:32.928431102 -0800
@@ -3,3 +3,4 @@
 python3-fix-for-sphinx-doc.patch
 Fix_PatternPropertiesTestCase_for_py3.6.patch
 remove-crashing-blockdiag-doc-line.patch
+reproducible-build.patch

Reply via email to