Source: winswitch Version: 0.12.21+dfsg-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi, Whilst working on the "reproducible builds" effort [0], we noticed that winswitch could not be built reproducibly. Patch attached. [0] https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/buildinfo.patch 2016-08-11 17:18:31.434878443 +0100 --- b/debian/patches/buildinfo.patch 2016-08-11 17:26:35.902898767 +0100 @@ -38,7 +38,7 @@ - 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_DATE", subprocess.Popen("date --utc --date=\"$(dpkg-parsechangelog -SDate)\" +%F", 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, "RELEASE_BUILD", not bool(os.environ.get("BETA"))) --- a/winswitch/add_build_info.py 2016-08-11 17:18:31.426878376 +0100 --- b/winswitch/add_build_info.py 2016-08-11 17:26:28.766839798 +0100 @@ -149,7 +149,7 @@ props = get_existing_properties() 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_DATE", subprocess.Popen("date --utc --date=\"$(dpkg-parsechangelog -SDate)\" +%F", 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, "RELEASE_BUILD", not bool(os.environ.get("BETA")))