[PKG-Openstack-devel] Bug#881157: designate: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Nov 8 10:50:59 UTC 2017


Source: designate
Version: 1:5.0.0-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that designate could not be built reproducibly.

In particular, the docs and the sample configuration file use the
absolute build path, although it is commented out. Thus, clearing
it in this patch should be safe.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/designate/__init__.py b/designate/__init__.py
index befb2d0..4a0b255 100644
--- a/designate/__init__.py
+++ b/designate/__init__.py
@@ -32,8 +32,7 @@ designate_opts = [
                help='Name of this node'),
     cfg.StrOpt(
         'pybasedir',
-        default=os.path.abspath(os.path.join(os.path.dirname(__file__),
-                                             '../')),
+        default='',
         help='Directory where the designate python module is installed'
     ),
     cfg.StrOpt('state-path', default='/var/lib/designate',


More information about the Openstack-devel mailing list