Source: font-manager
Version: 0.7.3-1.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
font-manager could not be built reproducibly.

This is because it embeds @abs_top_srcdir@ [1] into the final executable
when attempting (presumably at runtime?) to load GConf settings:

│ │ │ │ │    0x00549710 4e6f2073 6368656d 61207769 74682069 No schema with i
│ │ │ │ │    0x00549720 64202573 20696e20 64656661 756c7420 d %s in default 
│ │ │ │ │ -  0x00549730 736f7572 63650000 2f627569 6c642f31 source../build/1
│ │ │ │ │ -  0x00549740 73742f66 6f6e742d 6d616e61 6765722d st/font-manager-
│ │ │ │ │ -  0x00549750 302e372e 372f6f62 6a2d7838 365f3634 0.7.7/obj-x86_64
│ │ │ │ │ -  0x00549760 2d6c696e 75782d67 6e752f64 61746100 -linux-gnu/data.
│ │ │ │ │ +  0x00549730 736f7572 63650000 2f627569 6c642f32 source../build/2
│ │ │ │ │ +  0x00549740 2f666f6e 742d6d61 6e616765 722d302e /font-manager-0.
│ │ │ │ │ +  0x00549750 372e372f 326e642f 6f626a2d 7838365f 7.7/2nd/obj-x86_
│ │ │ │ │ +  0x00549760 36342d6c 696e7578 2d676e75 2f646174 64-linux-gnu/dat
│ │ │ │ │ +  0x00549770 61000000 00000000 536b6970 70696e67 a.......Skipping

As this is not going to work at runtime, I have attached a patch that
removes the reference to @abs_top_srcdir@. I am assuming this will
have no effect on build-time tests so you may wish to check this.

 [0] https://reproducible-builds.org/
 [1] 
https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Preset-Output-Variables.html


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
Description: Make the build reproducible
Author: Chris Lamb <la...@debian.org>
Last-Update: 2020-03-26

--- font-manager-0.7.3.orig/lib/Common/Settings.vala.in
+++ font-manager-0.7.3/lib/Common/Settings.vala.in
@@ -22,8 +22,7 @@
 */
 
 const string [] POSSIBLE_SCHEMA_DIRS = {
-    "@prefix@/share/glib-2.0/schemas",
-    "@abs_top_srcdir@/data"
+    "@prefix@/share/glib-2.0/schemas"
 };
 
 public Settings? get_gsettings (string schema_id) {

Reply via email to