Source: xdotool
Version: 1:3.20150503.1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that xdotool could not be built reproducibly.
The attached patch removes timestamps from the build system. Once
applied, xdotool can be built reproducibly in our reproducible
toolchain.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/patches/0003-reproducible-build.patch 1970-01-01
01:00:00.000000000 +0100
--- b/debian/patches/0003-reproducible-build.patch 2015-08-17
07:46:08.503236716 +0100
@@ -0,0 +1,11 @@
+--- xdotool-3.20150503.1.orig/version.sh
++++ xdotool-3.20150503.1/version.sh
+@@ -6,7 +6,7 @@ fi
+
+ if [ -z "$MAJOR" -o -z "$RELEASE" -o -z "$REVISION" ] ; then
+ MAJOR="3"
+- RELEASE="$(date +%Y%m%d)"
++ RELEASE="$(date --utc --date=@$SOURCE_DATE_EPOCH +%Y%m%d)"
+ REVISION=1
+ #$([ -d .svn ] && svn info . | awk '/Revision:/ {print $2}')
+ : ${REVISION=:0}
--- a/debian/patches/series 2015-08-17 07:40:21.509097197 +0100
--- b/debian/patches/series 2015-08-17 07:46:02.155336542 +0100
@@ -1,2 +1,3 @@
0001-preserve-xdo_t-abi.patch
0002-Add-new-command-windowclose-that-does-XDestroyWindow.patch
+0003-reproducible-build.patch