File: remove-build-time.patch

package info (click to toggle)
lazarus 4.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276,332 kB
  • sloc: pascal: 2,343,449; xml: 508,730; makefile: 353,083; cpp: 93,608; sh: 3,387; java: 609; perl: 297; sql: 222; ansic: 137
file content (20 lines) | stat: -rw-r--r-- 721 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: make build reproducible by not logging the build time
 .
 In Debian, fpc is patched to honor the SOURCE_DATE_EPOCH for %date%, but not
 yet for %time%. Until that happens, just strip out the build time, it's
 mostly useless anyways.
Author: Paul Gevers <elbrus@debian.org>
Forwarded: no

Index: lazarus/ide/lazarus.pp
===================================================================
--- lazarus.orig/ide/lazarus.pp
+++ lazarus/ide/lazarus.pp
@@ -107,7 +107,6 @@ begin
   
   LazarusRevisionStr:=RevisionStr;
   LazarusBuildDateStr:={$I %date%};
-  LazarusBuildTimeStr:={$I %time%};
   {$IFDEF EnableWriteLazRev}
   writeln('[20180608074905] lazarus.pp ide/revision.inc: ',LazarusRevisionStr);
   {$ENDIF}