mirror of
https://git.yoctoproject.org/poky
synced 2026-04-01 14:02:23 +02:00
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. (From OE-Core rev: b0aedd74f13b174861ff742eb503d8d343f9e714) Signed-off-by: Bastian Krause <bst@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 lines
922 B
BlitzBasic
28 lines
922 B
BlitzBasic
SUMMARY = "a fast C/C++ compiler cache"
|
|
DESCRIPTION = "ccache is a compiler cache. It speeds up recompilation \
|
|
by caching the result of previous compilations and detecting when the \
|
|
same compilation is being done again. Supported languages are C, C\+\+, \
|
|
Objective-C and Objective-C++."
|
|
HOMEPAGE = "http://ccache.samba.org"
|
|
SECTION = "devel"
|
|
|
|
LICENSE = "GPLv3+"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.adoc;md5=698a26b57e513d678e1e7727bf56395b"
|
|
|
|
DEPENDS = "zstd"
|
|
|
|
SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz \
|
|
file://0001-doc-allow-disabling-docs-man-page-generation.patch \
|
|
"
|
|
SRC_URI[sha256sum] = "320d2b17d2f76393e5d4bb28c8dee5ca783248e9cd23dff0654694d60f8a4b62"
|
|
|
|
UPSTREAM_CHECK_URI = "https://github.com/ccache/ccache/releases/"
|
|
|
|
inherit cmake
|
|
|
|
PATCHTOOL = "patch"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
PACKAGECONFIG[docs] = "-DBUILD_DOCS=ON,-DBUILD_DOCS=OFF,asciidoc"
|