[gnome-build-meta/tristan/fix-max-job-usage: 1/2] core-deps/argyll.bst: Fix max-jobs usage to avoid random cache key



commit 221616a3dfaa332230302aea78f72abcd0ba2dc1
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..7aa9d02 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]