diff options
| author | Yi Zhao <yi.zhao@windriver.com> | 2021-08-20 12:32:38 +0800 |
|---|---|---|
| committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2021-08-20 15:59:51 +0800 |
| commit | dad89db9b9c12bbff9e301f20ac5da0e7e318f23 (patch) | |
| tree | 57d1e465efb92f8c747b78992c1742fc71cd04a7 | |
| parent | e004d3765058a1288e4729c7076c818896085bbd (diff) | |
| download | meta-secure-core-dad89db9b9c12bbff9e301f20ac5da0e7e318f23.tar.gz | |
libsign: fix build reproducibility issue
Fixes:
| 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
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
| -rw-r--r-- | meta-signing-key/recipes-devtools/libsign/files/0001-selsign.c-remove-build-time-from-show_banner.patch | 39 | ||||
| -rw-r--r-- | meta-signing-key/recipes-devtools/libsign/libsign_git.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta-signing-key/recipes-devtools/libsign/files/0001-selsign.c-remove-build-time-from-show_banner.patch b/meta-signing-key/recipes-devtools/libsign/files/0001-selsign.c-remove-build-time-from-show_banner.patch new file mode 100644 index 0000000..475400d --- /dev/null +++ b/meta-signing-key/recipes-devtools/libsign/files/0001-selsign.c-remove-build-time-from-show_banner.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From 052b1e9326bcc707a0b28842969745aa78580c5c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
| 3 | Date: Fri, 20 Aug 2021 12:17:55 +0800 | ||
| 4 | Subject: [PATCH] selsign.c: remove build time from show_banner | ||
| 5 | |||
| 6 | Fix build reproducibility issue: | ||
| 7 | |||
| 8 | | selsign.c: In function 'show_banner': | ||
| 9 | | selsign.c:57:62: error: macro "__DATE__" might prevent reproducible | ||
| 10 | builds [-Werror=date-time] | ||
| 11 | | 57 | info_cont("Build Time: " __DATE__ " " __TIME__ "\n\n"); | ||
| 12 | | | ^ | ||
| 13 | | selsign.c:57:34: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time] | ||
| 14 | | 57 | info_cont("Build Time: " __DATE__ " " __TIME__ "\n\n"); | ||
| 15 | | | ^~~~~~~~ | ||
| 16 | | cc1: all warnings being treated as errors | ||
| 17 | |||
| 18 | Upstream-Status: Pending | ||
| 19 | |||
| 20 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
| 21 | --- | ||
| 22 | src/selsign/selsign.c | 1 - | ||
| 23 | 1 file changed, 1 deletion(-) | ||
| 24 | |||
| 25 | diff --git a/src/selsign/selsign.c b/src/selsign/selsign.c | ||
| 26 | index 0109237..498b895 100644 | ||
| 27 | --- a/src/selsign/selsign.c | ||
| 28 | +++ b/src/selsign/selsign.c | ||
| 29 | @@ -54,7 +54,6 @@ show_banner(void) | ||
| 30 | "<jia.zhang@windriver.com>\n"); | ||
| 31 | info_cont("Version: %s+git%s\n", LIBSIGN_VERSION, libsign_git_commit); | ||
| 32 | info_cont("Build Machine: %s\n", libsign_build_machine); | ||
| 33 | - info_cont("Build Time: " __DATE__ " " __TIME__ "\n\n"); | ||
| 34 | } | ||
| 35 | |||
| 36 | static void | ||
| 37 | -- | ||
| 38 | 2.17.1 | ||
| 39 | |||
diff --git a/meta-signing-key/recipes-devtools/libsign/libsign_git.bb b/meta-signing-key/recipes-devtools/libsign/libsign_git.bb index 79eb347..53ebe53 100644 --- a/meta-signing-key/recipes-devtools/libsign/libsign_git.bb +++ b/meta-signing-key/recipes-devtools/libsign/libsign_git.bb | |||
| @@ -20,6 +20,7 @@ PV = "0.3.2+git${SRCPV}" | |||
| 20 | 20 | ||
| 21 | SRC_URI = "\ | 21 | SRC_URI = "\ |
| 22 | git://github.com/jiazhang0/libsign.git \ | 22 | git://github.com/jiazhang0/libsign.git \ |
| 23 | file://0001-selsign.c-remove-build-time-from-show_banner.patch \ | ||
| 23 | " | 24 | " |
| 24 | SRCREV = "eb3a5927dd18e166014cf1e2eb6e9e461cf973fb" | 25 | SRCREV = "eb3a5927dd18e166014cf1e2eb6e9e461cf973fb" |
| 25 | 26 | ||
