File: reproducible.patch

package info (click to toggle)
zephyr 3.1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,920 kB
  • sloc: ansic: 41,378; sh: 10,723; makefile: 880; python: 438; yacc: 250; lisp: 127
file content (27 lines) | stat: -rw-r--r-- 808 bytes parent folder | download
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
Origin: https://github.com/zephyr-im/zephyr/pull/135/commits/9c6d4cc3162e5cdb488f8ed3463379b4b7873fd4
From: Reiner Herrmann <reiner@reiner-h.de>
Date: Sun, 15 Oct 2017 12:15:45 +0200
Subject: [PATCH] Enable reproducible building by removing irrelevant data from
 version string
Forwarded: not needed

---
 new_vers.sh | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/new_vers.sh b/new_vers.sh
index af0f4035..457e7149 100755
--- a/new_vers.sh
+++ b/new_vers.sh
@@ -2,10 +2,7 @@
 #
 top_srcdir=${1:-`pwd`}
 
-u=${USER-the_zephyr_builder}
-h=`hostname`
-t=`date`
 v=`sh ${top_srcdir}/get_vers.sh ${top_srcdir}`
 
 umask 002
-/bin/echo "#define ZEPHYR_VERSION_STRING \"${v} (${t}) ${u}@${h}\"" > h/zephyr_version.h
+/bin/echo "#define ZEPHYR_VERSION_STRING \"${v}\"" > h/zephyr_version.h