Source: glance
Version: 1:11.0.0-3
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: environment
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed that
glance could not be built reproducibly.

The attached patch prevents the build system from persisting the number
of CPUs that are present to the sample configuration. This doesn't
actually affect the default performance as the line is commented out, so
the *runtime* environment detects the number of CPUs anyway.

Once applied, glance can be built reproducibly using our reproducible
toolchain.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2015-12-09 11:22:38.015365966 +0200
--- b/debian/rules      2015-12-09 11:31:25.844854835 +0200
@@ -55,6 +55,7 @@
        sed -i 's/^[ \t#]*auth_protocol[ \t]*=[ \t].*/auth_protocol = http/' 
$(CURDIR)/debian/glance-common/usr/share/glance-common/glance-api.conf
        sed -i 's|^[ \t#]*filesystem_store_datadir[ \t]*=[ 
\t].*|filesystem_store_datadir = /var/lib/glance/images|' 
$(CURDIR)/debian/glance-common/usr/share/glance-common/glance-api.conf
        sed -i 's|^[ \t#]*lock_path[ \t]*=[ \t].*|lock_path = 
/var/lock/glance|' 
$(CURDIR)/debian/glance-common/usr/share/glance-common/glance-api.conf
+       sed -i 's|^[ \t#]*workers[ \t]*=[ \t].*|#workers = 2|' 
$(CURDIR)/debian/glance-common/usr/share/glance-common/glance-api.conf
 
        PYTHONPATH=. oslo-config-generator --output-file 
$(CURDIR)/debian/glance-common/usr/share/glance-common/glance-registry.conf \
                --namespace glance.registry \
@@ -68,6 +69,7 @@
                --namespace oslo.log
        sed -i 's/^[ \t#]*auth_protocol[ \t]*=[ \t].*/auth_protocol = http/' 
$(CURDIR)/debian/glance-common/usr/share/glance-common/glance-registry.conf
        sed -i 's|^[ \t#]*filesystem_store_datadir[ \t]*=[ 
\t].*|filesystem_store_datadir = /var/lib/glance/images|' 
$(CURDIR)/debian/glance-common/usr/share/glance-common/glance-registry.conf
+       sed -i 's|^[ \t#]*workers[ \t]*=[ \t].*|#workers = 2|' 
$(CURDIR)/debian/glance-common/usr/share/glance-common/glance-registry.conf
 
        PYTHONPATH=. oslo-config-generator --output-file 
$(CURDIR)/debian/glance-common/usr/share/glance-common/glance-cache.conf \
                --namespace glance.cache \
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to