Source: calendarserver
Version: 5.2.2+dfsg-2
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that calendarserver could not be built reproducibly.

The problem is that support/version.py expects that the output from
"svnversion -n" is in English, but it may be in any language depending
on the locale of the build environment. Here is a patch that sets
LC_ALL=C for the call to svnversion to fix it.

 [1]: https://wiki.debian.org/ReproducibleBuilds
--- support/version.py.orig	2014-10-21 07:31:12.000000000 +0300
+++ support/version.py	2015-10-26 15:42:28.191081976 +0200
@@ -40,7 +40,7 @@
     source_root = dirname(dirname(__file__))
 
     for branch in branches:
-        svn_revision = subprocess.check_output(["svnversion", "-n", source_root, branch])
+        svn_revision = subprocess.check_output(["LC_ALL=C", "svnversion", "-n", source_root, branch], shell=True)
 
         if "S" in svn_revision:
             continue

Reply via email to