Your message dated Fri, 6 Nov 2026 16:08:59 +0100
with message-id <[email protected]>
and subject line 
has caused the Debian Bug report #1103797,
regarding schism: please make the build reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1103797: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103797
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: schism
Version: 2:20250313-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
schism could not be built reproducibly.

This is because it embedded the timestamp of a source file via the
__TIMESTAMP__ macro. Unlike __DATE__ and __TIME__, this macro is not
automatically adjusted to SOURCE_DATE_EPOCH.

│ │ │ ├── ./usr/bin/schismtracker
│ │ │ │ ├── strings --all --bytes=8 {}
│ │ │ │ │ @@ -2382,15 +2382,15 @@
│ │ │ │ │  %3s %3s %d %d:%d:%d %d
│ │ │ │ │ -Thu Mar 13 15:04:35 2025
│ │ │ │ │ +Fri Mar 14 17:04:35 2025
│ │ │ │ │  %3s %3s  %d %d:%d:%d %d
│ │ │ │ │  %3s %d %d

Patch attached, although other solutions are obviously available.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/0001-Reproducible-build.patch      1969-12-31 
16:00:00.000000000 -0800
--- b/debian/patches/0001-Reproducible-build.patch      2025-04-21 
09:19:54.639357255 -0700
@@ -0,0 +1,22 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2025-04-21
+
+--- schism-20250313.orig/schism/version.c
++++ schism-20250313/schism/version.c
+@@ -218,6 +218,7 @@ static inline int get_version_date(int *
+ #endif
+ 
+ #ifdef __TIMESTAMP__
++#ifndef SOURCE_DATE_EPOCH
+       /* The last time THIS source file was actually edited. */
+       {
+               char day_of_week[4], month[4];
+@@ -236,6 +237,7 @@ static inline int get_version_date(int *
+               }
+       }
+ #endif
++#endif
+ 
+       {
+               // __DATE__ should be defined everywhere.
--- a/debian/patches/series     1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/series     2025-04-21 09:15:06.770698318 -0700
@@ -0,0 +1 @@
+0001-Reproducible-build.patch
--- a/debian/rules      2025-04-21 09:00:43.520722724 -0700
--- b/debian/rules      2025-04-21 09:19:50.271347256 -0700
@@ -1,10 +1,12 @@
 #! /usr/bin/make -f
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CPPFLAGS_MAINT_APPEND = -DSOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH)
 
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+
 %:
        dh $@
 

--- End Message ---
--- Begin Message ---
Version: 2:20261102-2

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to