]> code.ossystems Code Review - openembedded-core.git/commit
ccache: add packageconfig docs option
authorBastian Krause <bst@pengutronix.de>
Tue, 4 May 2021 11:39:28 +0000 (13:39 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 May 2021 07:41:21 +0000 (08:41 +0100)
commitb0aedd74f13b174861ff742eb503d8d343f9e714
tree936522b48b64ca0f49d084a324cce80e01194454
parent231c99728da9d81c9430a2aa62239ce28734ef4a
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 BUILD_DOCS 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.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/ccache/ccache/0001-doc-allow-disabling-docs-man-page-generation.patch [new file with mode: 0644]
meta/recipes-devtools/ccache/ccache_4.2.1.bb