Source: rspamd
Version: 1.9.4-2
Severity: wishlist
Tags: patch
User: reproduciblec-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
rspamd could not be built reproducibly.

This is because the paths.lua file embeds the absolute build
directory. Patch attached. (Note that this does not make the
package entirely reproducible.)

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/002_reproducible-build.patch       1970-01-01 
01:00:00.000000000 +0100
--- b/debian/patches/002_reproducible-build.patch       2020-04-07 
16:20:12.571362242 +0100
@@ -0,0 +1,20 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2020-04-07
+
+--- rspamd-1.9.4.orig/contrib/lua-torch/torch7/paths.lua.in
++++ rspamd-1.9.4/contrib/lua-torch/torch7/paths.lua.in
+@@ -1,11 +1,11 @@
+ local paths = {}
+ 
+ paths.install_prefix = [[@Torch_INSTALL_PREFIX@]]
+-paths.install_bin = [[@Torch_INSTALL_BIN@]]
++paths.install_bin = [[/nonexitent]]
+ paths.install_man = [[@Torch_INSTALL_MAN@]]
+ paths.install_lib = [[@Torch_INSTALL_LIB@]]
+ paths.install_share = [[@Torch_INSTALL_SHARE@]]
+-paths.install_include = [[@Torch_INSTALL_INCLUDE@]]
++paths.install_include = [[/nonexitent]]
+ paths.install_cmake = [[@Torch_INSTALL_CMAKE@]]
+ 
+ return paths
--- a/debian/patches/series     2020-04-07 10:41:26.604196543 +0100
--- b/debian/patches/series     2020-04-07 16:20:11.723355291 +0100
@@ -1 +1,2 @@
 001_fix-perl-sheebang.patch
+002_reproducible-build.patch

Reply via email to