Source: libchamplain
Version: 0.12.19-2
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 libchamplain could not be built reproducibly. This is because
it used the absolute build path in the comments of the .h files
generated my glib-mkenums.

Patch attached. It also changes the equivalent .c file for
completeness but this is not strictly required.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/02-reproducible_build.patch        1969-12-31 
16:00:00.000000000 -0800
--- b/debian/patches/02-reproducible_build.patch        2019-08-13 
08:21:25.544666910 -0700
@@ -0,0 +1,26 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2019-08-13
+
+--- libchamplain-0.12.19.orig/champlain/champlain-enum-types.c.in
++++ libchamplain-0.12.19/champlain/champlain-enum-types.c.in
+@@ -6,7 +6,7 @@
+ /*** END file-header ***/
+ 
+ /*** BEGIN file-production ***/
+-/* enumerations from "@filename@" */
++/* enumerations from "@basename@" */
+ /*** END file-production ***/
+ 
+ /*** BEGIN value-header ***/
+--- libchamplain-0.12.19.orig/champlain/champlain-enum-types.h.in
++++ libchamplain-0.12.19/champlain/champlain-enum-types.h.in
+@@ -9,7 +9,7 @@ G_BEGIN_DECLS
+ 
+ /*** BEGIN file-production ***/
+ 
+-/* enumerations from "@filename@" */
++/* enumerations from "@basename@" */
+ /*** END file-production ***/
+ 
+ /*** BEGIN value-header ***/
--- a/debian/patches/series     2019-08-13 08:13:26.746869351 -0700
--- b/debian/patches/series     2019-08-13 08:21:24.368660692 -0700
@@ -1 +1,2 @@
 01-fix_gtk-doc_module_name.patch
+02-reproducible_build.patch

Reply via email to