Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 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 | |
| 4 | Replace the full paths with relative ones. I couldn't figure out how to get |
| 5 | meson to pass relative paths but we can fix that in the script. |
| 6 | |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 7 | Upstream-Status: Pending [some version of all/part of this may be accepted] |
| 8 | RP 2021/3/1 |
| 9 | |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 10 | Index: qemu-6.0.0/scripts/decodetree.py |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 11 | =================================================================== |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 12 | --- qemu-6.0.0.orig/scripts/decodetree.py |
| 13 | +++ qemu-6.0.0/scripts/decodetree.py |
| 14 | @@ -1304,7 +1304,7 @@ def main(): |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 15 | toppat = ExcMultiPattern(0) |
| 16 | |
| 17 | for filename in args: |
| 18 | - input_file = filename |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 19 | + input_file = os.path.relpath(filename) |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 20 | f = open(filename, 'rt', encoding='utf-8') |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 21 | parse_file(f, toppat) |
| 22 | f.close() |