diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2019-06-25 13:06:50 +0100 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2019-07-08 16:16:12 +0100 |
commit | bf94f5e86a900a3342cb4fb22f7c5f9af7aeffac (patch) | |
tree | 54626cf5497a58b11fbc34042a8ce56397318d35 | |
parent | e7767db61331445e54651ec4da490db70856339a (diff) | |
download | buildstream-tlater/freedesktop.tar.gz |
Reword documentation to talk about freedesktop-sdk, not alpinetlater/freedesktop
-rw-r--r-- | doc/source/advanced-features/junction-elements.rst | 2 | ||||
-rw-r--r-- | doc/source/format_declaring.rst | 2 | ||||
-rw-r--r-- | doc/source/tutorial/autotools.rst | 8 | ||||
-rw-r--r-- | doc/source/tutorial/integration-commands.rst | 17 | ||||
-rw-r--r-- | doc/source/tutorial/running-commands.rst | 37 | ||||
-rw-r--r-- | tests/examples/autotools.py | 2 |
6 files changed, 43 insertions, 25 deletions
diff --git a/doc/source/advanced-features/junction-elements.rst b/doc/source/advanced-features/junction-elements.rst index b6065d344..aca993f33 100644 --- a/doc/source/advanced-features/junction-elements.rst +++ b/doc/source/advanced-features/junction-elements.rst @@ -1,5 +1,7 @@ +.. _junction_elements: + Junction elements ================= BuildStream's junction elements are used to import other BuildStream diff --git a/doc/source/format_declaring.rst b/doc/source/format_declaring.rst index a38973347..afb602d82 100644 --- a/doc/source/format_declaring.rst +++ b/doc/source/format_declaring.rst @@ -549,7 +549,7 @@ read-only variables are also dynamically declared by BuildStream: * ``element-name`` - The name of the element being processed (e.g base/alpine.bst). + The name of the element being processed (e.g ``base/freedesktop.bst``). * ``project-name`` diff --git a/doc/source/tutorial/autotools.rst b/doc/source/tutorial/autotools.rst index ea2835838..0fbab8c3d 100644 --- a/doc/source/tutorial/autotools.rst +++ b/doc/source/tutorial/autotools.rst @@ -47,10 +47,10 @@ added another :ref:`source alias <project_source_aliases>` for ``gnu``, the loca from which we're going to download the ``automake`` tarball. -``elements/base/alpine.bst`` and ``elements/base.bst`` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The alpine base and base stack element are defined in the -same way as in the last chapter: :ref:`tutorial_running_commands`. +``elements/base/freedesktop.bst`` and ``elements/base.bst`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +The freedesktop base and base stack element are defined in the same +way as in the last chapter: :ref:`tutorial_running_commands`. ``elements/hello.bst`` diff --git a/doc/source/tutorial/integration-commands.rst b/doc/source/tutorial/integration-commands.rst index ead5be8b2..8f0c57246 100644 --- a/doc/source/tutorial/integration-commands.rst +++ b/doc/source/tutorial/integration-commands.rst @@ -37,13 +37,13 @@ The project.conf and base stack :mod:`stack <elements.stack>` element are config same way as in the previous chapter: :ref:`tutorial_running_commands`. -``elements/base/alpine.bst`` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +``elements/base/freedesktop.bst`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. literalinclude:: ../../examples/integration-commands/elements/base/alpine.bst +.. literalinclude:: ../../examples/integration-commands/elements/base/freedesktop.bst :language: yaml -This is the same ``base/alpine.bst`` we've seen in previous chapters, +This is the same ``base/freedesktop.bst`` we've seen in previous chapters, except that we've added an :ref:`integration command <public_integration>`. This informs BuildStream that whenever the output of this element is @@ -91,10 +91,11 @@ following way: .. raw:: html :file: ../sessions/integration-commands-build.html -Observe in the build process above, the integration command declared on the -``base/alpine.bst`` element is run after staging the dependency artifacts -into the build sandbox and before running any of the build commands, for -both of the ``libhello.bst`` and ``hello.bst`` elements. +Observe in the build process above, the integration command declared +on the ``base/freedesktop.bst`` element is run after staging the +dependency artifacts into the build sandbox and before running any of +the build commands, for both of the ``libhello.bst`` and ``hello.bst`` +elements. BuildStream assumes that commands which are to be run in the build sandbox need to be run in an *integrated* sandbox. diff --git a/doc/source/tutorial/running-commands.rst b/doc/source/tutorial/running-commands.rst index 1708145d8..7de6c02d0 100644 --- a/doc/source/tutorial/running-commands.rst +++ b/doc/source/tutorial/running-commands.rst @@ -70,7 +70,7 @@ in detail. :language: yaml Our ``project.conf`` is very much like the last one, except that we -have defined a :ref:`source alias <project_source_aliases>` for ``alpine``. +have defined a :ref:`source alias <project_source_aliases>` for ``freedesktop``. .. tip:: @@ -79,19 +79,34 @@ have defined a :ref:`source alias <project_source_aliases>` for ``alpine``. change the access scheme or URL for a group of repositories which belong together. -``elements/base/alpine.bst`` -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +``elements/base/freedesktop.bst`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. literalinclude:: ../../examples/running-commands/elements/base/alpine.bst +.. literalinclude:: ../../examples/running-commands/elements/base/freedesktop.bst :language: yaml -This :mod:`import <elements.import>` element uses a :mod:`tar <sources.tar>` -source to download our Alpine Linux tarball to create our base runtime. +This :mod:`import <elements.import>` element uses a :mod:`tar +<sources.tar>` source to download our freedesktop-sdk Linux tarball to +create our base runtime. This tarball is a sysroot which provides the C runtime libraries and some programs - this is what will be providing the programs we're going to run in this example. +.. note:: + + The tarball used here is built with BuildStream, it consists of + everything included in the BuildStream-facing part of + `freedesktop-sdk <https://freedesktop-sdk.io/>`_ (specifically, + ``public-stacks/buildsystems.bst``, but don't worry if you don't + understand what's going on there yet). + + While we use it as a tarball here, freedesktop-sdk is a BuildStream + project, so we could alternatively depend on it as a :ref:`junction + element <junction_elements>`, but avoid doing this here to + introduce concepts slowly. We do recommend using a junction for + more serious projects! + ``elements/base.bst`` ~~~~~~~~~~~~~~~~~~~~~ @@ -100,7 +115,7 @@ going to run in this example. :language: yaml This is just a symbolic :mod:`stack <elements.stack>` element which declares that -anything which depends on it, will implicitly depend on ``base/alpine.bst``. +anything which depends on it, will implicitly depend on ``base/freedesktop.bst``. It is typical to use stack elements in places where the implementing logical software stack could change, but you rather not have your higher level components @@ -108,7 +123,7 @@ carry knowledge about those changing components. Any element which :ref:`runtime depends <format_dependencies_types>` on the ``base.bst`` will now be able to execute programs provided by the imported -``base/alpine.bst`` runtime. +``base/freedesktop.bst`` runtime. ``elements/hello.bst`` @@ -171,11 +186,11 @@ following way: :file: ../sessions/running-commands-build.html Now we've built our hello world program, using ``make`` -and the C compiler provided by the Alpine Linux image. +and the C compiler provided by Freedesktop-sdk. In the :ref:`first chapter <tutorial_first_project>` we observed that the inputs and output of an element are *directory trees*. In this example, the directory tree -generated by ``base/alpine.bst`` is consumed by ``hello.bst`` due to the +generated by ``base/freedesktop.bst`` is consumed by ``hello.bst`` due to the :ref:`implicit runtime dependency <format_dependencies_types>` introduced by ``base.bst``. .. tip:: @@ -184,7 +199,7 @@ generated by ``base/alpine.bst`` is consumed by ``hello.bst`` due to the the sake of a build, are staged at the root of the build sandbox. These comprise the runtime environment in which the depending element will run commands. - The result is that the ``make`` program and C compiler provided by ``base/alpine.bst`` + The result is that the ``make`` program and C compiler provided by ``base/freedesktop.bst`` were already in ``$PATH`` and ready to run when the commands were needed by ``hello.bst``. Now observe that all of the elements in the loaded pipeline are ``cached``, diff --git a/tests/examples/autotools.py b/tests/examples/autotools.py index ca311c4bb..a4e5b8817 100644 --- a/tests/examples/autotools.py +++ b/tests/examples/autotools.py @@ -15,7 +15,7 @@ DATA_DIR = os.path.join( ) -# Tests a build of the autotools amhello project on a alpine-linux base runtime +# Tests a build of the autotools amhello project on a freedesktop base runtime @pytest.mark.skipif(MACHINE_ARCH != 'x86-64', reason='Examples are written for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap') |