summaryrefslogtreecommitdiff
path: root/debian/patches/tools-do-not-embed-build-date-and-kernel.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/tools-do-not-embed-build-date-and-kernel.patch')
-rw-r--r--debian/patches/tools-do-not-embed-build-date-and-kernel.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/debian/patches/tools-do-not-embed-build-date-and-kernel.patch b/debian/patches/tools-do-not-embed-build-date-and-kernel.patch
new file mode 100644
index 0000000..f1fe355
--- /dev/null
+++ b/debian/patches/tools-do-not-embed-build-date-and-kernel.patch
@@ -0,0 +1,59 @@
+From: Vagrant Cascadian <vagrant@reproducible-builds.org>
+Date: Sat, 2 Jan 2021 00:01:20 +0000
+X-Dgit-Generated: 0.10.1-7.3 1f430917c5ab786478d575d9714dd4e19defd8e1
+Subject: tools: Do not embed build date and kernel version in various files.
+
+(Closes: #979019)
+
+https://reproducible-builds.org/docs/timestamps/
+https://tests.reproducible-builds.org/debian/issues/unstable/captures_kernel_version_issue.html
+
+Partially fixed upstream:
+https://sourceforge.net/p/lirc/git/merge-requests/36/
+
+---
+
+diff --git a/tools/irdb-get b/tools/irdb-get
+index e4e0a26..7688475 100755
+--- a/tools/irdb-get
++++ b/tools/irdb-get
+@@ -193,7 +193,7 @@ def do_yaml_config():
+ lircmd_by_driver[driver].append("%s/%s" % (tokens[0], tokens[2]))
+
+ print("#")
+- print("# Created by 'irdb-get yaml-config' at " + time.ctime())
++ print("# Created by 'irdb-get yaml-config' ")
+ print("#")
+ print("\nlircd_by_driver:")
+ print_yaml_dict(lircd_by_driver)
+diff --git a/tools/lirc-lsplugins.cpp b/tools/lirc-lsplugins.cpp
+index ba67a3c..d38087f 100644
+--- a/tools/lirc-lsplugins.cpp
++++ b/tools/lirc-lsplugins.cpp
+@@ -415,10 +415,9 @@ static void print_header(void)
+ static void print_yaml_header(void)
+ {
+ static const char* const YAML_HEADER =
+- "#\n# Generated by lirc-lsplugins --yaml (%s) at %s#\n ";
+- const time_t now = time(NULL);
++ "#\n# Generated by lirc-lsplugins --yaml (%s)\n ";
+
+- printf(YAML_HEADER, VERSION, ctime(&now));
++ printf(YAML_HEADER, VERSION);
+ printf("\ndrivers:\n");
+ }
+
+diff --git a/tools/lirc-make-devinput b/tools/lirc-make-devinput
+index f7e6f97..c37b5e1 100755
+--- a/tools/lirc-make-devinput
++++ b/tools/lirc-make-devinput
+@@ -61,8 +61,7 @@ if test -n "$lirc_map"; then
+ fi
+
+
+-echo "# Generated by $(basename $0) on $(uname -r)"
+-echo "# Date: $(date)"
++echo "# Generated by $(basename $0)"
+ cat <<EOF
+
+ begin remote