f036a54ad6
Refine the reproducible build changes to no longer override linux commands, but rather fix via patches only. Also fix all the recent security issues reported. OBS-URL: https://build.opensuse.org/request/show/441247 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=320
27 lines
731 B
Diff
27 lines
731 B
Diff
sgabios:Makefile: fix issues of build reproducibility
|
|
|
|
It is desirable to produce the same bits on subsequent
|
|
builds when the actual code of the package doesn't
|
|
change. (bsc#1011213)
|
|
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
---
|
|
Makefile | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -14,9 +14,9 @@
|
|
#
|
|
# $Id$
|
|
|
|
-BUILD_DATE = \"$(shell date -u)\"
|
|
-BUILD_SHORT_DATE = \"$(shell date -u +%D)\"
|
|
-BUILD_HOST = \"$(shell hostname)\"
|
|
+BUILD_DATE = \"$(shell date --date='@$(PACKAGING_TIMESTAMP)' -u)\"
|
|
+BUILD_SHORT_DATE = \"$(shell date --date='@$(PACKAGING_TIMESTAMP)' -u +%D)\"
|
|
+BUILD_HOST = \"hostname\"
|
|
BUILD_USER = \"$(shell whoami)\"
|
|
|
|
CFLAGS := -Wall -Os -m32 -nostdlib
|