Investigate hotdoc and add a recipe to build it
v2 cover Investigate hotdoc and add a recipe to build it
In order to solve the issue of orc
https://bugzilla.yoctoproject.org/show_bug.cgi?id=16144
Add new recipe hotdoc and its runtime dependence to make gstreamer/orc to use it.
Liu Yiding (5):
[oe][meta-python][PATCH v2] hotdoc : Add new recipe
Add following 4 recipes for runtime dependence of hotdoc. [oe][meta-python][PATCH] python3-schema: Add new recipe [oe][meta-python][PATCH] python3-toposort: Add new recipe [oe][meta-python][PATCH] python3-wheezy-template: Add new recipe [oe][meta-python][PATCH] python3-dbus-deviation: Add new recipe
...ment_scanner-fix-function-prototypes.patch | 32 +++++++++ ...y-backports-dependency-on-sufficient.patch | 72 +++++++++++++++++++ .../hotdoc/0003-CMake-4-compatibility.patch | 44 ++++++++++++ ...e-flex-with-noline-option-to-prevent.patch | 29 ++++++++ .../recipes-devtools/hotdoc/hotdoc_0.17.4.bb | 28 ++++++++ ...o-donwload-requierment-which-will-ca.patch | 27 +++++++ .../python/python3-dbus-deviation_0.6.1.bb | 20 ++++++ .../python/python3-schema_0.7.8.bb | 10 +++ .../python/python3-toposort_1.10.bb | 10 +++ .../python/python3-wheezy-template_3.2.4.bb | 13 ++++ 10 files changed, 285 insertions(+) create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0004-Use-flex-with-noline-option-to-prevent.patch create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc_0.17.4.bb create mode 100644 meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch create mode 100644 meta-python/recipes-devtools/python/python3-dbus-deviation_0.6.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-schema_0.7.8.bb create mode 100644 meta-python/recipes-devtools/python/python3-toposort_1.10.bb create mode 100644 meta-python/recipes-devtools/python/python3-wheezy-template_3.2.4.bb
Signature · 1 line
2.43.0
PATCH v2 1/5 python3-schema: Add new recipe
Add this new recipe for runtime dependence of hotdoc.
--- .../recipes-devtools/python/python3-schema_0.7.8.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-schema_0.7.8.bb
meta-python/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 v2 2/5 python3-toposort: Add new recipe
In reply to Liu YidingAdd this new recipe for runtime dependence of hotdoc.
--- .../recipes-devtools/python/python3-toposort_1.10.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-toposort_1.10.bb
meta-python/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 v2 3/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-python/recipes-devtools/python/python3-wheezy-template_3.2.4.bb
meta-python/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 python_setuptools_build_meta + +BBCLASSEXTEND = "native"
Signature · 1 line
2.43.0
PATCH v2 4/5 python3-dbus-deviation: Add new recipe
In reply to Liu YidingAdd this new recipe for runtime dependence of hotdoc.
--- ...o-donwload-requierment-which-will-ca.patch | 27 +++++++++++++++++++ .../python/python3-dbus-deviation_0.6.1.bb | 20 ++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch create mode 100644 meta-python/recipes-devtools/python/python3-dbus-deviation_0.6.1.bb
meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch new file +27 -0
@@ -0,0 +1,27 @@ +Subject: [PATCH] Prevent trying to donwload requierment which will cause + network error. + +'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1e83062ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools-git/ + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Liu Yiding <[email protected]> +--- + setup.py | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 245193f..d899e4c 100755 +--- a/setup.py ++++ b/setup.py +@@ -92,7 +92,6 @@ setuptools.setup( + exclude_package_data={'': ['.gitignore']}, + zip_safe=True, + setup_requires=[ +- 'setuptools_git >= 0.3', + 'sphinx', + ], + install_requires=['lxml'], +-- +2.43.0 +
meta-python/recipes-devtools/python/python3-dbus-deviation_0.6.1.bb new file +20 -0
@@ -0,0 +1,20 @@ +SUMMARY = "dbus-deviation is a project for parsing D-Bus introspection XML and processing it in various ways" +HOMEPAGE = "https://tecnocode.co.uk/dbus-deviation/" +LICENSE = "LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=90263a49bc1d9a204656fec4d5616c66" + +SRC_URI[sha256sum] = "e06b88efe223885d2725df51cf7c9b7b463d1c6f04ea49d4690874318d0eb7a3" + +inherit pypi setuptools3 + +SRC_URI += "file://0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch" + +DEPENDS += "python3-sphinx-native" + +do_install:append() { + for ss in $(find ${D}${PYTHON_SITEPACKAGES_DIR} -type f -name "*.py"); do + sed -i 's,/usr/bin/python$,/usr/bin/env python3,' "$ss" + done +} + +BBCLASSEXTEND = "native"
Signature · 1 line
2.43.0
PATCH v2 5/5 hotdoc : Add new recipe
In reply to Liu Yiding1. 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 do_configure:prepend() 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 0004-Use-flex-with-noline-option-to-prevent.patch 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]
4. Add clang as RDEPENDS for following reason
Hotdoc has some Extensions including c-Extension.
The c-Extension needs llvm and clang in runtime as introduced in doc of hotdoc.
https://hotdoc.github.io/c-extension.html#c-extension
"The extension uses Clang to build and walk an AST from the source code"
--- ...ment_scanner-fix-function-prototypes.patch | 32 +++++++++ ...y-backports-dependency-on-sufficient.patch | 72 +++++++++++++++++++ .../hotdoc/0003-CMake-4-compatibility.patch | 44 ++++++++++++ ...e-flex-with-noline-option-to-prevent.patch | 29 ++++++++ .../recipes-devtools/hotdoc/hotdoc_0.17.4.bb | 28 ++++++++ 5 files changed, 205 insertions(+) create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc/0004-Use-flex-with-noline-option-to-prevent.patch create mode 100644 meta-python/recipes-devtools/hotdoc/hotdoc_0.17.4.bb
meta-python/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-python/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-python/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch new file +44 -0
44 lines not on this page · raw message
meta-python/recipes-devtools/hotdoc/hotdoc/0004-Use-flex-with-noline-option-to-prevent.patch new file +29 -0
@@ -0,0 +1,29 @@ +Subject: [PATCH] Use flex with --noline option to prevent adding #line to c file + +To fix following do_package QA Issue: + +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] + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Liu Yiding <[email protected]> +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 9ee504d..9bbc744 100644 +--- a/setup.py ++++ b/setup.py +@@ -365,7 +365,7 @@ class FlexExtension (Extension): + + self.sources.append(built_scanner_path) + if newer_group(self.__flex_sources, built_scanner_path): +- cmd = ['flex', '-o', built_scanner_path] ++ cmd = ['flex', '--noline', '-o', built_scanner_path] + for s in self.__flex_sources: + cmd.append(s) + spawn.spawn(cmd, verbose=1) +-- +2.43.0 +
meta-python/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +28 -0
@@ -0,0 +1,28 @@ +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;patchdir=cmark \ + " + +SRC_URI:append:class-target = "file://0004-Use-flex-with-noline-option-to-prevent.patch" + +DEPENDS += "libxml2 glib-2.0 json-glib" + +inherit pypi python_setuptools_build_meta pkgconfig + +#Fix LIBDIR path to fix buildpaths QA check of hotdoc/parsers/cmark.cpython-314-x86_64-linux-gnu.so +do_configure:prepend:class-target() { + sed -i -e "s#'\"%s\"' % CMARK_BUILD_DIR#'\"${PYTHON_SITEPACKAGES_DIR}/${PN}\"'#" ${S}/setup.py +} + +RDEPENDS:${PN} += "clang python3-appdirs python3-cchardet python3-dbus-deviation python3-lxml python3-networkx python3-pkgconfig python3-pyyaml python3-schema python3-toposort python3-wheezy-template" + +BBCLASSEXTEND = "native"
Signature · 1 line
2.43.0