1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
From: Chris Lamb <lamby@debian.org>
Date: Wed, 24 Jun 2020 11:52:23 +0200
Subject: Make the build reproducible
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
gftl could not be built reproducibly.
This is because it calls out to m4 during the build with the
--synclines/-s argument, resulting in absolute filenames in the
generated files:
│ │ │ -#line 1 "/build/1st/gftl-1.2.5/include/types/../templates/header.m4"
│ │ │ +#line 1 "/build/2/gftl-1.2.5/2nd/include/types/../templates/header.m4"
Patch attached that drops these "-s" arguments.
Closes: #963602
---
include/templates/CMakeLists.txt | 2 +-
include/types/CMakeLists.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/templates/CMakeLists.txt b/include/templates/CMakeLists.txt
index b977704..b52bc3e 100644
--- a/include/templates/CMakeLists.txt
+++ b/include/templates/CMakeLists.txt
@@ -25,7 +25,7 @@ foreach( macro_file ${macro_files} )
add_custom_command (
OUTPUT ${outfile}
- COMMAND ${M4} -s -Dparam=${param} -I${src}/../templates < ${infile} > ${outfile}
+ COMMAND ${M4} -Dparam=${param} -I${src}/../templates < ${infile} > ${outfile}
WORKING_DIRECTORY ${bin}
DEPENDS ${infile}
)
diff --git a/include/types/CMakeLists.txt b/include/types/CMakeLists.txt
index ba12316..a7c34b1 100644
--- a/include/types/CMakeLists.txt
+++ b/include/types/CMakeLists.txt
@@ -46,7 +46,7 @@ foreach (macro_file ${macro_files})
add_custom_command (
OUTPUT ${outfile}
- COMMAND ${M4} -s -Dparam=${param} -I${src}/../templates < ${infile} > ${outfile}
+ COMMAND ${M4} -Dparam=${param} -I${src}/../templates < ${infile} > ${outfile}
WORKING_DIRECTORY ${bin}
DEPENDS ${infile}
)
|