[gnome-build-meta/tristan/fix-max-job-usage: 5/6] 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: 5/6] core-deps/argyll.bst: Fix max-jobs usage to avoid random cache key
- Date: Wed, 12 Sep 2018 06:41:52 +0000 (UTC)
commit 7260ee94f10d592c73df53267f3d197f9fe863d9
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]