SHA256
1
0
forked from pool/qemu

Accepting request 721129 from home:StefanBruens:branches:Virtualization

Make build reproducible

OBS-URL: https://build.opensuse.org/request/show/721129
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=483
This commit is contained in:
Bruce Rogers 2019-08-05 23:13:58 +00:00 committed by Git OBS Bridge
parent ea444bfb8a
commit 80d6e94215
6 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,23 @@
--- a/tools/keymap-gen 2019-08-05 21:56:01.731846467 +0200
+++ b/tools/keymap-gen 2019-08-05 22:00:14.563720016 +0200
@@ -20,6 +20,7 @@
sys.path.append(os.path.join(os.path.dirname(__file__), "../thirdparty"))
import argparse
import hashlib
+import os
import time
import sys
@@ -317,7 +318,11 @@
raise NotImplementedError()
def generate_header(self, database, args):
- today = time.strftime("%Y-%m-%d %H:%M")
+ sde = os.getenv("SOURCE_DATE_EPOCH")
+ if sde:
+ today = time.strftime("%Y-%m-%d %H:%M", time.gmtime(int(sde)))
+ else:
+ today = time.strftime("%Y-%m-%d %H:%M")
self._boilerplate([
"This file is auto-generated from keymaps.csv on %s" % today,
"Database checksum sha256(%s)" % database.mapchecksum,

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 5 20:03:11 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Make keycode-gen output reproducible (use SOURCE_DATE_EPOCH timestamp)
keycodemapdb-make-keycode-gen-output-reproducible.patch
-------------------------------------------------------------------
Thu Jul 25 20:51:23 UTC 2019 - Liang Yan <lyan@suse.com>

View File

@ -219,6 +219,7 @@ Patch1301: sgabios-fix-cross-build.patch
Patch1500: skiboot-gcc9-compat.patch
# keycodemapdb - path: ui/keycodemapdb (patch range 1600-1699) (Currently no patches)
Patch1600: keycodemapdb-make-keycode-gen-output-reproducible.patch
# openBIOS - path: roms/openbios (patch range 1700-1799) (Currently no patches)
@ -1047,6 +1048,7 @@ pushd roms/skiboot
popd
pushd ui/keycodemapdb
%patch1600 -p1
popd
pushd roms/openbios

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Aug 5 20:03:11 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Make keycode-gen output reproducible (use SOURCE_DATE_EPOCH timestamp)
keycodemapdb-make-keycode-gen-output-reproducible.patch
-------------------------------------------------------------------
Thu Jul 25 20:51:23 UTC 2019 - Liang Yan <lyan@suse.com>

View File

@ -219,6 +219,7 @@ Patch1301: sgabios-fix-cross-build.patch
Patch1500: skiboot-gcc9-compat.patch
# keycodemapdb - path: ui/keycodemapdb (patch range 1600-1699) (Currently no patches)
Patch1600: keycodemapdb-make-keycode-gen-output-reproducible.patch
# openBIOS - path: roms/openbios (patch range 1700-1799) (Currently no patches)
@ -1047,6 +1048,7 @@ pushd roms/skiboot
popd
pushd ui/keycodemapdb
%patch1600 -p1
popd
pushd roms/openbios

View File

@ -167,6 +167,7 @@ Patch1301: sgabios-fix-cross-build.patch
Patch1500: skiboot-gcc9-compat.patch
# keycodemapdb - path: ui/keycodemapdb (patch range 1600-1699) (Currently no patches)
Patch1600: keycodemapdb-make-keycode-gen-output-reproducible.patch
# openBIOS - path: roms/openbios (patch range 1700-1799) (Currently no patches)
@ -946,6 +947,7 @@ pushd roms/skiboot
popd
pushd ui/keycodemapdb
%patch1600 -p1
popd
pushd roms/openbios