Bug#891897: gexiv2: please make the build reproducible

2018-03-02 Thread Chris Lamb
forwarded 891897 https://bugzilla.gnome.org/show_bug.cgi?id=793984
thanks

I've forwarded this upstream here:

  https://bugzilla.gnome.org/show_bug.cgi?id=793984


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#891897: gexiv2: please make the build reproducible

2018-03-02 Thread Chris Lamb
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.0 +0100
--- b/debian/patches/0001-reproducible-build.patch  2018-03-02 
09:05:33.970231314 +
@@ -0,0 +1,26 @@
+Description: Make the build reproducible
+Author: Chris Lamb 
+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 +
--- b/debian/patches/series 2018-03-02 09:05:33.030231029 +
@@ -0,0 +1 @@
+0001-reproducible-build.patch