0001-configure-skip-qtdetail.patch 1.2 KB

1234567891011121314151617181920212223242526272829
  1. Do not run qtdetail
  2. qtdetail is a tool that generates qtdetail.out. Since this program is
  3. cross-compiled, it's not possible to run it on the host.
  4. Consequently, python-pyqt5.mk generates the qtdetail.out file before
  5. calling configure.py.
  6. Therefore, this patch makes sure that the pre-generated qtdetail.out
  7. file is kept, and that qtdetail is not executed.
  8. Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
  9. Signed-off-by: Sergey Kostanbaev <sergey.kostanbaev@gmail.com>
  10. ---
  11. Index: PyQt5_gpl-5.7/configure.py
  12. ===================================================================
  13. --- PyQt5_gpl-5.7.orig/configure.py
  14. +++ PyQt5_gpl-5.7/configure.py
  15. @@ -672,10 +672,6 @@ int main(int argc, char **argv)
  16. if cmd is None:
  17. error("Failed to determine the detail of your Qt installation. Try again using the --verbose flag to see more detail about the problem.")
  18. - # Create the output file, first making sure it doesn't exist.
  19. - remove_file(out_file)
  20. - run_command(cmd, verbose)
  21. -
  22. if not os.access(out_file, os.F_OK):
  23. error("%s failed to create %s. Make sure your Qt installation is correct." % (cmd, out_file))