Source: calendarserver
Version: 5.2.2+dfsg-2
Severity: wishlist
Tags: patch


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

The problem is that support/ 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.

--- support/	2014-10-21 07:31:12.000000000 +0300
+++ support/	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:
Reproducible-builds mailing list

Reply via email to