found 1103797 2:20260524-1
tags 1103797 + patch
thanks

Hi,

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

I can't tell from the Git history, but it looks like the patch was
disabled for some reason, perhaps after it no longer applied?

A patch correcting both issues is attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/0001-Reproducible-build.patch      2026-07-27 
07:02:32.613726484 -0700
--- b/debian/patches/0001-Reproducible-build.patch      2026-07-27 
07:13:28.619760266 -0700
@@ -7,23 +7,21 @@
  schism/version.c | 2 ++
  1 file changed, 2 insertions(+)
 
-diff --git a/schism/version.c b/schism/version.c
-index e25191c..5b18567 100644
---- a/schism/version.c
-+++ b/schism/version.c
-@@ -222,6 +222,7 @@ static inline int get_version_date(int *pyear, int 
*pmonth, int *pday)
+--- schism-20260524.orig/schism/version.c
++++ schism-20260524/schism/version.c
+@@ -417,6 +417,7 @@ static int get_version_date(uint32_t *py
+               return 0;
  #endif
  
- #ifdef __TIMESTAMP__
 +#ifndef SOURCE_DATE_EPOCH
-       /* The last time THIS source file was actually edited. */
-       {
-               char day_of_week[4], month[4];
-@@ -239,6 +240,7 @@ static inline int get_version_date(int *pyear, int 
*pmonth, int *pday)
-                       }
-               }
-       }
+ #ifdef __TIMESTAMP__
+       /* The last time THIS source file was actually edited */
+       if (ver_parse_ctimestamp(__TIMESTAMP__, pyear, pmonth, pday) == 0)
+@@ -425,6 +426,7 @@ static int get_version_date(uint32_t *py
+ 
+       if (ver_parse_cdate(__DATE__, pyear, pmonth, pday) == 0)
+               return 0;
 +#endif
- #endif
  
-       {
+       /* give up... */
+       return -1;
--- a/debian/patches/series     2026-07-27 07:02:32.613726484 -0700
--- b/debian/patches/series     2026-07-27 07:12:08.313499419 -0700
@@ -1 +1 @@
-#0001-Reproducible-build.patch
+0001-Reproducible-build.patch

Reply via email to