Warning, /graphics/krita/3rdparty/ext_pyqt/0001-Fix-building-pyqt-on-Windows.patch is written in an unsupported language. File is not indexed.

0001 From 95a19b641810128da9e01768fc0e706266cbca0b Mon Sep 17 00:00:00 2001
0002 From: Dmitry Kazakov <dimula73@gmail.com>
0003 Date: Fri, 28 Jul 2023 15:25:49 +0200
0004 Subject: [PATCH] Fix building pyqt on Windows
0005 
0006 For some reason, when we write
0007 
0008 distinfo.extra = \\?\C:\dev\env-2\i\bin\sip-distinfo --inventory <...>
0009 
0010 in PyQt5.pro, then this line is incorrectly converted into Makefile as
0011 
0012 \?\C:\dev\env-2\i\bin\sip-distinfo --inventory <...>
0013 
0014 That is, the first backslash is lost. This path just workarounds the issue
0015 by stripping UNC-path that is leaked from argv[0] of sip-build.exe
0016 ---
0017  pyqtbuild/builder.py | 2 +-
0018  1 file changed, 1 insertion(+), 1 deletion(-)
0019 
0020 diff --git a/pyqtbuild/builder.py b/pyqtbuild/builder.py
0021 index c5dbe04..e922a38 100644
0022 --- a/pyqtbuild/builder.py
0023 +++ b/pyqtbuild/builder.py
0024 @@ -63,7 +63,7 @@ class QmakeBuilder(Builder):
0025              if tool != 'pep517':
0026                  self._sip_distinfo = os.path.join(
0027                          os.path.abspath(os.path.dirname(
0028 -                            sys.argv[0]).replace('\\', '/')),
0029 +                            sys.argv[0]).removeprefix('\\\\?\\').replace('\\', '/')),
0030                          self._sip_distinfo)
0031  
0032              # Check we have a qmake.
0033 -- 
0034 2.38.1.windows.1
0035