[gnome-build-meta/tristan/fix-max-job-usage: 1/2] core-deps/argyll.bst: Fix max-jobs usage to avoid random cache key
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/tristan/fix-max-job-usage: 1/2] core-deps/argyll.bst: Fix max-jobs usage to avoid random cache key
- Date: Wed, 12 Sep 2018 11:54:18 +0000 (UTC)
commit e40633f3f0ddd3ec35502ecc8618f8915e9f7451
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]