File: 0001-Reproducible-build.patch

package info (click to toggle)
schism 2%3A20251014-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,472 kB
  • sloc: ansic: 86,853; makefile: 658; objc: 337; python: 321; perl: 75; sh: 41; xml: 10
file content (29 lines) | stat: -rw-r--r-- 700 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Chris Lamb <lamby@debian.org>
Date: Sat, 16 Aug 2025 19:53:55 +0200
Subject: Make the build reproducible

Last-Update: 2025-04-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)
 #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)
 			}
 		}
 	}
+#endif
 #endif
 
 	{