diff options
author | Arnaud Ferraris <aferraris@debian.org> | 2022-10-29 11:12:08 +0200 |
---|---|---|
committer | Arnaud Ferraris <arnaud.ferraris@gmail.com> | 2022-10-29 11:14:46 +0200 |
commit | db10975bb86ed6151957c521d0c80325534cda6e (patch) | |
tree | 8c1116a8778735fc00dee2a04cc307418cb002b0 /build-aux | |
parent | 82fd4a4bbcc53ad8be0625518016ba7264df2f2f (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.template | 2 | ||||
-rw-r--r-- | build-aux/mm-errors-types.h.template | 2 |
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 ***/ |