File: 10-reproducible-build.diff

package info (click to toggle)
elinks 0.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 17,808 kB
  • sloc: ansic: 104,839; sh: 5,343; python: 3,917; perl: 2,175; pascal: 1,562; makefile: 974; javascript: 368; yacc: 295; lisp: 125; ruby: 70; awk: 65
file content (29 lines) | stat: -rw-r--r-- 1,037 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
21
22
23
24
25
26
27
28
29
Description: Don't embed the build date
 Debian strives for reproducible builds. Stop using the __DATE__ and __TIME__
 macros which shown when running "elinks --version".
Author: Moritz Muehlenhoff <jmm@debian.org>

Index: elinks/src/main/version.c
===================================================================
--- elinks.orig/src/main/version.c	2017-12-01 11:07:37.573697705 +0100
+++ elinks/src/main/version.c	2017-12-01 11:07:37.553697625 +0100
@@ -103,8 +103,6 @@
 	}
 
 	add_char_to_string(&string, '\n');
-	add_format_to_string(&string, _("Built on %s %s", term),
-			     build_date, build_time);
 
 	if (more) {
 		add_to_string(&string, "\n\n");
Index: elinks/src/vernum.c
===================================================================
--- elinks.orig/src/vernum.c	2017-12-01 11:07:37.573697705 +0100
+++ elinks/src/vernum.c	2017-12-01 11:07:37.569697689 +0100
@@ -8,6 +8,4 @@
 
 #include "vernum.h"
 
-unsigned char *build_date = __DATE__;
-unsigned char *build_time = __TIME__;
 unsigned char *build_id = BUILD_ID;