]> code.ossystems Code Review - openembedded-core.git/commit
ccache: add packageconfig docs option
authorBastian Krause <bst@pengutronix.de>
Wed, 12 May 2021 10:22:39 +0000 (12:22 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 22 May 2021 09:01:16 +0000 (10:01 +0100)
commit3ca3c890834152597d8440b77e3d2767ca72c7a6
treebc343a4abbbe4ed2bf4c21b0b769fc4b64b08ea9
parentfe468802f697d0be41cf3407df2460e1473e35f8
ccache: add packageconfig docs option

Before, ccache's configure stage built HTML documentation and man pages
depending on if asciidoc is installed. This patch makes it configurable.

Pass the new cmake option ENABLE_DOCUMENTATION along and add the
asciidoc dependency if necessary.

This fixes an issue when ccache's configure stage found asciidoc/a2x on
the system outside of the sysroot (e.g. installed via 'apt install
asciidoc'). ccache would then decide to build docs and manual pages, but
would fail during compilation: the system's a2x could not find the
system's asciidoc because it did not reside in the set PATH.

By enabling/disabling docs/man page generation explicitly and adding
asciidoc to DEPENDS as necessary, this is no longer an issue.

[ This corresponds to commit b0aedd74 and parts of commit 1eedc5f8,
  with the patch replaced by the upstream version. ]

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/ccache/ccache/0001-CMake-make-build-of-documentation-optional-842.patch [new file with mode: 0644]
meta/recipes-devtools/ccache/ccache_4.2.bb