Skip to content

Add dummy tools to help identify needed dependencies

Peter Kjellerstedt openembedded-core 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 0 repliesNew
  2. v35 patches 10 repliesSuperseded
  3. v25 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches1 replySuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6module.bbclass: Add inherit of pkgconfigmeta/classes/module.bbclass+1 -10 replies
2/6linux-libc-headers: Add inherit of pkgconfigmeta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc+1 -10 replies
3/6blacklisted/dbus-binding-tool: Add a dummy version that always failsscripts/blacklisted/dbus-binding-tool+11 -00 replies
4/6blacklisted/gdbus-codegen: Add a dummy version that always failsscripts/blacklisted/gdbus-codegen+11 -00 replies
5/6blacklisted/pkg-config: Add a dummy version that always failsscripts/blacklisted/pkg-config+16 -00 replies
6/6bitbake.conf: Add ${COREBASE}/scripts/blacklisted to ${PATH}meta/conf/bitbake.conf+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCHv4 0/6] Add dummy tools to help identify needed dependencies

After the introduction of RSS, I still found it hard to get dependencies on some common tools that are typically installed on the build host correct. Using the wrong version of tools like pkg-config, gdbus-codegen and dbus-binding-tool can cause build failures.

To circumvent this, I created dummy versions of the tools that always fail and placed them in the scripts directory. Thus, if the real tool has not been installed in the RSS, the dummy version is used and the build fails. For good measures I even output a message that says what needs to be corrected in the recipe.

Included is also an update to linux-libc-headers as it apparently needs to inherit pkgconfig, which the introduction of the dummy version of pkg-config showed.

PATCHv2: Also inherit pkgconfig in module.bbclass since pkg-config is needed for the make_scripts task.

PATCHv3: Add a missing Signed-off-by footer.

PATCHv4: Move the dummy scripts to scripts/blacklisted and add it to PATH in bitbake.conf.

//Peter

The following changes since commit 2e5181e510f3fffee53cfeab0380e8ad9b5ae60c:

testsdk: Fix lockfile patch (2017-03-03 12:21:09 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib pkj/dummy_tools
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/dummy_tools

Peter Kjellerstedt (6):
module.bbclass: Add inherit of pkgconfig
linux-libc-headers: Add inherit of pkgconfig blacklisted/dbus-binding-tool: Add a dummy version that always fails blacklisted/gdbus-codegen: Add a dummy version that always fails blacklisted/pkg-config: Add a dummy version that always fails bitbake.conf: Add ${COREBASE}/scripts/blacklisted to ${PATH}

 meta/classes/module.bbclass                              |  2 +-
 meta/conf/bitbake.conf                                   |  2 +-
 .../linux-libc-headers/linux-libc-headers.inc            |  2 +-
 scripts/blacklisted/dbus-binding-tool                    | 11 +++++++++++
 scripts/blacklisted/gdbus-codegen                        | 11 +++++++++++
 scripts/blacklisted/pkg-config                           | 16 ++++++++++++++++
 6 files changed, 41 insertions(+), 3 deletions(-)
 create mode 100755 scripts/blacklisted/dbus-binding-tool
 create mode 100755 scripts/blacklisted/gdbus-codegen
 create mode 100755 scripts/blacklisted/pkg-config
Signature · 1 line
2.9.0