Bug#1015245: libshumate: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jul 18 11:46:50 BST 2022


Source: libshumate
Version: 1.0.0~alpha.1-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
libshumate could not be built reproducibly.

This is because the generated enumerations file embeds the full build
path via @filename@:

-/* enumerations from "/build/1st/libshumate-1.0.0~alpha.1/obj-x86_64-linux-gnu/../shumate/shumate-file-cache.h" */
+/* enumerations from "/build/2/libshumate-1.0.0~alpha.1/2nd/obj-x86_64-linux-gnu/../shumate/shumate-file-cache.h" */

Patch attached that uses @basename at .

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch	2022-07-18 11:40:28.347866061 +0100
@@ -0,0 +1,26 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2022-07-18
+
+--- libshumate-1.0.0~alpha.1.orig/shumate/shumate-enum-types.c.in
++++ libshumate-1.0.0~alpha.1/shumate/shumate-enum-types.c.in
+@@ -3,7 +3,7 @@
+ /*** END file-header ***/
+ 
+ /*** BEGIN file-production ***/
+-/* enumerations from "@filename@" */
++/* enumerations from "@basename@" */
+ /*** END file-production ***/
+ 
+ /*** BEGIN value-header ***/
+--- libshumate-1.0.0~alpha.1.orig/shumate/shumate-enum-types.h.in
++++ libshumate-1.0.0~alpha.1/shumate/shumate-enum-types.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	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series	2022-07-18 11:40:27.299862984 +0100
@@ -0,0 +1 @@
+reproducible-build.patch


More information about the pkg-gnome-maintainers mailing list