Investigate hotdoc and add a recipe to build it
cover Investigate hotdoc and add a recipe to build it
Add new recipe hotdoc and its runtime dependence.
Liu Yiding (5):
[OE-core][PATCH] hotdoc : Add new recipe
Add following 4 recipes for runtime dependence of hotdoc. [OE-core][PATCH] python3-appdirs: Add new recipe
Move it from meta-openembedded to openembedded-core as it is required by hotdoc 0.17.4. [OE-core][PATCH] python3-schema: Add new recipe
[OE-core][PATCH] python3-toposort: Add new recipe
[OE-core][PATCH] python3-wheezy-template: Add new recipe
...ment_scanner-fix-function-prototypes.patch | 32 +++++++++ ...y-backports-dependency-on-sufficient.patch | 72 +++++++++++++++++++ .../hotdoc/0003-CMake-4-compatibility.patch | 44 ++++++++++++ meta/recipes-devtools/hotdoc/hotdoc_0.17.4.bb | 29 ++++++++ .../python/python3-appdirs_1.4.4.bb | 11 +++ .../python/python3-schema_0.7.8.bb | 10 +++ .../python/python3-toposort_1.10.bb | 10 +++ .../python/python3-wheezy-template_3.2.4.bb | 13 ++++ 8 files changed, 221 insertions(+) create mode 100644 meta/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch create mode 100644 meta/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch create mode 100644 meta/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch create mode 100644 meta/recipes-devtools/hotdoc/hotdoc_0.17.4.bb create mode 100644 meta/recipes-devtools/python/python3-appdirs_1.4.4.bb create mode 100644 meta/recipes-devtools/python/python3-schema_0.7.8.bb create mode 100644 meta/recipes-devtools/python/python3-toposort_1.10.bb create mode 100644 meta/recipes-devtools/python/python3-wheezy-template_3.2.4.bb
Signature · 1 line
2.43.0
PATCH 1/5 python3-appdirs: Add new recipe
Move it from meta-openembedded to openembedded-core as it is required by hotdoc 0.17.4.
--- meta/recipes-devtools/python/python3-appdirs_1.4.4.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-appdirs_1.4.4.bb
meta/recipes-devtools/python/python3-appdirs_1.4.4.bb new file +11 -0
@@ -0,0 +1,11 @@ +SUMMARY = "A small Python module for determining appropriate + platform-specific dirs, e.g. a user data dir." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=31625363c45eb0c67c630a2f73e438e4" + +SRC_URI[sha256sum] = "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41" + +inherit pypi setuptools3 ptest-python-pytest + +PTEST_PYTEST_DIR = "test" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.43.0
PATCH 2/5 python3-schema: Add new recipe
In reply to Liu YidingAdd this new recipe for runtime dependence of hotdoc.
--- meta/recipes-devtools/python/python3-schema_0.7.8.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-schema_0.7.8.bb
meta/recipes-devtools/python/python3-schema_0.7.8.bb new file +10 -0
@@ -0,0 +1,10 @@ +SUMMARY = "A library for validating Python data structures" +HOMEPAGE = "https://github.com/keleshev/schema" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=7e70914c99a6ec706baa9fad5e0502df" + +SRC_URI[sha256sum] = "e86cc08edd6fe6e2522648f4e47e3a31920a76e82cce8937535422e310862ab5" + +inherit pypi python_setuptools_build_meta + +BBCLASSEXTEND = "native"
Signature · 1 line
2.43.0
PATCH 3/5 python3-toposort: Add new recipe
In reply to Liu YidingAdd this new recipe for runtime dependence of hotdoc.
--- meta/recipes-devtools/python/python3-toposort_1.10.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-toposort_1.10.bb
meta/recipes-devtools/python/python3-toposort_1.10.bb new file +10 -0
@@ -0,0 +1,10 @@ +SUMMARY = "Implements a topological sort algorithm" +HOMEPAGE = "https://gitlab.com/ericvsmith/toposort" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" + +SRC_URI[sha256sum] = "bfbb479c53d0a696ea7402601f4e693c97b0367837c8898bc6471adfca37a6bd" + +inherit pypi python_setuptools_build_meta + +BBCLASSEXTEND = "native"
Signature · 1 line
2.43.0
PATCH 4/5 python3-wheezy-template: Add new recipe
In reply to Liu YidingAdd this new recipe for runtime dependence of hotdoc.
--- .../python/python3-wheezy-template_3.2.4.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-wheezy-template_3.2.4.bb
meta/recipes-devtools/python/python3-wheezy-template_3.2.4.bb new file +13 -0
@@ -0,0 +1,13 @@ +SUMMARY = "a lightweight template library" +HOMEPAGE = "https://github.com/akornatskyy/wheezy.template" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fa10554c46b94944529c6a886cf85631" + +PYPI_PACKAGE = "wheezy_template" +UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" + +SRC_URI[sha256sum] = "465b9ac52e1c38bc9fc30127ae90bd232ce8df07fc2ac53383cb784f238b144f" + +inherit pypi setuptools3 + +BBCLASSEXTEND = "native"
Signature · 1 line
2.43.0
PATCH 5/5 hotdoc : Add new recipe
In reply to Liu YidingAdd this recipe as it will be used for gstreamer/orc.
1.Backport following patch to solve build and runtime issue
0001-c_comment_scanner-fix-function-prototypes.patch 0002-avoid-third-party-backports-dependency-on-sufficient.patch 0003-CMake-4-compatibility.patch
2.Add INSANE_SKIP to solve buildpaths QA check
do_package_qa: QA Issue: File /usr/lib/python3.14/site-packages/hotdoc/parsers/cmark.cpython-314-x86_64-linux-gnu.so in package hotdoc contains reference to TMPDIR [buildpaths]
3.Add hotdoc_fix_sources to solve buildpaths QA check
do_package_qa:QA Issue: File /usr/src/debug/hotdoc/0.17.4/hotdoc/parsers/c_comment_scanner/scanner.c in package hotdoc-src contains reference to TMPDIR [buildpaths]
--- ...ment_scanner-fix-function-prototypes.patch | 32 +++++++++ ...y-backports-dependency-on-sufficient.patch | 72 +++++++++++++++++++ .../hotdoc/0003-CMake-4-compatibility.patch | 44 ++++++++++++ meta/recipes-devtools/hotdoc/hotdoc_0.17.4.bb | 29 ++++++++ 4 files changed, 177 insertions(+) create mode 100644 meta/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch create mode 100644 meta/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch create mode 100644 meta/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch create mode 100644 meta/recipes-devtools/hotdoc/hotdoc_0.17.4.bb
meta/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch new file +32 -0
@@ -0,0 +1,32 @@ +Subject: [PATCH 1/2] c_comment_scanner: fix function prototypes + +scanner.l: Fix compile error as the following: + +python3-hotdoc/0.17.4/sources/hotdoc-0.17.4/hotdoc/parsers/c_comment_scanner/scanner.l:126:1: error: conflicting types for 'parse_comment'; have 'int(PyObject *)' {aka 'int(struct _object *)'} +| 126 | parse_comment (PyObject *comments) + +Upstream-Status: Backport [https://github.com/hotdoc/hotdoc/commit/adf8518431fafb78c9b47862a0a9a58824b6a421] + +Signed-off-by: Liu Yiding <[email protected]> +--- + hotdoc/parsers/c_comment_scanner/scanner.l | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/hotdoc/parsers/c_comment_scanner/scanner.l b/hotdoc/parsers/c_comment_scanner/scanner.l +index 0408601..7bccd64 100644 +--- a/hotdoc/parsers/c_comment_scanner/scanner.l ++++ b/hotdoc/parsers/c_comment_scanner/scanner.l +@@ -34,8 +34,8 @@ + extern int yylex (PyObject *comments); + #define YY_DECL int yylex (PyObject *comments) + static int yywrap (void); +-static int parse_comment (); +-static int parse_define (); ++static int parse_comment (PyObject *); ++static int parse_define (PyObject *); + %} + + %option nounput +-- +2.43.0 +
meta/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch new file +72 -0
72 lines not on this page · raw message
meta/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch new file +44 -0
44 lines not on this page · raw message
meta/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +29 -0
@@ -0,0 +1,29 @@ +SUMMARY = "Hotdoc is a documentation framework" +DESCRIPTION = "Hotdoc is a documentation micro-framework. It provides an interface for extensions to plug upon, along with some base objects (formatters, ...)" +HOMEPAGE = "https://github.com/hotdoc/hotdoc" + +LICENSE = "LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=90263a49bc1d9a204656fec4d5616c66" + +SRC_URI[sha256sum] = "c4d5dff647f03aa87a1d2d06035d2819edd099b91635e3b2ee390829357ae9fc" + +SRC_URI = "file://0001-c_comment_scanner-fix-function-prototypes.patch \ + file://0002-avoid-third-party-backports-dependency-on-sufficient.patch \ + file://0003-CMake-4-compatibility.patch \ + " + +DEPENDS += "libxml2 glib-2.0 json-glib" + +inherit pypi python_setuptools_build_meta pkgconfig + +PACKAGESPLITFUNCS =+ "hotdoc_fix_sources" + +hotdoc_fix_sources () { + sed -i -e 's#${S}/##g' ${PKGD}${TARGET_DBGSRC_DIR}/hotdoc/parsers/c_comment_scanner/scanner.c +} + +RDEPENDS:${PN} += "python3-appdirs python3-lxml python3-pyyaml python3-schema python3-toposort python3-wheezy-template" + +BBCLASSEXTEND = "native" + +INSANE_SKIP:${PN} += "buildpaths"
Signature · 1 line
2.43.0
Re: [OE-core][PATCH 5/5] hotdoc : Add new recipe
Quoted 5 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
2.Add
INSANE_SKIPto solve buildpaths QA check
do_package_qa: QA Issue: File/usr/lib/python3.14/site-packages/hotdoc/parsers/cmark.cpython-314-x86_64-linux-gnu.soin package hotdoc contains reference to TMPDIR [buildpaths]3.Add
hotdoc_fix_sourcesto solve buildpaths QA check
do_package_qa:QA Issue: File/usr/src/debug/hotdoc/0.17.4/hotdoc/parsers/c_comment_scanner/scanner.cin package hotdoc-src contains reference to TMPDIR [buildpaths]
Thanks for looking into this. The above issues need to be resolved, as reproducibility tests will fail because of them.
The recipe should also be taken into actual use, so it's tested and useful.
Alex