determinism.patch 850 B

12345678910111213141516171819202122
  1. When sources are included within debug information, a couple of areas of the
  2. qemu build are not reproducible due to either full buildpaths or timestamps.
  3. Replace the full paths with relative ones. I couldn't figure out how to get
  4. meson to pass relative paths but we can fix that in the script.
  5. Upstream-Status: Pending [some version of all/part of this may be accepted]
  6. RP 2021/3/1
  7. Index: qemu-6.0.0/scripts/decodetree.py
  8. ===================================================================
  9. --- qemu-6.0.0.orig/scripts/decodetree.py
  10. +++ qemu-6.0.0/scripts/decodetree.py
  11. @@ -1304,7 +1304,7 @@ def main():
  12. toppat = ExcMultiPattern(0)
  13. for filename in args:
  14. - input_file = filename
  15. + input_file = os.path.relpath(filename)
  16. f = open(filename, 'rt', encoding='utf-8')
  17. parse_file(f, toppat)
  18. f.close()