summaryrefslogtreecommitdiff
path: root/dev-python/pyside/files/pyside-6.10.1-pass-ninja-opts.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyside/files/pyside-6.10.1-pass-ninja-opts.patch')
-rw-r--r--dev-python/pyside/files/pyside-6.10.1-pass-ninja-opts.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-python/pyside/files/pyside-6.10.1-pass-ninja-opts.patch b/dev-python/pyside/files/pyside-6.10.1-pass-ninja-opts.patch
new file mode 100644
index 000000000000..0ce8eb2fbac8
--- /dev/null
+++ b/dev-python/pyside/files/pyside-6.10.1-pass-ninja-opts.patch
@@ -0,0 +1,20 @@
+Allows passing --load-average and not passing --jobs which would stop the jobserver from working.
+
+This is a Gentoo'ism so its not upstreamable in this form.
+
+diff --git a/build_scripts/main.py b/build_scripts/main.py
+index cdaa439ff..3e088961e 100644
+--- a/build_scripts/main.py
++++ b/build_scripts/main.py
+@@ -854,8 +854,8 @@ class PysideBuild(_build, CommandMixin, BuildInfoCollectorMixin):
+
+ log.info(f"-- Compiling module {extension}...")
+ cmd_make = [str(self.make_path)]
+- if OPTION["JOBS"]:
+- cmd_make.append(OPTION["JOBS"])
++ if self.make_generator == "Ninja":
++ cmd_make.extend(os.getenv("NINJAOPTS").split(' '))
+ if OPTION["LOG_LEVEL"] == LogLevel.VERBOSE and self.make_generator == "Ninja":
+ cmd_make.append("-v")
+ if run_process(cmd_make) != 0:
+