mirror of
https://git.yoctoproject.org/poky
synced 2026-03-12 02:09:39 +01: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 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. ] (From OE-Core rev: 3ca3c890834152597d8440b77e3d2767ca72c7a6) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 lines
938 B
BlitzBasic
28 lines
938 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=28afb89f649f309e7ac1aab554564637"
|
|
|
|
DEPENDS = "zstd"
|
|
|
|
SRC_URI = "https://github.com/ccache/ccache/releases/download/v${PV}/${BP}.tar.gz"
|
|
SRC_URI += "file://0001-CMake-make-build-of-documentation-optional-842.patch"
|
|
|
|
SRC_URI[sha256sum] = "dbf139ff32031b54cb47f2d7983269f328df14b5a427882f89f7721e5c411b7e"
|
|
|
|
UPSTREAM_CHECK_URI = "https://github.com/ccache/ccache/releases/"
|
|
|
|
PACKAGECONFIG[docs] = "-DENABLE_DOCUMENTATION=ON,-DENABLE_DOCUMENTATION=OFF,asciidoc"
|
|
|
|
inherit cmake
|
|
|
|
PATCHTOOL = "patch"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|