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.
This commit is contained in:
Arnaud Ferraris
2022-10-29 11:12:08 +02:00
committed by Arnaud Ferraris
parent 82fd4a4bbc
commit db10975bb8
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ G_BEGIN_DECLS
/*** BEGIN file-production ***/
/* enumerations from "@filename@" */
/* enumerations from "@basename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/

View File

@@ -7,7 +7,7 @@ G_BEGIN_DECLS
/*** BEGIN file-production ***/
/* enumerations from "@filename@" */
/* enumerations from "@basename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/