Bug#992773: spirv-cross: please make the build reproducible
Source: spirv-cross
Version: 2021.01.15-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
spirv-cross could not be built reproducibly.
This is because it embeds a timestamp via CMake. As the timestamp is
not very useful in this particular context (it is positioned next to
an "unknown" Git commit), a patch is attached that simply replaces
the entire thing with a string that denotes that the binary is from
the Debian package.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
--- a/debian/patches/0001-reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/0001-reproducible-build.patch 2021-08-23 09:23:00.567312730 +0100
@@ -0,0 +1,14 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby@debian.org>
+Last-Update: 2021-08-23
+
+--- spirv-cross-2021.01.15.orig/cmake/gitversion.in.h
++++ spirv-cross-2021.01.15/cmake/gitversion.in.h
+@@ -1,6 +1,6 @@
+ #ifndef SPIRV_CROSS_GIT_VERSION_H_
+ #define SPIRV_CROSS_GIT_VERSION_H_
+
+-#define SPIRV_CROSS_GIT_REVISION "Git commit: @spirv-cross-build-version@ Timestamp: @spirv-cross-timestamp@"
++#define SPIRV_CROSS_GIT_REVISION "(Debian package)"
+
+ #endif
--- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series 2021-08-23 09:22:59.659300774 +0100
@@ -0,0 +1 @@
+0001-reproducible-build.patch
Reply to: