mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-21 08:08:29 +00:00
configgen.py writes the absolute path of config.xml into the header of
every file it generates, so generated_src/configvalues.h, which is
shipped in the doxygen-src package, carries the recipe build directory:
WARNING: doxygen-1.18.0-r0 do_package_qa: QA Issue: File
/usr/src/debug/doxygen/1.18.0/generated_src/configvalues.h in package
doxygen-src contains reference to TMPDIR [buildpaths]
On builders whose HOME is a parent of the build tree the same file e.g.
yocto autobuilder, also trips the build-host HOME variant of the check.
flex leaks the path of the lex file the same way: it emits a #line
directive for the %top{} block even when called with --noline, and
post_lex.py rewrites it to the absolute path of the original .l file.
Those .cpp files are not shipped today, but the leak is the same one.
Strip ${B}/ and ${S}/ from everything under generated_src/ during
do_install, before do_package picks the sources up, so the references
become relative.
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
38 lines
1.6 KiB
BlitzBasic
38 lines
1.6 KiB
BlitzBasic
DESCRIPTION = "Doxygen is the de facto standard tool for generating documentation from annotated C++ sources."
|
|
HOMEPAGE = "http://www.doxygen.org/"
|
|
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
DEPENDS = "bison-native flex-native"
|
|
|
|
SRC_URI = "\
|
|
git://github.com/doxygen/doxygen.git;branch=master;protocol=https \
|
|
"
|
|
|
|
SRCREV = "8e760943e5d9581a444cf327f43a0b4d20d29482"
|
|
|
|
|
|
UPSTREAM_CHECK_GITTAGREGEX = "Release_(?P<pver>\d+(\_\d+)+)"
|
|
|
|
inherit cmake python3native
|
|
|
|
EXTRA_OECMAKE += "\
|
|
-DFLEX_TARGET_ARG_COMPILE_FLAGS='--noline' \
|
|
-DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines' \
|
|
"
|
|
|
|
do_install:append() {
|
|
find ${B}/generated_src -type f -exec sed -i -e 's;${B}/;;g' -e 's;${S}/;;g' {} +
|
|
|
|
sed -i -e 's;^#ifndef.*GENERATED_SRC_MSCGEN_LANGUAGE_HPP_INCLUDED$;#ifndef GENERATED_SRC_MSCGEN_LANGUAGE_HPP_INCLUDED;g' ${B}/generated_src/mscgen_language.hpp
|
|
sed -i -e 's;^# define.*GENERATED_SRC_MSCGEN_LANGUAGE_HPP_INCLUDED$;# define GENERATED_SRC_MSCGEN_LANGUAGE_HPP_INCLUDED;g' ${B}/generated_src/mscgen_language.hpp
|
|
sed -i -e 's;^#endif.*GENERATED_SRC_MSCGEN_LANGUAGE_HPP_INCLUDED.*$;#endif;g' ${B}/generated_src/mscgen_language.hpp
|
|
|
|
sed -i -e 's;^#ifndef.*GENERATED_SRC_CE_PARSE_HPP_INCLUDED$;#ifndef GENERATED_SRC_CE_PARSE_HPP_INCLUDED;g' ${B}/generated_src/ce_parse.hpp
|
|
sed -i -e 's;^# define.*GENERATED_SRC_CE_PARSE_HPP_INCLUDED$;# define GENERATED_SRC_CE_PARSE_HPP_INCLUDED;g' ${B}/generated_src/ce_parse.hpp
|
|
sed -i -e 's;^#endif.*GENERATED_SRC_CE_PARSE_HPP_INCLUDED.*$;#endif;g' ${B}/generated_src/ce_parse.hpp
|
|
}
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|