21 lines
902 B
Diff
21 lines
902 B
Diff
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
|
|
|
|
+ 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")):
|
|
+ qemu = "qemu-{}-static".format(qemu_machine)
|
|
+ args.insert(0, qemu)
|
|
+ super().run_command(args, fatal=fatal)
|
|
+
|
|
def apply_user_defaults(self, tool):
|
|
""" Set default values where needed. """
|
|
|