summaryrefslogtreecommitdiffstats
path: root/meta-signing-key/recipes-devtools/libsign/files/0001-selsign.c-remove-build-time-from-show_banner.patch
blob: 475400d6a413b823e988b49277332bd913579c00 (plain)
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
30
31
32
33
34
35
36
37
38
39
From 052b1e9326bcc707a0b28842969745aa78580c5c Mon Sep 17 00:00:00 2001
From: Yi Zhao <yi.zhao@windriver.com>
Date: Fri, 20 Aug 2021 12:17:55 +0800
Subject: [PATCH] selsign.c: remove build time from show_banner

Fix build reproducibility issue:

| selsign.c: In function 'show_banner':
| selsign.c:57:62: error: macro "__DATE__" might prevent reproducible
builds [-Werror=date-time]
|    57 |         info_cont("Build Time: " __DATE__ " " __TIME__ "\n\n");
|       |                                                              ^
| selsign.c:57:34: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
|    57 |         info_cont("Build Time: " __DATE__ " " __TIME__ "\n\n");
|       |                                  ^~~~~~~~
| cc1: all warnings being treated as errors

Upstream-Status: Pending

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 src/selsign/selsign.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/selsign/selsign.c b/src/selsign/selsign.c
index 0109237..498b895 100644
--- a/src/selsign/selsign.c
+++ b/src/selsign/selsign.c
@@ -54,7 +54,6 @@ show_banner(void)
 		  "<jia.zhang@windriver.com>\n");
 	info_cont("Version: %s+git%s\n", LIBSIGN_VERSION, libsign_git_commit);
 	info_cont("Build Machine: %s\n", libsign_build_machine);
-	info_cont("Build Time: " __DATE__ " " __TIME__ "\n\n");
 }
 
 static void
-- 
2.17.1