Source: gobject-introspection
Version: 1.62.0-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

Hi,

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

This is because it embeds the current build path, presumably for
some kind of testing. However, removing this does not cause the
tests to fail AFAICT, reflected in the attached patch.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible_build.path    1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible_build.path    2019-10-04 07:48:02.145894834 
+0100
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2019-10-04
+
+--- gobject-introspection-1.62.0.orig/girepository/girparser.c
++++ gobject-introspection-1.62.0/girepository/girparser.c
+@@ -309,10 +309,6 @@ locate_gir (GIrParser  *parser,
+   if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
+     return path;
+   g_free (path);
+-  path = g_build_filename (UNINSTALLED_GIR_DIR, girname, NULL);
+-  if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
+-    return path;
+-  g_free (path);
+   return NULL;
+ }
+ 
--- a/debian/patches/series     2019-10-04 07:34:31.784710477 +0100
--- b/debian/patches/series     2019-10-04 07:47:59.877873398 +0100
@@ -1 +1,2 @@
 multiarch_compat.patch
+reproducible_build.path

Reply via email to