Source: xpra
Version: 0.15.8+dfsg-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

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

The attached patch tells date to interpret the changelog date as UTC.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/buildinfo.patch b/debian/patches/buildinfo.patch
index d504895..9480189 100644
--- a/debian/patches/buildinfo.patch
+++ b/debian/patches/buildinfo.patch
@@ -31,8 +31,8 @@ Description: customise build info
 -        set_prop(props, "BUILD_CPU", get_cpuinfo())
 +        set_prop(props, "BUILT_BY", "Debian")
 +        set_prop(props, "BUILT_ON", "Debian")
-+        set_prop(props, "BUILD_DATE", subprocess.Popen("date --date=\"$(dpkg-parsechangelog -SDate)\" +%F", stdin=None, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True).stdout.read()[:-1])
-+        set_prop(props, "BUILD_TIME", subprocess.Popen("date --date=\"$(dpkg-parsechangelog -SDate)\" +%R", stdin=None, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True).stdout.read()[:-1])
++        set_prop(props, "BUILD_DATE", subprocess.Popen("date -u --date=\"$(dpkg-parsechangelog -SDate)\" +%F", stdin=None, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True).stdout.read()[:-1])
++        set_prop(props, "BUILD_TIME", subprocess.Popen("date -u --date=\"$(dpkg-parsechangelog -SDate)\" +%R", stdin=None, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True).stdout.read()[:-1])
 +        set_prop(props, "BUILD_CPU", "Generic CPU")
          set_prop(props, "BUILD_BIT", platform.architecture()[0])
          set_prop(props, "BUILD_OS", get_platform_name())
_______________________________________________
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