Source: ardour
Version: 1:5.12.0-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 ardour could not be built reproducibly.

This is because it embeds CFLAGS and CXXFLAGS in the resulting
binary. Proof of concept patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff --git a/wscript b/wscript
index 4b5acb0..633fca1 100644
--- a/wscript
+++ b/wscript
@@ -1305,8 +1305,9 @@ const char* const ardour_config_info = "\\n\\
     write_config_text('Mac i386 Architecture', opts.generic)
     write_config_text('Mac ppc Architecture',  opts.ppc)
     config_text.write("\\n\\\n")
-    write_config_text('C compiler flags',      conf.env['CFLAGS'])
-    write_config_text('C++ compiler flags',    conf.env['CXXFLAGS'])
+    if 'SOURCE_DATE_EPOCH' in os.environ:
+        write_config_text('C compiler flags',      conf.env['CFLAGS'])
+        write_config_text('C++ compiler flags',    conf.env['CXXFLAGS'])
     write_config_text('Linker flags',          conf.env['LINKFLAGS'])
 
     config_text.write ('";\n}\n')

Reply via email to