1From 7ed5e15f2de747e383ba7eee66b646a7a66e6654 Mon Sep 17 00:00:00 2001
2From: Sergey Kostanbaev <sergey.kostanbaev@gmail.com>
3Date: Wed, 29 Dec 2021 12:30:12 -0800
4Subject: [PATCH] Do not run qtdetail
5
6
7qtdetail is a tool that generates qtdetail.out. Since this program is
8cross-compiled, it's not possible to run it on the host.
9
10Consequently, python-pyqt5.mk generates the qtdetail.out file before
11calling configure.py.
12
13Therefore, this patch makes sure that the pre-generated qtdetail.out
14file is kept, and that qtdetail is not executed.
15
16Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
17Signed-off-by: Sergey Kostanbaev <sergey.kostanbaev@gmail.com>
18Signed-off-by: Adam Duskett <aduskett@gmail.com>
19Refresh for 5.15.6
20
21diff --git a/configure.py b/configure.py
22index daa0f94..32f5b21 100644
23--- a/configure.py
24+++ b/configure.py
25@@ -2455,10 +2455,6 @@ def run_test_program(mname, test, verbose):
26
27     out_file = 'cfgtest_' + mname + '.out'
28
29-    # Create the output file, first making sure it doesn't exist.
30-    remove_file(out_file)
31-    run_command(test + ' ' + out_file, verbose)
32-
33     if not os.access(out_file, os.F_OK):
34         error("%s failed to create %s. Make sure your Qt installation is correct." % (test, out_file))
35
36--
372.33.1
38
39