File ipxe.stable-build-id.patch of Package xen

From: Olaf Hering <olaf@aepfle.de>
Date: Thu, 19 Jan 2017 10:36:38 +0100
Subject: stable build-id

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>
---
 src/Makefile.housekeeping | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -1200,25 +1200,27 @@ BUILD_ID_CMD = cat $^ | cksum | awk '{print $$1}'
 #
 # Used as a means to automatically select the newest version of iPXE
 # if multiple iPXE drivers are loaded concurrently in a UEFI system.
 #
 # It gets rounded down to the nearest minute when used for this
 # purpose.
 #
 ifdef SOURCE_DATE_EPOCH
 BUILD_TIMESTAMP := $(SOURCE_DATE_EPOCH)
 else ifdef GITVERSION
 BUILD_TIMESTAMP := $(shell git log -1 --pretty=%ct)
 else
-BUILD_TIMESTAMP := $(shell date +%s)
+# NB: In the case of the SUSE package we want reproducible builds,
+# so we use a pre-determined timestamp, rather than the current timestamp
+BUILD_TIMESTAMP := 0xdeadcafe
 endif
 
 # Build version
 #
 GIT_INDEX := $(if $(GITVERSION),$(if $(wildcard ../.git/index),../.git/index))
 $(BIN)/version.%.o : core/version.c $(MAKEDEPS) $(version_DEPS) $(GIT_INDEX)
 	$(QM)$(ECHO) "  [VERSION] $@"
 	$(Q)$(COMPILE_c) -DBUILD_NAME="\"$*\"" \
 		-DVERSION_MAJOR=$(VERSION_MAJOR) \
 		-DVERSION_MINOR=$(VERSION_MINOR) \
 		-DVERSION_PATCH=$(VERSION_PATCH) \
 		-DVERSION="\"$(VERSION)\"" \
openSUSE Build Service is sponsored by