aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorArnaud Ferraris <aferraris@debian.org>2022-10-29 11:12:08 +0200
committerArnaud Ferraris <arnaud.ferraris@gmail.com>2022-10-29 11:14:46 +0200
commitdb10975bb86ed6151957c521d0c80325534cda6e (patch)
tree8c1116a8778735fc00dee2a04cc307418cb002b0 /build-aux
parent82fd4a4bbcc53ad8be0625518016ba7264df2f2f (diff)
build-aux: templates: make build reproducible
By including `@filename@` in the enums/errors types header template, we generate files containing the full path to source files, which reflects the particular filesystem layout used for a given build. As such, this alters build reproducibility as it causes a (admittedly small) diff between builds executed in different environments. Using `@basename@` instead ensures only the file name (without its full path) is mentioned in the generated files, making the builds reproducible again.
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/mm-enums-types.h.template2
-rw-r--r--build-aux/mm-errors-types.h.template2
2 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/mm-enums-types.h.template b/build-aux/mm-enums-types.h.template
index 652c53dc..24d18a9d 100644
--- a/build-aux/mm-enums-types.h.template
+++ b/build-aux/mm-enums-types.h.template
@@ -7,7 +7,7 @@ G_BEGIN_DECLS
/*** BEGIN file-production ***/
-/* enumerations from "@filename@" */
+/* enumerations from "@basename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/
diff --git a/build-aux/mm-errors-types.h.template b/build-aux/mm-errors-types.h.template
index 72c90cf5..5c80bee6 100644
--- a/build-aux/mm-errors-types.h.template
+++ b/build-aux/mm-errors-types.h.template
@@ -7,7 +7,7 @@ G_BEGIN_DECLS
/*** BEGIN file-production ***/
-/* enumerations from "@filename@" */
+/* enumerations from "@basename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/