Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Vagrant Cascadian
Fri, 13 Nov 2026 00:10
Bug#1153872: mapsembler2: reproducible builds: embeds date and running kernel version
Author: Vagrant Cascadian
Date: Fri, 13 Nov 2026 00:10
Date: Fri, 13 Nov 2026 00:10
136 lines
6110 bytes
6110 bytes
--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Package: mapsembler2
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps kernel uname
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The timestamp and running kernel version are embedded at least one of
the binaries shipped in mapsembler2:
=E2=94=82 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 ./usr/bin/mapsembler2_extre=
mities
...
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 -Linux-6.12.115+deb13.1-amd64
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 -2026-11-09 16:12:37
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 +Linux-6.12.116+deb13-amd64
=E2=94=82 =E2=94=82 =E2=94=82 =E2=94=82 +2026-11-12 02:41:39
This is currently confirmed by both reproduce.debian.net and tests.reproduc=
ible-builds.org:
https://reproduce.debian.net/excuses.html?source_name=3Dmapsembler2
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffosco=
pe-results/mapsembler2.html
The attached patches fix this by using CMAKE_SYSTEM_NAME instead of
CMAKE_SYSTEM to avoid embedding the kernel version, and using the CMake
TIMESTAMP macro which respects the SOURCE_DATE_EPOCH environment
variable.
I believe with these patches applied, mapsembler2 should build
reproducibly!
Thanks for maintaining mapsembler2!
live well,
vagrant
--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
filename=0001-Use-CMAKE_SYSTEM_NAME-to-Avoid-embedding-running-ker.patch
Content-Transfer-Encoding: quoted-printable
From=205ccc00aec48888812efc119ed5bf251f426870b3 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@debian.org>
Date: Thu, 12 Nov 2026 15:27:48 -0800
Subject: [PATCH 1/2] Use CMAKE_SYSTEM_NAME to Avoid embedding running kernel
version.
https://tests.reproducible-builds.org/debian/issues/unstable/captures_kerne=
l_version_via_CMAKE_SYSTEM_issue.html
=2D--
.../thirdparty/gatb-core/src/gatb/system/api/config.hpp.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mapsembler2_extremities/thirdparty/gatb-core/src/gatb/system/a=
pi/config.hpp.in b/mapsembler2_extremities/thirdparty/gatb-core/src/gatb/sy=
stem/api/config.hpp.in
index 9266b7b..e228e9a 100644
=2D-- a/mapsembler2_extremities/thirdparty/gatb-core/src/gatb/system/api/co=
nfig.hpp.in
+++ b/mapsembler2_extremities/thirdparty/gatb-core/src/gatb/system/api/conf=
ig.hpp.in
@@ -24,7 +24,7 @@
#define STR_COMPILATION_FLAGS "${gatb-core-flags}"
#define STR_COMPILER "${CMAKE_C_COMPILER} (${CMAKE_CXX_COMPILE=
R_VERSION})"
=20
=2D#define STR_OPERATING_SYSTEM "${CMAKE_SYSTEM}"
+#define STR_OPERATING_SYSTEM "${CMAKE_SYSTEM_NAME}"
=20
#define KSIZE_1 ${KSIZE_1}
#define KSIZE_2 ${KSIZE_2}
=2D-=20
2.47.3
--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
filename=0002-gatb-core-CMakeLists.txt-Use-TIMESTAMP-to-set-gatb-c.patch
Content-Transfer-Encoding: quoted-printable
From=2029810741f3357244590d0f5a5aefd579d80c0e3c Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@debian.org>
Date: Thu, 12 Nov 2026 15:42:56 -0800
Subject: [PATCH 2/2] gatb-core/CMakeLists.txt: Use TIMESTAMP to set
gatb-core-date.
=2D--
mapsembler2_extremities/thirdparty/gatb-core/CMakeLists.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mapsembler2_extremities/thirdparty/gatb-core/CMakeLists.txt b/=
mapsembler2_extremities/thirdparty/gatb-core/CMakeLists.txt
index a701356..5772bbe 100644
=2D-- a/mapsembler2_extremities/thirdparty/gatb-core/CMakeLists.txt
+++ b/mapsembler2_extremities/thirdparty/gatb-core/CMakeLists.txt
@@ -39,7 +39,9 @@ include (GetDate)
DefineInteger (k)
=20
# We get the current date
=2DGetCurrentDate (gatb-core-date)=20
+# Use TIMESTAMP, which respects SOURCE_DATE_EPOCH if set:
+# https://reproducible-builds.org/docs/source-date-epoch/
+string (TIMESTAMP gatb-core-date "%Y-%m-%d %H:%M:%S" UTC)
=20
##########################################################################=
######
# COMPILER DEFINITIONS
=2D-=20
2.47.3
--=-=-=--
--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCavZTswAKCRDcUY/If5cW
qoCrAP4q5XidNpruyMT0XFD0O8+eX+MlJGKwDkhPr6l0SWXVYQEAuCLsUDyV0Smt
/hUUINjwKEd4vAT4VahiGQWw//A1bg4=
=vQYl
-----END PGP SIGNATURE-----
--==-=-=--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads