Source: gdk-pixbuf
Version: 2.36.12-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 gdk-pixbuf could not be built reproducibly.

This is because "@filename@" gets expanded to the full, absolute path
name. Patch attached that uses "@basename@" instead.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/gdk-pixbuf/gdk-pixbuf-enum-types.c.template       2018-09-08 
10:35:57.774540239 +0100
--- b/gdk-pixbuf/gdk-pixbuf-enum-types.c.template       2018-09-08 
10:43:51.053523569 +0100
@@ -6,7 +6,7 @@
 /*** END file-header ***/
 
 /*** BEGIN file-production ***/
-/* enumerations from "@filename@" */
+/* enumerations from "@basename@" */
 /*** END file-production ***/
 
 /*** BEGIN value-header ***/
--- a/gdk-pixbuf/gdk-pixbuf-enum-types.h.template       2018-09-08 
10:35:57.774540239 +0100
--- b/gdk-pixbuf/gdk-pixbuf-enum-types.h.template       2018-09-08 
10:43:51.033523444 +0100
@@ -15,7 +15,7 @@
 
 /*** BEGIN file-production ***/
 
-/* enumerations from "@filename@" */
+/* enumerations from "@basename@" */
 /*** END file-production ***/
 
 /*** BEGIN value-header ***/
--- a/gdk-pixbuf/makefile.msc   2018-09-08 10:35:57.774540239 +0100
--- b/gdk-pixbuf/makefile.msc   2018-09-08 10:43:50.997523217 +0100
@@ -162,7 +162,7 @@
 gdk-pixbuf-enum-types.h : $(gdk_pixbuf_headers) makefile.msc
        $(PERL) $(GLIB)\gobject\glib-mkenums \
                --fhead "#ifndef __GDK_PIXBUF__ENUM_TYPES_H__\n#define 
__GDK_PIXBUF_ENUM_TYPES_H__\n" \
-               --fprod "/* enumerations from \"@filename@\" */\n" \
+               --fprod "/* enumerations from \"@basename@\" */\n" \
                --vhead "GType @enum_name@_get_type (void);\n#define 
GDK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
                --ftail "#endif /* __GDK_PIXBUF_ENUM_TYPES_H__ */" \
                $(gdk_pixbuf_headers) ) > gdk-pixbuf-enum-types.h
@@ -173,7 +173,7 @@
 gdk-pixbuf-enum-types.c: $(gdk_pixbuf_headers) makefile.msc
        $(PERL) $(GLIB)\gobject\glib-mkenums \
                --fhead "#include <gdk-pixbuf/gdk-pixbuf.h>" \
-               --fprod "\n/* enumerations from \"@filename@\" */" \
+               --fprod "\n/* enumerations from \"@basename@\" */" \
                --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType 
etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"    
   \
                --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" 
}," \
                --vtail "      { 0, NULL, NULL }\n    };\n    etype = 
g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \

Reply via email to