Bug#860278: openigtlink: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Apr 13 21:47:46 UTC 2017


Source: openigtlink
Version: 1.11.0-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is due to it including the build path in the resulting binary.
As the OpenIGTLink_SOURCE_DIR variable is kinda useless anyway
(see the surrounding comment), we can just patch it out AFAICT.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible_build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible_build.patch	2017-04-13 22:40:48.186741142 +0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-04-13
+
+--- openigtlink-1.11.0.orig/GenerateOpenIGTLinkConfig.cmake
++++ openigtlink-1.11.0/GenerateOpenIGTLinkConfig.cmake
+@@ -14,7 +14,7 @@ SET(OpenIGTLink_CONFIG_CODE "
+ # it is highly probable that it will cause more harm than being useful. 
+ # Use OpenIGTLink_INCLUDE_DIRS instead, since OpenIGTLink_SOURCE_DIR may point to non-existent directory
+ IF(NOT OpenIGTLink_LEGACY_REMOVE)
+-  SET(OpenIGTLink_SOURCE_DIR \"${OpenIGTLink_SOURCE_DIR}\")
++  SET(OpenIGTLink_SOURCE_DIR \"/nonexistent\")
+ ENDIF(NOT OpenIGTLink_LEGACY_REMOVE)"
+ )
+ 
--- a/debian/patches/series	2017-04-13 22:35:22.277260413 +0100
--- b/debian/patches/series	2017-04-13 22:40:45.938730380 +0100
@@ -1 +1,2 @@
 install_path.patch
+reproducible_build.patch


More information about the debian-science-maintainers mailing list