Source: gexiv2
Version: 0.10.8-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 gexiv2 could not be built reproducibly.

This is because the generated enums files contain the absolute build path.
The basename is sufficient in context. :)  Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/0001-reproducible-build.patch      1970-01-01 
01:00:00.000000000 +0100
--- b/debian/patches/0001-reproducible-build.patch      2018-03-02 
09:05:33.970231314 +0000
@@ -0,0 +1,26 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2018-03-02
+
+--- gexiv2-0.10.8.orig/gexiv2/gexiv2-enums.cpp.template
++++ gexiv2-0.10.8/gexiv2/gexiv2-enums.cpp.template
+@@ -3,7 +3,7 @@
+ 
+ /*** END file-header ***/
+ /*** BEGIN file-production ***/
+-/* enumerations from "@filename@" */
++/* enumerations from "@basename@" */
+ #include "@filename@"
+ /*** END file-production ***/
+ /*** BEGIN value-header ***/
+--- gexiv2-0.10.8.orig/gexiv2/gexiv2-enums.h.template
++++ gexiv2-0.10.8/gexiv2/gexiv2-enums.h.template
+@@ -9,7 +9,7 @@ G_BEGIN_DECLS
+ /*** END file-header ***/
+ 
+ /*** BEGIN file-production ***/
+-/* enumerations from @filename@ */
++/* enumerations from @basename@ */
+ 
+ /*** END file-production ***/
+ 
--- a/debian/patches/series     2018-03-02 08:57:58.725594673 +0000
--- b/debian/patches/series     2018-03-02 09:05:33.030231029 +0000
@@ -0,0 +1 @@
+0001-reproducible-build.patch

Reply via email to