[From nobody Sun Nov 15 08:25:08 2026
Received: (at submit) by bugs.debian.org; 13 Nov 2026 00:03:09 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-21.2 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
 DKIM_VALID_EF,HAS_PACKAGE,MD5_SHA1_SUM,PGPSIGNATURE,SPF_HELO_NONE,
 SPF_PASS autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 50; hammy, 150; neutral, 126; spammy,
 0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--cmake, 0.000-+--H*ct:application,
 0.000-+--H*ct:protocol
Return-path: &lt;vagrant@reproducible-builds.org&gt;
Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:40804)
 by buxtehude.debian.org with utf8esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;vagrant@reproducible-builds.org&gt;)
 id 1xRel1-003MCi-1i for submit@bugs.debian.org;
 Fri, 13 Nov 2026 00:03:09 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=reproducible-builds.org; s=1.vagrant; t=1794528185;
 bh=cd0U6ca2/DSBh0LPE24IuAcfGWm7R6cDKrZoCfivyDw=;
 h=From:To:Subject:Date:From;
 b=EBcXvcSaN/qfd5rmBunTTG6zlPr7CQ1sNQv9LhxpO9py26MhX82UTpzwKzz3wwEAJ
 SdIpxt7dyhtBmDA8BH/yC5bB73uV0hONansJOuZnBAlq3bDPKyY3xmmOb3aofUYy7N
 B7VDxax96dgGJx3sdg9sPKwxIFiDkLJ7t+IZlCXfW6n4tqTQSUarIVL20LuQ0+0prW
 mSmT/MxEPN2mn7+ZISekSBCtX7tQCXYYqf5/aIAUTdUGBUVvNUU6kzMSl7339xsEv/
 TBguO+BlRybTGOHVDe871L3PigapyFlLll5lgOeB9FbYuC47+/nNeqwe3fbIHQFw65
 AW9Ied7E/10Ug==
Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50])
 by cascadia.aikidev.net (Postfix) with UTF8SMTPSA id F132C6B37;
 Thu, 12 Nov 2026 16:03:04 -0800 (PST)
From: Vagrant Cascadian &lt;vagrant@reproducible-builds.org&gt;
To: submit@bugs.debian.org
Subject: mapsembler2: reproducible builds: embeds date and running kernel
 version
Date: Thu, 12 Nov 2026 16:02:59 -0800
Message-ID: &lt;87h5hla98s.fsf@wireframe&gt;
MIME-Version: 1.0
Content-Type: multipart/signed; boundary=&quot;==-=-=&quot;;
 micalg=pgp-sha512; protocol=&quot;application/pgp-signature&quot;
Delivered-To: submit@bugs.debian.org

--==-=-=
Content-Type: multipart/mixed; boundary=&quot;=-=-=&quot;

--=-=-=
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 &lt;vagrant@debian.org&gt;
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   &quot;${gatb-core-flags}&quot;
 #define STR_COMPILER            &quot;${CMAKE_C_COMPILER}  (${CMAKE_CXX_COMPILE=
R_VERSION})&quot;
=20
=2D#define STR_OPERATING_SYSTEM    &quot;${CMAKE_SYSTEM}&quot;
+#define STR_OPERATING_SYSTEM    &quot;${CMAKE_SYSTEM_NAME}&quot;
=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 &lt;vagrant@debian.org&gt;
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 &quot;%Y-%m-%d %H:%M:%S&quot; UTC)
=20
 ##########################################################################=
######
 # COMPILER DEFINITIONS
=2D-=20
2.47.3


--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name=&quot;signature.asc&quot;

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCavZTswAKCRDcUY/If5cW
qoCrAP4q5XidNpruyMT0XFD0O8+eX+MlJGKwDkhPr6l0SWXVYQEAuCLsUDyV0Smt
/hUUINjwKEd4vAT4VahiGQWw//A1bg4=
=vQYl
-----END PGP SIGNATURE-----
--==-=-=--
]