mirror of https://gitee.com/openkylin/qemu.git
roms/seabios-hppa: Use consistent date and remove hostname.
Two issues break reproducibility; the time and hostname get embedded in the resulting seabios binary. Simply drop the hostname from the embedded version string, as it shouldn't be needed in Debian package builds. Use the SOURCE_DATE_EPOCH environment variable to set the build date rather than the current time: https://reproducible-builds.org/docs/source-date-epoch/ Gbp-Pq: Name seabios-hppa-use-consistent-date-and-remove-hostname.patch Signed-off-by: Cong Liu <liucong2@kylinos.cn>
This commit is contained in:
parent
967217afcc
commit
ddf891909a
|
@ -125,9 +125,8 @@ def main():
|
|||
if not ver:
|
||||
ver = "?"
|
||||
if not cleanbuild:
|
||||
btime = time.strftime("%Y%m%d_%H%M%S")
|
||||
hostname = socket.gethostname()
|
||||
ver = "%s-%s-%s" % (ver, btime, hostname)
|
||||
btime = time.strftime("%Y%m%d_%H%M%S", time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))
|
||||
ver = "%s-%s" % (ver, btime)
|
||||
write_version(outfile, ver + options.extra, toolstr)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue