    user@host:~/integration-commands$ bst build hello.bst

    [--:--:--][][] STATUS  Cache usage recomputed: 12K / infinity (0%)
    [--:--:--][][] START   Build
    [--:--:--][][] START   Loading elements
    [00:00:00][][] SUCCESS Loading elements
    [--:--:--][][] START   Resolving elements
    [00:00:00][][] SUCCESS Resolving elements
    [--:--:--][][] START   Resolving cached state
    [00:00:00][][] SUCCESS Resolving cached state
    [--:--:--][][] START   Checking sources
    [00:00:00][][] SUCCESS Checking sources

    BuildStream Version 1.4.0
      Session Start: Monday, 02-09-2019 at 16:07:13
      Project:       integration-commands (/home/user/repos/buildstream/doc/examples/integration-commands)
      Targets:       hello.bst
      Cache Usage:   12K / infinity (0%)

    User Configuration
      Configuration File:      /home/user/repos/buildstream/doc/run-bst-5a2ho6_u/buildstream.conf
      Log Files:               /home/user/repos/buildstream/doc/run-bst-5a2ho6_u/logs
      Source Mirrors:          /home/user/.cache/buildstream/sources
      Build Area:              /home/user/repos/buildstream/doc/run-bst-5a2ho6_u/build
      Artifact Cache:          /home/user/repos/buildstream/doc/run-bst-5a2ho6_u/artifacts
      Strict Build Plan:       Yes
      Maximum Fetch Tasks:     10
      Maximum Build Tasks:     4
      Maximum Push Tasks:      4
      Maximum Network Retries: 2

    Pipeline
       buildable 8175172a6d0ef8e2aaaec63b6545b5e6571977c68d44b6c8325d2b31f91ee2fa base/alpine.bst
         waiting 499981895f448544e7bf88260c3567a75b9a963bce16ad3082644b1ca8986b9b base.bst
         waiting 3cc7855da0df0c55b74a4c39d854c15baca63b629c6e911277a3714bffe29654 libhello.bst
         waiting 8e37238eaf58697f9d49cfe777023d197225eebb76c0660490349cb87530c667 hello.bst
    ===============================================================================
    [--:--:--][8175172a][build:base/alpine.bst               ] START   integration-commands/base-alpine/8175172a-build.13344.log
    [--:--:--][8175172a][build:base/alpine.bst               ] START   Staging sources
    [00:00:04][8175172a][build:base/alpine.bst               ] SUCCESS Staging sources
    [--:--:--][8175172a][build:base/alpine.bst               ] START   Caching artifact
    [00:00:02][8175172a][build:base/alpine.bst               ] SUCCESS Caching artifact
    [00:00:07][8175172a][build:base/alpine.bst               ] SUCCESS integration-commands/base-alpine/8175172a-build.13344.log
    [--:--:--][49998189][build:base.bst                      ] START   integration-commands/base/49998189-build.13347.log
    [--:--:--][49998189][build:base.bst                      ] START   Caching artifact
    [00:00:00][49998189][build:base.bst                      ] SUCCESS Caching artifact
    [00:00:00][49998189][build:base.bst                      ] SUCCESS integration-commands/base/49998189-build.13347.log
    [--:--:--][3cc7855d][build:libhello.bst                  ] START   integration-commands/libhello/3cc7855d-build.13349.log
    [--:--:--][3cc7855d][build:libhello.bst                  ] START   Staging dependencies
    [00:00:00][3cc7855d][build:libhello.bst                  ] SUCCESS Staging dependencies
    [--:--:--][3cc7855d][build:libhello.bst                  ] START   Integrating sandbox
    [--:--:--][3cc7855d][build:libhello.bst                  ] STATUS  Running integration command

        ldconfig "/usr/lib"

    [00:00:00][3cc7855d][build:libhello.bst                  ] SUCCESS Integrating sandbox
    [--:--:--][3cc7855d][build:libhello.bst                  ] START   Staging sources
    [00:00:00][3cc7855d][build:libhello.bst                  ] SUCCESS Staging sources
    [--:--:--][3cc7855d][build:libhello.bst                  ] START   Running build-commands
    [--:--:--][3cc7855d][build:libhello.bst                  ] STATUS  Running build-commands

        make PREFIX="/usr"

    [00:00:00][3cc7855d][build:libhello.bst                  ] SUCCESS Running build-commands
    [--:--:--][3cc7855d][build:libhello.bst                  ] START   Running install-commands
    [--:--:--][3cc7855d][build:libhello.bst                  ] STATUS  Running install-commands

        make -j1 PREFIX="/usr" DESTDIR="/buildstream-install" install

    [00:00:00][3cc7855d][build:libhello.bst                  ] SUCCESS Running install-commands
    [--:--:--][3cc7855d][build:libhello.bst                  ] START   Running strip-commands
    [--:--:--][3cc7855d][build:libhello.bst                  ] STATUS  Running strip-commands

        cd "/buildstream-install" && find -type f \
          '(' -perm -111 -o -name '*.so*' \
              -o -name '*.cmxs' -o -name '*.node' ')' \
          -exec sh -ec \
          'read -n4 hdr <"$1" # check for elf header
           if [ "$hdr" != "$(printf \\x7fELF)" ]; then
               exit 0
           fi
           debugfile="/buildstream-install/usr/lib/debug/$1"
           mkdir -p "$(dirname "$debugfile")"
           objcopy --only-keep-debug --compress-debug-sections "$1" "$debugfile"
           chmod 644 "$debugfile"
           strip --remove-section=.comment --remove-section=.note --strip-unneeded "$1"
           objcopy --add-gnu-debuglink "$debugfile" "$1"' - {} ';'

    [00:00:00][3cc7855d][build:libhello.bst                  ] SUCCESS Running strip-commands
    [--:--:--][3cc7855d][build:libhello.bst                  ] START   Caching artifact
    [00:00:00][3cc7855d][build:libhello.bst                  ] SUCCESS Caching artifact
    [00:00:01][3cc7855d][build:libhello.bst                  ] SUCCESS integration-commands/libhello/3cc7855d-build.13349.log
    [--:--:--][8e37238e][build:hello.bst                     ] START   integration-commands/hello/8e37238e-build.13398.log
    [--:--:--][8e37238e][build:hello.bst                     ] START   Staging dependencies
    [00:00:00][8e37238e][build:hello.bst                     ] SUCCESS Staging dependencies
    [--:--:--][8e37238e][build:hello.bst                     ] START   Integrating sandbox
    [--:--:--][8e37238e][build:hello.bst                     ] STATUS  Running integration command

        ldconfig "/usr/lib"

    [00:00:00][8e37238e][build:hello.bst                     ] SUCCESS Integrating sandbox
    [--:--:--][8e37238e][build:hello.bst                     ] START   Staging sources
    [00:00:00][8e37238e][build:hello.bst                     ] SUCCESS Staging sources
    [--:--:--][8e37238e][build:hello.bst                     ] START   Running build-commands
    [--:--:--][8e37238e][build:hello.bst                     ] STATUS  Running build-commands

        make PREFIX="/usr"

    [00:00:00][8e37238e][build:hello.bst                     ] SUCCESS Running build-commands
    [--:--:--][8e37238e][build:hello.bst                     ] START   Running install-commands
    [--:--:--][8e37238e][build:hello.bst                     ] STATUS  Running install-commands

        make -j1 PREFIX="/usr" DESTDIR="/buildstream-install" install

    [00:00:00][8e37238e][build:hello.bst                     ] SUCCESS Running install-commands
    [--:--:--][8e37238e][build:hello.bst                     ] START   Running strip-commands
    [--:--:--][8e37238e][build:hello.bst                     ] STATUS  Running strip-commands

        cd "/buildstream-install" && find -type f \
          '(' -perm -111 -o -name '*.so*' \
              -o -name '*.cmxs' -o -name '*.node' ')' \
          -exec sh -ec \
          'read -n4 hdr <"$1" # check for elf header
           if [ "$hdr" != "$(printf \\x7fELF)" ]; then
               exit 0
           fi
           debugfile="/buildstream-install/usr/lib/debug/$1"
           mkdir -p "$(dirname "$debugfile")"
           objcopy --only-keep-debug --compress-debug-sections "$1" "$debugfile"
           chmod 644 "$debugfile"
           strip --remove-section=.comment --remove-section=.note --strip-unneeded "$1"
           objcopy --add-gnu-debuglink "$debugfile" "$1"' - {} ';'

    [00:00:00][8e37238e][build:hello.bst                     ] SUCCESS Running strip-commands
    [--:--:--][8e37238e][build:hello.bst                     ] START   Caching artifact
    [00:00:00][8e37238e][build:hello.bst                     ] SUCCESS Caching artifact
    [00:00:00][8e37238e][build:hello.bst                     ] SUCCESS integration-commands/hello/8e37238e-build.13398.log
    [00:00:10][][] SUCCESS Build

    Pipeline Summary
      Total:       4
      Session:     4
      Fetch Queue: processed 0, skipped 4, failed 0
      Build Queue: processed 4, skipped 0, failed 0