Source: wayfire
Version: 0.7.4-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
wayfire could not be built reproducibly.

This is because it embedded an absolute build path into a config.h
file. A patch is attached that fixes this value to a known/fixed
value — the absolute build path won't exist at runtime anyway, so
this is at least "no worse".

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1969-12-31 16:00:00.000000000 
-0800
--- b/debian/patches/reproducible-build.patch   2022-08-01 09:32:24.630250887 
-0700
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2022-08-01
+
+--- wayfire-0.7.4.orig/config.h.in
++++ wayfire-0.7.4/config.h.in
+@@ -3,7 +3,7 @@
+ 
+ #define INSTALL_PREFIX "@INSTALL_PREFIX@"
+ #define PLUGIN_PATH "@PLUGIN_PATH@"
+-#define WF_SRC_DIR "@WF_SRC_DIR@"
++#define WF_SRC_DIR "/nonexistent"
+ #define PLUGIN_XML_DIR "@PLUGIN_XML_DIR@"
+ #define SYSCONFDIR "@SYSCONFDIR@"
+ #define WF_DEFAULT_CONFIG_BACKEND "@DEFAULT_CONFIG_BACKEND@"
--- a/debian/patches/series     1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/series     2022-08-01 09:32:23.738249510 -0700
@@ -0,0 +1 @@
+reproducible-build.patch

Reply via email to