Source: intel-gpu-tools
Version: 1.24-1
Severity: wishlist
Tags: patch
User: reproducible-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
intel-gpu-tools could not be built reproducibly.

This is because it embedded the path to the test directory in the
binary. As we don't even build the tests (according to a comments,
they FTBFS...) my attached patch is almost-certainly harmless.

Patch attached.

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


Best wishes,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/0001_Reproducible-builds.patch     1969-12-31 
19:00:00.000000000 -0500
--- b/debian/patches/0001_Reproducible-builds.patch     2019-11-19 
12:58:31.782550136 -0500
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2019-11-19
+
+--- intel-gpu-tools-1.24.orig/lib/meson.build
++++ intel-gpu-tools-1.24/lib/meson.build
+@@ -112,7 +112,7 @@ if chamelium.found()
+       lib_sources += 'igt_chamelium_stream.c'
+ endif
+ 
+-srcdir = join_paths(meson.source_root(), 'tests')
++srcdir = join_paths('.', 'tests')
+ 
+ lib_version = vcs_tag(input : 'version.h.in', output : 'version.h',
+                     fallback : 'NO-GIT',
--- a/debian/patches/series     2019-11-19 10:28:42.584479614 -0500
--- b/debian/patches/series     2019-11-19 12:34:03.769612335 -0500
@@ -1 +1,2 @@
 #placeholder
+0001_Reproducible-builds.patch

Reply via email to