summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens2017-12-02 00:42:24 +0000
committerAlexander Couzens2017-12-02 00:42:44 +0000
commit73601c9895cf8f67e608375be724f092f048f244 (patch)
tree51b0a73d756d4f6d3c5edd327c90ef98246318a1
parent1c6ef01fe2b0d2c2ec52d67b564c1f34e2b8c39d (diff)
downloadrouting-73601c9895cf8f67e608375be724f092f048f244.tar.gz
mrd6: remove build timestamp
Build timestamp prevents reproducible builds [0]. [0] https://reproducible-builds.org/docs/timestamps/ Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
-rw-r--r--mrd6/Makefile2
-rw-r--r--mrd6/patches/103-Make-build-reproducible.patch45
2 files changed, 46 insertions, 1 deletions
diff --git a/mrd6/Makefile b/mrd6/Makefile
index a20ea26..c4863ed 100644
--- a/mrd6/Makefile
+++ b/mrd6/Makefile
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mrd6
PKG_SOURCE_VERSION:=c805eb33255dbc0b6647d463c6c67d1c9d3105a0
PKG_VERSION:=2013-11-30-$(PKG_SOURCE_VERSION)
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/hugosantos/mrd6.git
diff --git a/mrd6/patches/103-Make-build-reproducible.patch b/mrd6/patches/103-Make-build-reproducible.patch
new file mode 100644
index 0000000..e0a32e6
--- /dev/null
+++ b/mrd6/patches/103-Make-build-reproducible.patch
@@ -0,0 +1,45 @@
+From deb013d93c3ce78891386637d6b3300289130df6 Mon Sep 17 00:00:00 2001
+From: Thomas Preud'homme <robotux@celest.fr>
+Date: Sun, 7 Aug 2016 22:28:50 +0100
+Subject: Make build reproducible
+
+Remove build date from the binary so that two builds on different dates
+are binary identical.
+
+Origin: upstream, https://github.com/hugosantos/mrd6/commit/14f27d5528a3e4c8e5369bdee0e35961a2491661
+Forwarded: https://github.com/hugosantos/mrd6/pull/30
+Last-Update: 2016-08-09
+Applied-Upstream: commit: 14f27d5528a3e4c8e5369bdee0e35961a2491661
+---
+ src/Makefile | 1 -
+ src/mrd.cpp | 2 --
+ 2 files changed, 3 deletions(-)
+
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -185,7 +185,6 @@ endif
+ $(MRD_VERSION_CPP): $(SOURCES) Makefile Makefile.options
+ @set -e; mkdir -p $(dir $@); \
+ echo '/* This file is automatically generated */' > $(MRD_VERSION_CPP); \
+- echo 'const char *BuildDate = "$(NOW)";' >> $(MRD_VERSION_CPP)
+
+ $(MODULES_CPP): Makefile Makefile.options
+ @set -e; mkdir -p $(dir $@); \
+--- a/src/mrd.cpp
++++ b/src/mrd.cpp
+@@ -75,7 +75,6 @@
+
+ mrd *g_mrd = 0;
+
+-extern const char *BuildDate;
+ static const char *VersionInfo = "mrd6 0.10.0";
+
+ static const char *defaultconffiles[] = {
+@@ -2335,7 +2334,6 @@ bool mrd::socket_regs(base_stream &out,
+
+ void mrd::show_base_info(base_stream &out) const {
+ out.xprintf("Version: %s\n", VersionInfo);
+- out.xprintf("Build date: %s\n", BuildDate);
+ }
+
+ bool mrd::show_info(base_stream &out, const std::vector<std::string> &ctx) {