[gnome-build-meta/tristan/fix-max-job-usage: 7/8] core-deps/argyll.bst: Fix max-jobs usage to avoid random cache key
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/tristan/fix-max-job-usage: 7/8] core-deps/argyll.bst: Fix max-jobs usage to avoid random cache key
- Date: Mon, 10 Sep 2018 11:31:50 +0000 (UTC)
commit 586999554876ca0c5f4503258b6337963a227428
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date: Mon Sep 10 19:55:44 2018 +0900
core-deps/argyll.bst: Fix max-jobs usage to avoid random cache key
The `max-jobs` variable is an automatic variable which should
not be fed to builds directly in the build commands, this will
cause random rebuilds to occur depending on how many jobs BuildStream
has decided to use, based on the host.
Fixed this by using the `environment-nocache` feature which was
designed specifically for this.
elements/core-deps/argyll.bst | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/elements/core-deps/argyll.bst b/elements/core-deps/argyll.bst
index 26a2730..75ee415 100644
--- a/elements/core-deps/argyll.bst
+++ b/elements/core-deps/argyll.bst
@@ -23,6 +23,10 @@ depends:
junction: freedesktop-sdk.bst
config:
build-commands:
- - jam -q -fJambase -j%{max-jobs}
+ - jam -q -fJambase -j${JOBS}
install-commands:
- - jam -q -fJambase -j%{max-jobs} DESTDIR=%{install-root} PREFIX=%{prefix} install
+ - jam -q -fJambase -j${JOBS} DESTDIR=%{install-root} PREFIX=%{prefix} install
+environment:
+ JOBS: '%{max-jobs}'
+environment-nocache:
+- JOBS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]