Source: gnome-online-accounts
Version: 3.45.2-2
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpaths
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
gnome-online-accounts could not be built reproducibly.

This is because it uses @filename@ when generating .h files instead
of @basename@.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.patch   2022-09-08 09:58:17.430979484 
+0100
@@ -0,0 +1,72 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2022-09-08
+
+--- gnome-online-accounts-3.45.2.orig/src/goa/goaenumtypes.c.template
++++ gnome-online-accounts-3.45.2/src/goa/goaenumtypes.c.template
+@@ -5,7 +5,7 @@
+ /*** END file-header ***/
+ 
+ /*** BEGIN file-production ***/
+-/* enumerations from "@filename@" */
++/* enumerations from "@basename@" */
+ /*** END file-production ***/
+ 
+ /*** BEGIN value-header ***/
+--- gnome-online-accounts-3.45.2.orig/src/goa/goaenumtypes.h.template
++++ gnome-online-accounts-3.45.2/src/goa/goaenumtypes.h.template
+@@ -9,7 +9,7 @@ G_BEGIN_DECLS
+ 
+ /*** BEGIN file-production ***/
+ 
+-/* enumerations from "@filename@" */
++/* enumerations from "@basename@" */
+ /*** END file-production ***/
+ 
+ /*** BEGIN value-header ***/
+--- 
gnome-online-accounts-3.45.2.orig/src/goabackend/goabackendenumtypes.c.template
++++ gnome-online-accounts-3.45.2/src/goabackend/goabackendenumtypes.c.template
+@@ -5,7 +5,7 @@
+ /*** END file-header ***/
+ 
+ /*** BEGIN file-production ***/
+-/* enumerations from "@filename@" */
++/* enumerations from "@basename@" */
+ /*** END file-production ***/
+ 
+ /*** BEGIN value-header ***/
+--- 
gnome-online-accounts-3.45.2.orig/src/goabackend/goabackendenumtypes.h.template
++++ gnome-online-accounts-3.45.2/src/goabackend/goabackendenumtypes.h.template
+@@ -9,7 +9,7 @@ G_BEGIN_DECLS
+ 
+ /*** BEGIN file-production ***/
+ 
+-/* enumerations from "@filename@" */
++/* enumerations from "@basename@" */
+ /*** END file-production ***/
+ 
+ /*** BEGIN value-header ***/
+--- gnome-online-accounts-3.45.2.orig/src/goaidentity/goaidentityenumtypes.c.in
++++ gnome-online-accounts-3.45.2/src/goaidentity/goaidentityenumtypes.c.in
+@@ -5,8 +5,8 @@
+ /*** END file-header ***/
+ 
+ /*** BEGIN file-production ***/
+-#include "@filename@"
+-/* enumerations from "@filename@" */
++#include "@basename@"
++/* enumerations from "@basename@" */
+ /*** END file-production ***/
+ 
+ /*** BEGIN value-header ***/
+--- gnome-online-accounts-3.45.2.orig/src/goaidentity/goaidentityenumtypes.h.in
++++ gnome-online-accounts-3.45.2/src/goaidentity/goaidentityenumtypes.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     2022-09-08 09:38:17.682223220 +0100
--- b/debian/patches/series     2022-09-08 09:58:15.454973116 +0100
@@ -0,0 +1 @@
+reproducible-build.patch

Reply via email to