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