Source: pgrouting Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The kernel version of the build environment is embedded in /usr/lib/postgresql/14/lib/libpgrouting-3.4.so: https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/pgrouting.html Linux-5.18.0-0.deb11.4-amd64 vs. Linux-5.10.0-18-amd64 The attached patch to src/version/version.h.in fixes this by using CMAKE_SYSTEM_NAME instead of CMAKE_SYSTEM. According to my local tests, with this patch applied, and the patch submitted in #102179 to fix timestamps, pgrouting should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining pgrouting! live well, vagrant
From bf3f11142a4eb045f692382d202c833679bed491 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Fri, 14 Oct 2022 20:19:45 +0000 Subject: [PATCH 2/2] src/version/version.h.in: Use CMAKE_SYSTEM_NAME to avoid embedding running kernel version. https://tests.reproducible-builds.org/debian/issues/bookworm/captures_kernel_version_via_CMAKE_SYSTEM_issue.html --- src/version/version.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version/version.h.in b/src/version/version.h.in index 52e5018..c023cf0 100644 --- a/src/version/version.h.in +++ b/src/version/version.h.in @@ -30,6 +30,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #define COMPILATION_DATE "@COMPILATION_DATE@"; #define PROJECT_GIT_HASH "@PROJECT_GIT_HASH@"; #define PROJECT_LIB_NAME "@PROJECT_NAME_LOWER@-@PROJECT_VERSION@"; -#define CMAKE_SYSTEM_NAME "@CMAKE_SYSTEM@"; +#define CMAKE_SYSTEM_NAME "@CMAKE_SYSTEM_NAME@"; #define POSTGRES_VERSION "@POSTGRESQL_VERSION_STRING@"; -- 2.37.2
signature.asc
Description: PGP signature