Source: libgit2-glib Version: 0.26.4-1 Severity: wishlist Tags: patch User: [email protected] Usertags: buildpath X-Debbugs-Cc: [email protected]
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that libgit2-glib could not be built reproducibly. This is due to using @filename@ in the .h template (and corresponding .c file, but that is not installed as-is in the final package) and this includes the full, absolute build path. Patch attached that uses @basename@ instead. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
diff --git a/libgit2-glib/ggit-enum-types.c.template b/libgit2-glib/ggit-enum-types.c.template index 2c5f15b..acc5f75 100644 --- a/libgit2-glib/ggit-enum-types.c.template +++ b/libgit2-glib/ggit-enum-types.c.template @@ -4,7 +4,7 @@ /*** END file-header ***/ /*** BEGIN file-production ***/ -/* enumerations from "@filename@" */ +/* enumerations from "@basename@" */ #include "@filename@" /*** END file-production ***/ diff --git a/libgit2-glib/ggit-enum-types.h.template b/libgit2-glib/ggit-enum-types.h.template index 7d7c564..f40326d 100644 --- a/libgit2-glib/ggit-enum-types.h.template +++ b/libgit2-glib/ggit-enum-types.h.template @@ -9,7 +9,7 @@ G_BEGIN_DECLS /*** END file-header ***/ /*** BEGIN file-production ***/ -/* Enumerations from "@filename@" */ +/* Enumerations from "@basename@" */ /*** END file-production ***/

