Source: gucharmap
Version: 1:12.0.1-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
gucharmap could not be built reproducibly.

This is because it includes the absolute build path in the generated
gucharmap-type-builtins.h file:

- /* enumerations from 
"/build/1st/gucharmap-13.0.1/obj-x86_64-linux-gnu/../gucharmap/gucharmap-charmap.h"
 */
+ /* enumerations from 
"/build/2/gucharmap-13.0.1/2nd/obj-x86_64-linux-gnu/../gucharmap/gucharmap-charmap.h"
 */

Patch attached that also makes the parralel change to the .c file,
even though this does not make a difference to the build but it feels
like the right thing to do.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/gucharmap/gucharmap-type-builtins.c.template 
b/gucharmap/gucharmap-type-builtins.c.template
index 9aafe85..fb78d12 100644
--- a/gucharmap/gucharmap-type-builtins.c.template
+++ b/gucharmap/gucharmap-type-builtins.c.template
@@ -6,7 +6,7 @@
 /*** END file-header ***/
 
 /*** BEGIN file-production ***/
-/* enumerations from "@filename@" */
+/* enumerations from "@basename@" */
 /*** END file-production ***/
 
 /*** BEGIN value-header ***/
diff --git a/gucharmap/gucharmap-type-builtins.h.template 
b/gucharmap/gucharmap-type-builtins.h.template
index 6774aa7..fe11900 100644
--- a/gucharmap/gucharmap-type-builtins.h.template
+++ b/gucharmap/gucharmap-type-builtins.h.template
@@ -14,7 +14,7 @@ G_BEGIN_DECLS
 
 /*** BEGIN file-production ***/
 
-/* enumerations from "@filename@" */
+/* enumerations from "@basename@" */
 /*** END file-production ***/
 
 /*** BEGIN value-header ***/

Reply via email to