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

Package:
mapsembler2
Source:
mapsembler2
Description:
bioinformatics targeted assembly software
Submitter:
Vagrant Cascadian
Date:
2026-11-13 00:05:02 UTC
Severity:
normal
#1153872#5
Date:
2026-11-13 00:02:59 UTC
From:
To:
The timestamp and running kernel version are embedded at least one of
the binaries shipped in mapsembler2:

│ │ ├── ./usr/bin/mapsembler2_extremities
...
│ │ │ │ -Linux-6.12.115+deb13.1-amd64
│ │ │ │ -2026-11-09 16:12:37
│ │ │ │ +Linux-6.12.116+deb13-amd64
│ │ │ │ +2026-11-12 02:41:39

This is currently confirmed by both reproduce.debian.net and tests.reproducible-builds.org:

https://reproduce.debian.net/excuses.html?source_name=mapsembler2

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-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