From ab502d69a242fdf833927b17a5708e3032d9de1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 24 Feb 2023 20:53:09 +0700 Subject: [PATCH] python3-pyqt6: fix cross build --- .../python3-pyqt6/patches/pyproject-cross.patch | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/srcpkgs/python3-pyqt6/patches/pyproject-cross.patch b/srcpkgs/python3-pyqt6/patches/pyproject-cross.patch index eba520ffc6a..82cf22dc233 100644 --- a/srcpkgs/python3-pyqt6/patches/pyproject-cross.patch +++ b/srcpkgs/python3-pyqt6/patches/pyproject-cross.patch @@ -1,16 +1,14 @@ -Index: PyQt6-6.1.0/project.py -=================================================================== ---- PyQt6-6.1.0.orig/project.py -+++ PyQt6-6.1.0/project.py -@@ -49,6 +49,15 @@ class PyQt(PyQtProject): - # QtNfc, QtPositioning, QtLocation, QtRemoteObjects, QtSensors, - # QtSerialPort, QtTextToSpeech, QtWebChannel, QtWebSockets +--- a/project.py ++++ b/project.py +@@ -54,6 +54,15 @@ class PyQt(PyQtProject): + QtSerialPort, QtWebChannel, QtWebSockets, QtBluetooth, QtNfc, + QtPdf, QtPdfWidgets, QtTextToSpeech, QAxContainer] + def run_command(self, args, *, fatal=True): + """ Run a command and display the output if requested. """ + qemu_machine = os.environ.get("XBPS_TARGET_QEMU_MACHINE") + builddir = os.environ.get("XBPS_BUILDDIR") -+ if qemu_machine and args[0].startswith(os.path.join(builddir, "PyQt6")): ++ if qemu_machine and args[0].startswith(os.path.join(builddir, "python3-pyqt6")): + qemu = "qemu-{}-static".format(qemu_machine) + args.insert(0, qemu) + super().run_command(args, fatal=fatal)