Bug#891290: ardour: please make the build reproducible
Chris Lamb
lamby at debian.org
Sat Feb 24 09:32:11 GMT 2018
Source: ardour
Version: 1:5.12.0-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 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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
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')
More information about the pkg-multimedia-maintainers
mailing list