From db10975bb86ed6151957c521d0c80325534cda6e Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Sat, 29 Oct 2022 11:12:08 +0200 Subject: 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. --- build-aux/mm-enums-types.h.template | 2 +- build-aux/mm-errors-types.h.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'build-aux') 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 ***/ -- cgit v1.2.3-70-g09d2