Angelos Evripiotis pushed to branch aevri/empty_manual at BuildStream / buildstream
Commits:
-
f1aa0974
by Javier Jardón at 2018-10-18T14:13:35Z
-
f1550c8e
by Valentin David at 2018-10-18T16:02:45Z
-
1c24979a
by Angelos Evripiotis at 2018-10-19T21:17:01Z
-
43a2eee3
by Angelos Evripiotis at 2018-10-19T21:48:59Z
-
28e96b18
by Angelos Evripiotis at 2018-10-20T10:21:26Z
24 changed files:
- NEWS
- buildstream/_artifactcache/artifactcache.py
- buildstream/_context.py
- buildstream/_includes.py
- buildstream/_loader/loadelement.py
- buildstream/_loader/loader.py
- buildstream/_options/optionpool.py
- buildstream/_project.py
- buildstream/_scheduler/queues/queue.py
- buildstream/_versions.py
- buildstream/_yaml.py
- buildstream/buildelement.py
- buildstream/element.py
- buildstream/plugin.py
- buildstream/plugins/elements/autotools.yaml
- buildstream/plugins/elements/cmake.yaml
- buildstream/plugins/elements/junction.py
- buildstream/plugins/elements/make.yaml
- buildstream/plugins/elements/manual.yaml
- buildstream/plugins/elements/meson.yaml
- buildstream/plugins/elements/qmake.yaml
- buildstream/plugins/sources/git.py
- buildstream/source.py
- tests/yaml/yaml.py
Changes:
| ... | ... | @@ -2,6 +2,12 @@ |
| 2 | 2 |
buildstream 1.3.1
|
| 3 | 3 |
=================
|
| 4 | 4 |
|
| 5 |
+ o BREAKING CHANGE: The 'manual' element lost its default 'MAKEFLAGS' and 'V'
|
|
| 6 |
+ environment variables. There is already a 'make' element with the same
|
|
| 7 |
+ variables. Note that this is a breaking change, it will require users to
|
|
| 8 |
+ make changes to their .bst files if they are expecting these environment
|
|
| 9 |
+ variable to be set.
|
|
| 10 |
+ |
|
| 5 | 11 |
o Failed builds are included in the cache as well.
|
| 6 | 12 |
`bst checkout` will provide anything in `%{install-root}`.
|
| 7 | 13 |
A build including cached fails will cause any dependant elements
|
| ... | ... | @@ -19,7 +19,8 @@ |
| 19 | 19 |
|
| 20 | 20 |
import os
|
| 21 | 21 |
import string
|
| 22 |
-from collections import Mapping, namedtuple
|
|
| 22 |
+from collections import namedtuple
|
|
| 23 |
+from collections.abc import Mapping
|
|
| 23 | 24 |
|
| 24 | 25 |
from ..types import _KeyStrength
|
| 25 | 26 |
from .._exceptions import ArtifactError, ImplError, LoadError, LoadErrorReason
|
| ... | ... | @@ -19,7 +19,8 @@ |
| 19 | 19 |
|
| 20 | 20 |
import os
|
| 21 | 21 |
import datetime
|
| 22 |
-from collections import deque, Mapping
|
|
| 22 |
+from collections import deque
|
|
| 23 |
+from collections.abc import Mapping
|
|
| 23 | 24 |
from contextlib import contextmanager
|
| 24 | 25 |
from . import utils
|
| 25 | 26 |
from . import _cachekey
|
| 1 | 1 |
import os
|
| 2 |
-from collections import Mapping
|
|
| 2 |
+from collections.abc import Mapping
|
|
| 3 | 3 |
from . import _yaml
|
| 4 | 4 |
from ._exceptions import LoadError, LoadErrorReason
|
| 5 | 5 |
|
| ... | ... | @@ -18,7 +18,7 @@ |
| 18 | 18 |
# Tristan Van Berkom <tristan vanberkom codethink co uk>
|
| 19 | 19 |
|
| 20 | 20 |
# System imports
|
| 21 |
-from collections import Mapping
|
|
| 21 |
+from collections.abc import Mapping
|
|
| 22 | 22 |
|
| 23 | 23 |
# BuildStream toplevel imports
|
| 24 | 24 |
from .._exceptions import LoadError, LoadErrorReason
|
| ... | ... | @@ -19,7 +19,8 @@ |
| 19 | 19 |
|
| 20 | 20 |
import os
|
| 21 | 21 |
from functools import cmp_to_key
|
| 22 |
-from collections import Mapping, namedtuple
|
|
| 22 |
+from collections import namedtuple
|
|
| 23 |
+from collections.abc import Mapping
|
|
| 23 | 24 |
import tempfile
|
| 24 | 25 |
import shutil
|
| 25 | 26 |
|
| ... | ... | @@ -18,7 +18,7 @@ |
| 18 | 18 |
# Tristan Van Berkom <tristan vanberkom codethink co uk>
|
| 19 | 19 |
#
|
| 20 | 20 |
|
| 21 |
-from collections import Mapping
|
|
| 21 |
+from collections.abc import Mapping
|
|
| 22 | 22 |
import jinja2
|
| 23 | 23 |
|
| 24 | 24 |
from .. import _yaml
|
| ... | ... | @@ -19,7 +19,8 @@ |
| 19 | 19 |
# Tiago Gomes <tiago gomes codethink co uk>
|
| 20 | 20 |
|
| 21 | 21 |
import os
|
| 22 |
-from collections import Mapping, OrderedDict
|
|
| 22 |
+from collections import OrderedDict
|
|
| 23 |
+from collections.abc import Mapping
|
|
| 23 | 24 |
from pluginbase import PluginBase
|
| 24 | 25 |
from . import utils
|
| 25 | 26 |
from . import _cachekey
|
| ... | ... | @@ -208,7 +208,7 @@ class Queue(): |
| 208 | 208 |
# This will have different results for elements depending
|
| 209 | 209 |
# on the Queue.status() implementation.
|
| 210 | 210 |
#
|
| 211 |
- # o Elements which are QueueStatus.WAIT will not be effected
|
|
| 211 |
+ # o Elements which are QueueStatus.WAIT will not be affected
|
|
| 212 | 212 |
#
|
| 213 | 213 |
# o Elements which are QueueStatus.SKIP will move directly
|
| 214 | 214 |
# to the dequeue pool
|
| ... | ... | @@ -23,7 +23,7 @@ |
| 23 | 23 |
# This version is bumped whenever enhancements are made
|
| 24 | 24 |
# to the `project.conf` format or the core element format.
|
| 25 | 25 |
#
|
| 26 |
-BST_FORMAT_VERSION = 17
|
|
| 26 |
+BST_FORMAT_VERSION = 18
|
|
| 27 | 27 |
|
| 28 | 28 |
|
| 29 | 29 |
# The base BuildStream artifact version
|
| ... | ... | @@ -972,7 +972,7 @@ def node_validate(node, valid_keys): |
| 972 | 972 |
#
|
| 973 | 973 |
# The purpose of this is to create a virtual copy-on-write
|
| 974 | 974 |
# copy of a dictionary, so that mutating it in any way does
|
| 975 |
-# not effect the underlying dictionaries.
|
|
| 975 |
+# not affect the underlying dictionaries.
|
|
| 976 | 976 |
#
|
| 977 | 977 |
# collections.ChainMap covers this already mostly, but fails
|
| 978 | 978 |
# to record internal state so as to hide keys which have been
|
| ... | ... | @@ -176,7 +176,7 @@ class BuildElement(Element): |
| 176 | 176 |
|
| 177 | 177 |
# Specifying notparallel for a given element effects the
|
| 178 | 178 |
# cache key, while having the side effect of setting max-jobs to 1,
|
| 179 |
- # which is normally automatically resolved and does not effect
|
|
| 179 |
+ # which is normally automatically resolved and does not affect
|
|
| 180 | 180 |
# the cache key.
|
| 181 | 181 |
if self.get_variable('notparallel'):
|
| 182 | 182 |
dictionary['notparallel'] = True
|
| ... | ... | @@ -76,7 +76,8 @@ import os |
| 76 | 76 |
import re
|
| 77 | 77 |
import stat
|
| 78 | 78 |
import copy
|
| 79 |
-from collections import Mapping, OrderedDict
|
|
| 79 |
+from collections import OrderedDict
|
|
| 80 |
+from collections.abc import Mapping
|
|
| 80 | 81 |
from contextlib import contextmanager
|
| 81 | 82 |
import tempfile
|
| 82 | 83 |
import shutil
|
| ... | ... | @@ -266,7 +266,7 @@ class Plugin(): |
| 266 | 266 |
such as an sha256 sum of a tarball content.
|
| 267 | 267 |
|
| 268 | 268 |
Elements and Sources should implement this by collecting any configurations
|
| 269 |
- which could possibly effect the output and return a dictionary of these settings.
|
|
| 269 |
+ which could possibly affect the output and return a dictionary of these settings.
|
|
| 270 | 270 |
|
| 271 | 271 |
For Sources, this is guaranteed to only be called if
|
| 272 | 272 |
:func:`Source.get_consistency() <buildstream.source.Source.get_consistency>`
|
| ... | ... | @@ -123,7 +123,7 @@ environment: |
| 123 | 123 |
V: 1
|
| 124 | 124 |
|
| 125 | 125 |
# And dont consider MAKEFLAGS or V as something which may
|
| 126 |
-# effect build output.
|
|
| 126 |
+# affect build output.
|
|
| 127 | 127 |
environment-nocache:
|
| 128 | 128 |
- MAKEFLAGS
|
| 129 | 129 |
- V
|
| ... | ... | @@ -66,7 +66,7 @@ environment: |
| 66 | 66 |
V: 1
|
| 67 | 67 |
|
| 68 | 68 |
# And dont consider JOBS or V as something which may
|
| 69 |
-# effect build output.
|
|
| 69 |
+# affect build output.
|
|
| 70 | 70 |
environment-nocache:
|
| 71 | 71 |
- JOBS
|
| 72 | 72 |
- V
|
| ... | ... | @@ -124,7 +124,7 @@ the user to resolve possibly conflicting nested junctions by creating a junction |
| 124 | 124 |
with the same name in the top-level project, which then takes precedence.
|
| 125 | 125 |
"""
|
| 126 | 126 |
|
| 127 |
-from collections import Mapping
|
|
| 127 |
+from collections.abc import Mapping
|
|
| 128 | 128 |
from buildstream import Element
|
| 129 | 129 |
from buildstream._pipeline import PipelineError
|
| 130 | 130 |
|
| ... | ... | @@ -36,7 +36,7 @@ environment: |
| 36 | 36 |
V: 1
|
| 37 | 37 |
|
| 38 | 38 |
# And dont consider MAKEFLAGS or V as something which may
|
| 39 |
-# effect build output.
|
|
| 39 |
+# affect build output.
|
|
| 40 | 40 |
environment-nocache:
|
| 41 | 41 |
- MAKEFLAGS
|
| 42 | 42 |
- V
|
| 1 |
-# No variables added for the manual element by default, set
|
|
| 2 |
-# this if you plan to use make, and the sources cannot handle
|
|
| 3 |
-# parallelization.
|
|
| 4 |
-#
|
|
| 5 |
-# variables:
|
|
| 6 |
-#
|
|
| 7 |
-# notparallel: True
|
|
| 8 |
- |
|
| 9 | 1 |
# Manual build element does not provide any default
|
| 10 | 2 |
# build commands
|
| 11 | 3 |
config:
|
| ... | ... | @@ -28,14 +20,3 @@ config: |
| 28 | 20 |
strip-commands:
|
| 29 | 21 |
- |
|
| 30 | 22 |
%{strip-binaries}
|
| 31 |
- |
|
| 32 |
-# Use max-jobs CPUs for building and enable verbosity
|
|
| 33 |
-environment:
|
|
| 34 |
- MAKEFLAGS: -j%{max-jobs}
|
|
| 35 |
- V: 1
|
|
| 36 |
- |
|
| 37 |
-# And dont consider MAKEFLAGS or V as something which may
|
|
| 38 |
-# effect build output.
|
|
| 39 |
-environment-nocache:
|
|
| 40 |
-- MAKEFLAGS
|
|
| 41 |
-- V
|
| ... | ... | @@ -74,6 +74,6 @@ environment: |
| 74 | 74 |
%{max-jobs}
|
| 75 | 75 |
|
| 76 | 76 |
# And dont consider NINJAJOBS as something which may
|
| 77 |
-# effect build output.
|
|
| 77 |
+# affect build output.
|
|
| 78 | 78 |
environment-nocache:
|
| 79 | 79 |
- NINJAJOBS
|
| ... | ... | @@ -44,7 +44,7 @@ environment: |
| 44 | 44 |
V: 1
|
| 45 | 45 |
|
| 46 | 46 |
# And dont consider MAKEFLAGS or V as something which may
|
| 47 |
-# effect build output.
|
|
| 47 |
+# affect build output.
|
|
| 48 | 48 |
environment-nocache:
|
| 49 | 49 |
- MAKEFLAGS
|
| 50 | 50 |
- V
|
| ... | ... | @@ -89,7 +89,7 @@ import os |
| 89 | 89 |
import errno
|
| 90 | 90 |
import re
|
| 91 | 91 |
import shutil
|
| 92 |
-from collections import Mapping
|
|
| 92 |
+from collections.abc import Mapping
|
|
| 93 | 93 |
from io import StringIO
|
| 94 | 94 |
|
| 95 | 95 |
from configparser import RawConfigParser
|
| ... | ... | @@ -415,7 +415,7 @@ class GitSource(Source): |
| 415 | 415 |
def get_unique_key(self):
|
| 416 | 416 |
# Here we want to encode the local name of the repository and
|
| 417 | 417 |
# the ref, if the user changes the alias to fetch the same sources
|
| 418 |
- # from another location, it should not effect the cache key.
|
|
| 418 |
+ # from another location, it should not affect the cache key.
|
|
| 419 | 419 |
key = [self.original_url, self.mirror.ref]
|
| 420 | 420 |
|
| 421 | 421 |
# Only modify the cache key with checkout_submodules if it's something
|
| ... | ... | @@ -155,7 +155,7 @@ Class Reference |
| 155 | 155 |
"""
|
| 156 | 156 |
|
| 157 | 157 |
import os
|
| 158 |
-from collections import Mapping
|
|
| 158 |
+from collections.abc import Mapping
|
|
| 159 | 159 |
from contextlib import contextmanager
|
| 160 | 160 |
|
| 161 | 161 |
from . import Plugin, Consistency
|
| 1 | 1 |
import os
|
| 2 | 2 |
import pytest
|
| 3 | 3 |
import tempfile
|
| 4 |
-from collections import Mapping
|
|
| 4 |
+from collections.abc import Mapping
|
|
| 5 | 5 |
|
| 6 | 6 |
from buildstream import _yaml
|
| 7 | 7 |
from buildstream._exceptions import LoadError, LoadErrorReason
|
