blob: e0a32e6dd0e013ee2e0ac62d9819794a4aa0f508 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From deb013d93c3ce78891386637d6b3300289130df6 Mon Sep 17 00:00:00 2001
2From: Thomas Preud'homme <robotux@celest.fr>
3Date: Sun, 7 Aug 2016 22:28:50 +0100
4Subject: Make build reproducible
5
6Remove build date from the binary so that two builds on different dates
7are binary identical.
8
9Origin: upstream, https://github.com/hugosantos/mrd6/commit/14f27d5528a3e4c8e5369bdee0e35961a2491661
10Forwarded: https://github.com/hugosantos/mrd6/pull/30
11Last-Update: 2016-08-09
12Applied-Upstream: commit: 14f27d5528a3e4c8e5369bdee0e35961a2491661
13---
14 src/Makefile | 1 -
15 src/mrd.cpp | 2 --
16 2 files changed, 3 deletions(-)
17
18--- a/src/Makefile
19+++ b/src/Makefile
20@@ -185,7 +185,6 @@ endif
21 $(MRD_VERSION_CPP): $(SOURCES) Makefile Makefile.options
22 @set -e; mkdir -p $(dir $@); \
23 echo '/* This file is automatically generated */' > $(MRD_VERSION_CPP); \
24- echo 'const char *BuildDate = "$(NOW)";' >> $(MRD_VERSION_CPP)
25
26 $(MODULES_CPP): Makefile Makefile.options
27 @set -e; mkdir -p $(dir $@); \
28--- a/src/mrd.cpp
29+++ b/src/mrd.cpp
30@@ -75,7 +75,6 @@
31
32 mrd *g_mrd = 0;
33
34-extern const char *BuildDate;
35 static const char *VersionInfo = "mrd6 0.10.0";
36
37 static const char *defaultconffiles[] = {
38@@ -2335,7 +2334,6 @@ bool mrd::socket_regs(base_stream &out,
39
40 void mrd::show_base_info(base_stream &out) const {
41 out.xprintf("Version: %s\n", VersionInfo);
42- out.xprintf("Build date: %s\n", BuildDate);
43 }
44
45 bool mrd::show_info(base_stream &out, const std::vector<std::string> &ctx) {