🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4320

Bug#1153872: mapsembler2: reproducible builds: embeds date and running kernel version

#4320
From: Vagrant Cascadian
Date: Fri, 13 Nov 2026 00:10
136 lines
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-----
--==-=-=--
Technical Details
Message-ID: <NYN1D-bwt2-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1153872: mapsembler2: reproducible builds: embeds date and running kernel version
Date: Fri, 13 Nov 2026 01:10:01 +0100
Message-ID: <NYN1D-bwt2-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov 13 00:05:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1153872@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: reproducible-bugs@lists.alioth.debian.org, debian-med-packaging@lists.alioth.debian.org
X-Debian-Pr-Message: report 1153872
X-Debian-Pr-Package: mapsembler2
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: mapsembler2
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
	micalg=pgp-sha512; protocol="application/pgp-signature"
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002315
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 136
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 12 Nov 2026 16:02:59 -0800
X-Original-Message-ID: <87h5hla98s.fsf@wireframe>