sgabios:Makefile: fix issues of build reproducibility
authorBruce Rogers <brogers@suse.com>
Thu, 27 Jun 2019 16:15:24 +0000 (10:15 -0600)
committerwanchao-xu <wanchao.xu@samsung.com>
Tue, 9 Jan 2024 12:00:20 +0000 (20:00 +0800)
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>
Signed-off-by: Andreas Färber <afaerber@suse.de>
roms/sgabios/Makefile

index 970b0ff37a1ae58e98d0527da215670385ba7c04..d2934c9f678dadfae5201b8507e9a40b8f408943 100644 (file)
 #
 # $Id$
 
-BUILD_DATE = \"$(shell date -u)\"
-BUILD_SHORT_DATE = \"$(shell date -u +%D)\"
-BUILD_HOST = \"$(shell hostname)\"
-BUILD_USER = \"$(shell whoami)\"
+BUILD_DATE = \"$(shell date --date='@$(PACKAGING_TIMESTAMP)' -u)\"
+BUILD_SHORT_DATE = \"$(shell date --date='@$(PACKAGING_TIMESTAMP)' -u +%D)\"
+BUILD_HOST = \"buildhost\"
+BUILD_USER = \"geeko\"
 
 CFLAGS := -Wall -Os -m32 -nostdlib