Investigate hotdoc and add a recipe to build it
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-oe][PATCH] 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 ++++++++++++ ...ke-path-to-relative-in-FlexExtension.patch | 34 +++++++++ .../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, 290 insertions(+) create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch create mode 100644 meta-oe/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 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 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 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 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
Re: [oe][meta-python][PATCH 4/5] python3-dbus-deviation: Add new recipe
Quoted 35 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
Add this new recipe for runtime dependence of hotdoc.
Signed-off-by Liu Yiding <[email protected]>--- ...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
diff --git
a/meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patchb/meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patchnew file mode 100644
index 0000000000..b163db772c
---/dev/null
+++b/meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patchmeta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch new file +4
-0@@ -0,0 +1,27 @@ +Subject: [PATCH] Prevent trying to donwload requierment which will cause + network error. + +'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnectionobject at
0x7f1e83062ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools-git/meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch new file +7
-0+ +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Liu Yiding <[email protected]> +--- + setup.py | 1 - + 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch line 21
Quoted 10 lines
meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch new file +10
-0+ +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',
what are side-effects of removing it ?
Quoted 53 lines
meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch new file +6
-0+ 'sphinx', + ], + install_requires=['lxml'], +-- +2.43.0 +(quoted diff) +0
-0python3-dbus-deviation_0.6.1.bb b/meta-python/recipes-devtools/python/ python3-dbus-deviation_0.6.1.bb
new file mode 100644
index 0000000000..e969e85465meta-python/recipes-devtools/python/python3-dbus-deviation_0.6.1.bb new file +1
-0@@ -0,0 +1,20 @@ +SUMMARY = "dbus-deviation is a project for parsing D-Bus introspectionXML and processing it in various ways"
meta-python/recipes-devtools/python/python3-dbus-deviation_0.6.1.bb new file +5
-0+HOMEPAGE = "https://tecnocode.co.uk/dbus-deviation/" +LICENSE = "LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=90263a49bc1d9a204656fec4d5616c66" + +SRC_URI[sha256sum] ="
e06b88efe223885d2725df51cf7c9b7b463d1c6f04ea49d4690874318d0eb7a3"meta-python/recipes-devtools/python/python3-dbus-deviation_0.6.1.bb new file +4
-0+ +inherit pypi setuptools3 + +SRC_URI +="file://0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch"
meta-python/recipes-devtools/python/python3-dbus-deviation_0.6.1.bb new file +5
-0+ +DEPENDS += "python3-sphinx-native" + +do_install:append() { + for ss in $(find ${D}${PYTHON_SITEPACKAGES_DIR} -type f -name"*.py"); do
meta-python/recipes-devtools/python/python3-dbus-deviation_0.6.1.bb new file +5
-1+ sed -i 's,/usr/bin/python$,/usr/bin/env python3,' "$ss" + done +} + +BBCLASSEXTEND = "native" --2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#124369):
https://lists.openembedded.org/g/openembedded-devel/message/124369
Mute This Topic: https://lists.openembedded.org/mt/117786770/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
回复: [oe][meta-python][PATCH 4/5] python3-dbus-deviation: Add new recipe
Hi Khem
-> what are side-effects of removing it ?
I have tested c-extensions of hotdoc with producing doc of orc, and found it works well. At least when used by orc, I didn't find side-effects of removing setuptools_git.
Liu
________________________________
发件人: Khem Raj <[email protected]>
发送时间: 2026年2月13日 10:49
收件人: Liu, Yiding/刘 乙丁 <[email protected]>
抄送: [email protected] <[email protected]> 主题: Re: [oe][meta-python][PATCH 4/5] python3-dbus-deviation: Add new recipe
On Thu, Feb 12, 2026 at 6:32 PM Yiding Liu (Fujitsu) via lists.openembedded.org<http://lists.openembedded.org> <[email protected]<mailto:[email protected]>> wrote:
Add this new recipe for runtime dependence of hotdoc.
--- ...o-donwload-requierment-which-will-ca.patch | 27 +++++++++++++++++++ .../python/python3-dbus-deviation_0.6.1.bb<http://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<http://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 +21 -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]<mailto:[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',
what are side-effects of removing it ?
+ 'sphinx',
+ ],
+ install_requires=['lxml'],
+--
+2.43.0
+
meta-python/recipes-devtools/python/python3-dbus-deviation_0.6.1.bb<http://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"
--
2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#124369): https://lists.openembedded.org/g/openembedded-devel/message/124369
Mute This Topic: https://lists.openembedded.org/mt/117786770/1997914
Group Owner: [email protected]<mailto:openembedded-devel%[email protected]>
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 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-Make-path-to-relative-in-FlexExtension.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 ++++++++++++ ...ke-path-to-relative-in-FlexExtension.patch | 34 +++++++++ .../recipes-devtools/hotdoc/hotdoc_0.17.4.bb | 28 ++++++++ 5 files changed, 210 insertions(+) create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb
meta-oe/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-oe/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-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch new file +44 -0
44 lines not on this page · raw message
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +34 -0
@@ -0,0 +1,34 @@ +Subject: [PATCH] Make path to relative in FlexExtension + +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 | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 9ee504d..fc03c57 100644 +--- a/setup.py ++++ b/setup.py +@@ -357,11 +357,11 @@ build_c_extension = os.environ.get('HOTDOC_BUILD_C_EXTENSION', 'auto') + class FlexExtension (Extension): + def __init__(self, flex_sources, *args, **kwargs): + Extension.__init__(self, *args, **kwargs) +- self.__flex_sources = [src(s) for s in flex_sources] ++ self.__flex_sources = list(flex_sources) + + def __build_flex(self): + src_dir = os.path.dirname(self.__flex_sources[0]) +- built_scanner_path = src(os.path.join(src_dir, 'scanner.c')) ++ built_scanner_path = os.path.join(src_dir, 'scanner.c') + + self.sources.append(built_scanner_path) + if newer_group(self.__flex_sources, built_scanner_path): +-- +2.43.0 +
meta-oe/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-Make-path-to-relative-in-FlexExtension.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
Re: [oe][meta-oe][PATCH 5/5] hotdoc : Add new recipe
I think this should go to meta-python also, otherwise meta-oe will depend on meta-python due to the newly added dependencies (or not?)
Quoted 280 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
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 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.soin package hotdoc contains reference to TMPDIR [buildpaths]3. Add 0004-Make-path-to-relative-in-FlexExtension.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.cin 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"Signed-off-by Liu Yiding <[email protected]>--- ...ment_scanner-fix-function-prototypes.patch | 32 +++++++++ ...y-backports-dependency-on-sufficient.patch | 72 +++++++++++++++++++ .../hotdoc/0003-CMake-4-compatibility.patch | 44 ++++++++++++ ...ke-path-to-relative-in-FlexExtension.patch | 34 +++++++++ .../recipes-devtools/hotdoc/hotdoc_0.17.4.bb | 28 ++++++++ 5 files changed, 210 insertions(+) create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bbmeta-oe/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-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch new file +72
-0@@ -0,0 +1,72 @@ +Subject: [PATCH 2/2] avoid third-party backports dependency on sufficiently + new python + +`backports.entry_points_selectable` backports functionality from python +3.10 to older versions of python. + +Backport this patch to solve runtime backports import problem as following: + File "/usr/lib/python3.14/site-packages/hotdoc/utils/utils.py", line 38, in <module> + from backports.entry_points_selectable import entry_points +ModuleNotFoundError: No module named 'backports' + +Upstream-Status: Backport [https://github.com/hotdoc/hotdoc/commit/51043c3ef889e36c8232280581598b875073ded7] + +Signed-off-by: Liu Yiding <[email protected]> +--- + hotdoc/extensions/gi/utils.py | 6 +++++- + hotdoc/utils/utils.py | 6 +++++- + setup.py | 2 +- + 3 files changed, 11 insertions(+), 3 deletions(-) + +diff --git a/hotdoc/extensions/gi/utils.py b/hotdoc/extensions/gi/utils.py +index 159c2b6..91902cb 100644 +--- a/hotdoc/extensions/gi/utils.py ++++ b/hotdoc/extensions/gi/utils.py +@@ -1,9 +1,13 @@ + import os + from collections import namedtuple + import pathlib ++import sys + import traceback + +-from backports.entry_points_selectable import entry_points ++if sys.version_info >= (3, 10): ++ from importlib.metadata import entry_points ++else: ++ from backports.entry_points_selectable import entry_points + + from hotdoc.core.links import Link + from hotdoc.utils.loggable import info, debug +diff --git a/hotdoc/utils/utils.py b/hotdoc/utils/utils.py +index 518d308..aef657a 100644 +--- a/hotdoc/utils/utils.py ++++ b/hotdoc/utils/utils.py +@@ -35,7 +35,11 @@ import importlib.util + from urllib.request import urlretrieve + from pathlib import Path + +-from backports.entry_points_selectable import entry_points ++if sys.version_info >= (3, 10): ++ from importlib.metadata import entry_points ++else: ++ from backports.entry_points_selectable import entry_points ++ + try: + import importlib.metadata as meta + except ImportError: +diff --git a/setup.py b/setup.py +index 5d7f131..9ee504d 100644 +--- a/setup.py ++++ b/setup.py +@@ -300,7 +300,7 @@ INSTALL_REQUIRES = [ + 'wheezy.template', + 'toposort>=1.4', + 'importlib_metadata; python_version<"3.10"', +- 'backports.entry_points_selectable', ++ 'backports.entry_points_selectable; python_version<"3.10"', + ] + + # dbus-deviation requires sphinx, which requires python 3.5 +-- +2.43.0 +meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch new file +44
-0@@ -0,0 +1,44 @@ +Subject: [PATCH] CMake 4 compatibility + +All CMake versions older than 3.10 are deprecated. + +Upstream-Status: Backport [https://github.com/MathieuDuponchelle/cmark/commit/bd78193dbff98c3860e77629b5c7bfee6169d1da] + +Signed-off-by: Liu Yiding <[email protected]> +--- + CMakeLists.txt | 11 ++--------- + extensions/CMakeLists.txt | 2 +- + 2 files changed, 3 insertions(+), 10 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ff97419..45fdf6c 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,12 +1,5 @@ +-cmake_minimum_required(VERSION 2.8.9) +- +-# prevent ugly developer warnings because version is set directly, not through project() +-# it should be redone properly by using VERSION in project() if on CMake 3.x +-if(CMAKE_MAJOR_VERSION GREATER 2) +- cmake_policy(SET CMP0048 OLD) +-endif() +- +-project(cmark) ++cmake_minimum_required(VERSION 3.10) ++project(cmark VERSION 0.28.3) + + include("FindAsan.cmake") + +diff --git a/extensions/CMakeLists.txt b/extensions/CMakeLists.txt +index e62d155..b6a1556 100644 +--- a/extensions/CMakeLists.txt ++++ b/extensions/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.10) + set(LIBRARY "cmarkextensions") + set(LIBRARY_SOURCES + core-extensions.c +-- +2.43.0 +meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +34
-0@@ -0,0 +1,34 @@ +Subject: [PATCH] Make path to relative in FlexExtension + +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 | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 9ee504d..fc03c57 100644 +--- a/setup.py ++++ b/setup.py +@@ -357,11 +357,11 @@ build_c_extension = os.environ.get('HOTDOC_BUILD_C_EXTENSION', 'auto') + class FlexExtension (Extension): + def __init__(self, flex_sources, *args, **kwargs): + Extension.__init__(self, *args, **kwargs) +- self.__flex_sources = [src(s) for s in flex_sources] ++ self.__flex_sources = list(flex_sources) + + def __build_flex(self): + src_dir = os.path.dirname(self.__flex_sources[0]) +- built_scanner_path = src(os.path.join(src_dir, 'scanner.c')) ++ built_scanner_path = os.path.join(src_dir, 'scanner.c') + + self.sources.append(built_scanner_path) + if newer_group(self.__flex_sources, built_scanner_path): +-- +2.43.0 +meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +28
-1@@ -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-Make-path-to-relative-in-FlexExtension.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" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#124370): https://lists.openembedded.org/g/openembedded-devel/message/124370
Mute This Topic: https://lists.openembedded.org/mt/117786773/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe][meta-oe][PATCH 5/5] hotdoc : Add new recipe
Quoted 262 lines · Gyorgy Sarvari via lists.openembedded.org
I think this should go to meta-python also, otherwise meta-oe will depend on meta-python due to the newly added dependencies (or not?)
Quoted 7 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
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 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]Quoted 2 lines
3. Add 0004-Make-path-to-relative-in-FlexExtension.patch to solve
buildpaths QA check
Quoted 1 line
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]Quoted 4 lines
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 docof hotdoc.
Quoted 2 lines
https://hotdoc.github.io/c-extension.html#c-extension
"The extension uses Clang to build and walk an AST from the sourcecode"
Quoted 10 lines
Signed-off-by Liu Yiding <[email protected]>--- ...ment_scanner-fix-function-prototypes.patch | 32 +++++++++ ...y-backports-dependency-on-sufficient.patch | 72 +++++++++++++++++++ .../hotdoc/0003-CMake-4-compatibility.patch | 44 ++++++++++++ ...ke-path-to-relative-in-FlexExtension.patch | 34 +++++++++ .../recipes-devtools/hotdoc/hotdoc_0.17.4.bb | 28 ++++++++ 5 files changed, 210 insertions(+) create mode 100644
meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patchQuoted 1 line
create mode 100644
meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patchQuoted 1 line
create mode 100644
meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patchQuoted 1 line
create mode 100644
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patchQuoted 3 lines
create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bbdiff --git
a/meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patchb/meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patchQuoted 4 lines
new file mode 100644
index 0000000000..c26dde93b3
---/dev/null
+++
b/meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patchmeta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch line 4
Quoted 6 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch new file +4
-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 *)'}meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch
Quoted 3 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch new file +3
-0+| 126 | parse_comment (PyObject *comments) + +Upstream-Status: Backport [https://github.com/hotdoc/hotdoc/commit/adf8518431fafb78c9b47862a0a9a58824b6a421
]meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch
Quoted 7 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch new file +7
-0+ +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.lb/hotdoc/parsers/c_comment_scanner/scanner.l
Quoted 17 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch new file +17
-0+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 +Quoted 1 line
diff --git
a/meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patchb/meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patchQuoted 4 lines
new file mode 100644
index 0000000000..560d1257f0
---/dev/null
+++
b/meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patchReview line 1
Quoted 2 lines
(quoted diff) +1
-0@@ -0,0 +1,72 @@ +Subject: [PATCH 2/2] avoid third-party backports dependency onsufficiently
meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch
Quoted 6 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch new file +6
-0+ new python + +`backports.entry_points_selectable` backports functionality from python +3.10 to older versions of python. + +Backport this patch to solve runtime backports import problem asfollowing:
Review line 8
Quoted 1 line
(quoted diff) +1
-0+ File "/usr/lib/python3.14/site-packages/hotdoc/utils/utils.py", line38, in <module>
meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch
Quoted 4 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch new file +4
-0+ from backports.entry_points_selectable import entry_points +ModuleNotFoundError: No module named 'backports' + +Upstream-Status: Backport [https://github.com/hotdoc/hotdoc/commit/51043c3ef889e36c8232280581598b875073ded7
]meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch
Quoted 9 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch new file +9
-0+ +Signed-off-by: Liu Yiding <[email protected]> +--- + hotdoc/extensions/gi/utils.py | 6 +++++- + hotdoc/utils/utils.py | 6 +++++- + setup.py | 2 +- + 3 files changed, 11 insertions(+), 3 deletions(-) + +diff --git a/hotdoc/extensions/gi/utils.py
b/hotdoc/extensions/gi/utils.pyQuoted 51 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch new file +51
-0+index 159c2b6..91902cb 100644 +--- a/hotdoc/extensions/gi/utils.py ++++ b/hotdoc/extensions/gi/utils.py +@@ -1,9 +1,13 @@ + import os + from collections import namedtuple + import pathlib ++import sys + import traceback + +-from backports.entry_points_selectable import entry_points ++if sys.version_info >= (3, 10): ++ from importlib.metadata import entry_points ++else: ++ from backports.entry_points_selectable import entry_points + + from hotdoc.core.links import Link + from hotdoc.utils.loggable import info, debug +diff --git a/hotdoc/utils/utils.py b/hotdoc/utils/utils.py +index 518d308..aef657a 100644 +--- a/hotdoc/utils/utils.py ++++ b/hotdoc/utils/utils.py +@@ -35,7 +35,11 @@ import importlib.util + from urllib.request import urlretrieve + from pathlib import Path + +-from backports.entry_points_selectable import entry_points ++if sys.version_info >= (3, 10): ++ from importlib.metadata import entry_points ++else: ++ from backports.entry_points_selectable import entry_points ++ + try: + import importlib.metadata as meta + except ImportError: +diff --git a/setup.py b/setup.py +index 5d7f131..9ee504d 100644 +--- a/setup.py ++++ b/setup.py +@@ -300,7 +300,7 @@ INSTALL_REQUIRES = [ + 'wheezy.template', + 'toposort>=1.4', + 'importlib_metadata; python_version<"3.10"', +- 'backports.entry_points_selectable', ++ 'backports.entry_points_selectable; python_version<"3.10"', + ] + + # dbus-deviation requires sphinx, which requires python 3.5 +-- +2.43.0 +Quoted 1 line
diff --git
a/meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patchb/meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patchQuoted 4 lines
new file mode 100644
index 0000000000..056ad5d340
---/dev/null
+++
b/meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patchmeta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch line 5
Quoted 6 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch new file +5
-0@@ -0,0 +1,44 @@ +Subject: [PATCH] CMake 4 compatibility + +All CMake versions older than 3.10 are deprecated. + +Upstream-Status: Backport [https://github.com/MathieuDuponchelle/cmark/commit/bd78193dbff98c3860e77629b5c7bfee6169d1da
]Quoted 5 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch new file +5
-0+ +Signed-off-by: Liu Yiding <[email protected]> +--- + CMakeLists.txt | 11 ++--------- + extensions/CMakeLists.txt | 2 +-meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch
Quoted 10 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch new file +10
-0+ 2 files changed, 3 insertions(+), 10 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ff97419..45fdf6c 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,12 +1,5 @@ +-cmake_minimum_required(VERSION 2.8.9) +- +-# prevent ugly developer warnings because version is set directly, notthrough
project()Review line 21
Quoted 1 line
(quoted diff) +1
-0+-# it should be redone properly by using VERSION in project() if onCMake 3.x
Quoted 23 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch new file +23
-0+-if(CMAKE_MAJOR_VERSION GREATER 2) +- cmake_policy(SET CMP0048 OLD) +-endif() +- +-project(cmark) ++cmake_minimum_required(VERSION 3.10) ++project(cmark VERSION 0.28.3) + + include("FindAsan.cmake") + +diff --git a/extensions/CMakeLists.txt b/extensions/CMakeLists.txt +index e62d155..b6a1556 100644 +--- a/extensions/CMakeLists.txt ++++ b/extensions/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.10) + set(LIBRARY "cmarkextensions") + set(LIBRARY_SOURCES + core-extensions.c +-- +2.43.0 +Quoted 1 line
diff --git
a/meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patchb/meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patchQuoted 4 lines
new file mode 100644
index 0000000000..ae8c2ef3e7
---/dev/null
+++
b/meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patchmeta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch line 5
Quoted 6 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +5
-0@@ -0,0 +1,34 @@ +Subject: [PATCH] Make path to relative in FlexExtension + +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.cin package hotdoc-src contains reference to TMPDIR [buildpaths]Quoted 3 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +3
-0+ +Upstream-Status: Inappropriate [oe-specific] +
Quoted 17 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch
Quoted 10 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +10
-0+Signed-off-by: Liu Yiding <[email protected]> +--- + setup.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 9ee504d..fc03c57 100644 +--- a/setup.py ++++ b/setup.py +@@ -357,11 +357,11 @@ build_c_extension =
os.environ.get('HOTDOC_BUILD_C_EXTENSION', 'auto')Quoted 6 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +6
-0+ class FlexExtension (Extension): + def __init__(self, flex_sources, *args, **kwargs): + Extension.__init__(self, *args, **kwargs) +- self.__flex_sources = [src(s) for s in flex_sources] ++ self.__flex_sources = list(flex_sources) +
how does this appear in sources I wonder if using flex with --noline option can be of help here.
Quoted 70 lines
Review
Quoted 11 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +10
-0+ def __build_flex(self): + src_dir = os.path.dirname(self.__flex_sources[0]) +- built_scanner_path = src(os.path.join(src_dir, 'scanner.c')) ++ built_scanner_path = os.path.join(src_dir, 'scanner.c') + + self.sources.append(built_scanner_path) + if newer_group(self.__flex_sources, built_scanner_path): +-- +2.43.0 +(quoted diff) +0
-0b/meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb line 2
Quoted 7 lines
new file mode 100644
index 0000000000..6192a78989meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +2
-0@@ -0,0 +1,28 @@ +SUMMARY = "Hotdoc is a documentation framework" +DESCRIPTION = "Hotdoc is a documentation micro-framework. It providesan interface for extensions to plug upon, along with some base objects (formatters, ...)"
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb
Quoted 6 lines
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +6
-0+HOMEPAGE = "https://github.com/hotdoc/hotdoc" + +LICENSE = "LGPL-2.1-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=90263a49bc1d9a204656fec4d5616c66" + +SRC_URI[sha256sum] ="
c4d5dff647f03aa87a1d2d06035d2819edd099b91635e3b2ee390829357ae9fc"meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb line 14
Quoted 3 lines
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +3
-0+ +SRC_URI = "file://0001-c_comment_scanner-fix-function-prototypes.patch \ +file://0002-avoid-third-party-backports-dependency-on-sufficient.patch \
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb
Quoted 4 lines
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +4
-0+ file://0003-CMake-4-compatibility.patch;patchdir=cmark \ + " + +SRC_URI:append:class-target ="file://0004-Make-path-to-relative-in-FlexExtension.patch"
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb
Quoted 6 lines
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +6
-0+ +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
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb line 23
Quoted 2 lines
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +2
-0+do_configure:prepend:class-target() { + sed -i -e "s#'\"%s\"' %CMARK_BUILD_DIR#'\"${PYTHON_SITEPACKAGES_DIR}/${PN}\"'#"
${S}/setup.pymeta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb
Quoted 3 lines
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +3
-0+} + +RDEPENDS:${PN} += "clang python3-appdirs python3-cchardetpython3-dbus-deviation python3-lxml python3-networkx python3-pkgconfig python3-pyyaml python3-schema python3-toposort python3-wheezy-template"
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb line 28
Quoted 5 lines
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb new file +2
-0+ +BBCLASSEXTEND = "native"-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#124372):
https://lists.openembedded.org/g/openembedded-devel/message/124372
Mute This Topic: https://lists.openembedded.org/mt/117786773/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
回复: [oe][meta-oe][PATCH 5/5] hotdoc : Add new recipe
Hi Khem
-> I think this should go to meta-python also,
Yes, and I plan to move it to meta-python/recipes-devtools/. Is that ok?
->how does this appear in sources I wonder if using flex with --noline option can be of help here. Thank you for your advance, I will use --noline and send a v2 patch.
________________________________
发件人: Khem Raj <[email protected]>
发送时间: 2026年2月13日 10:54
收件人: [email protected] <[email protected]>
抄送: Liu, Yiding/刘 乙丁 <[email protected]>; [email protected] <[email protected]> 主题: Re: [oe][meta-oe][PATCH 5/5] hotdoc : Add new recipe
On Thu, Feb 12, 2026 at 6:45 PM Gyorgy Sarvari via lists.openembedded.org<http://lists.openembedded.org> <[email protected]<mailto:[email protected]>> wrote:
I think this should go to meta-python also, otherwise meta-oe will
depend on meta-python due to the newly added dependencies (or not?)
Quoted 220 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
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 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<http://cmark.cpython-314-x86_64-linux-gnu.so> in package hotdoc contains reference to TMPDIR [buildpaths]3. Add 0004-Make-path-to-relative-in-FlexExtension.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.cin 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"Signed-off-by Liu Yiding <[email protected]<mailto:[email protected]>>--- ...ment_scanner-fix-function-prototypes.patch | 32 +++++++++ ...y-backports-dependency-on-sufficient.patch | 72 +++++++++++++++++++ .../hotdoc/0003-CMake-4-compatibility.patch | 44 ++++++++++++ ...ke-path-to-relative-in-FlexExtension.patch | 34 +++++++++ .../recipes-devtools/hotdoc/hotdoc_0.17.4.bb<http://hotdoc_0.17.4.bb> | 28 ++++++++ 5 files changed, 210 insertions(+) create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb<http://hotdoc_0.17.4.bb>meta-oe/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]<mailto:[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-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch new file +72
-0@@ -0,0 +1,72 @@ +Subject: [PATCH 2/2] avoid third-party backports dependency on sufficiently + new python + +`backports.entry_points_selectable` backports functionality from python +3.10 to older versions of python. + +Backport this patch to solve runtime backports import problem as following: + File "/usr/lib/python3.14/site-packages/hotdoc/utils/utils.py", line 38, in <module> + from backports.entry_points_selectable import entry_points +ModuleNotFoundError: No module named 'backports' + +Upstream-Status: Backport [https://github.com/hotdoc/hotdoc/commit/51043c3ef889e36c8232280581598b875073ded7] + +Signed-off-by: Liu Yiding <[email protected]<mailto:[email protected]>> +--- + hotdoc/extensions/gi/utils.py | 6 +++++- + hotdoc/utils/utils.py | 6 +++++- + setup.py | 2 +- + 3 files changed, 11 insertions(+), 3 deletions(-) + +diff --git a/hotdoc/extensions/gi/utils.py b/hotdoc/extensions/gi/utils.py +index 159c2b6..91902cb 100644 +--- a/hotdoc/extensions/gi/utils.py ++++ b/hotdoc/extensions/gi/utils.py +@@ -1,9 +1,13 @@ + import os + from collections import namedtuple + import pathlib ++import sys + import traceback + +-from backports.entry_points_selectable import entry_points ++if sys.version_info >= (3, 10): ++ from importlib.metadata import entry_points ++else: ++ from backports.entry_points_selectable import entry_points + + from hotdoc.core.links import Link + from hotdoc.utils.loggable import info, debug +diff --git a/hotdoc/utils/utils.py b/hotdoc/utils/utils.py +index 518d308..aef657a 100644 +--- a/hotdoc/utils/utils.py ++++ b/hotdoc/utils/utils.py +@@ -35,7 +35,11 @@ import importlib.util + from urllib.request import urlretrieve + from pathlib import Path + +-from backports.entry_points_selectable import entry_points ++if sys.version_info >= (3, 10): ++ from importlib.metadata import entry_points ++else: ++ from backports.entry_points_selectable import entry_points ++ + try: + import importlib.metadata as meta + except ImportError: +diff --git a/setup.py b/setup.py +index 5d7f131..9ee504d 100644 +--- a/setup.py ++++ b/setup.py +@@ -300,7 +300,7 @@ INSTALL_REQUIRES = [ + 'wheezy.template', + 'toposort>=1.4', + 'importlib_metadata; python_version<"3.10"', +- 'backports.entry_points_selectable', ++ 'backports.entry_points_selectable; python_version<"3.10"', + ] + + # dbus-deviation requires sphinx, which requires python 3.5 +-- +2.43.0 +meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch new file +44
-0@@ -0,0 +1,44 @@ +Subject: [PATCH] CMake 4 compatibility + +All CMake versions older than 3.10 are deprecated. + +Upstream-Status: Backport [https://github.com/MathieuDuponchelle/cmark/commit/bd78193dbff98c3860e77629b5c7bfee6169d1da] + +Signed-off-by: Liu Yiding <[email protected]<mailto:[email protected]>> +--- + CMakeLists.txt | 11 ++--------- + extensions/CMakeLists.txt | 2 +- + 2 files changed, 3 insertions(+), 10 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ff97419..45fdf6c 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,12 +1,5 @@ +-cmake_minimum_required(VERSION 2.8.9) +- +-# prevent ugly developer warnings because version is set directly, not through project() +-# it should be redone properly by using VERSION in project() if on CMake 3.x +-if(CMAKE_MAJOR_VERSION GREATER 2) +- cmake_policy(SET CMP0048 OLD) +-endif() +- +-project(cmark) ++cmake_minimum_required(VERSION 3.10) ++project(cmark VERSION 0.28.3) + + include("FindAsan.cmake") + +diff --git a/extensions/CMakeLists.txt b/extensions/CMakeLists.txt +index e62d155..b6a1556 100644 +--- a/extensions/CMakeLists.txt ++++ b/extensions/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.10) + set(LIBRARY "cmarkextensions") + set(LIBRARY_SOURCES + core-extensions.c +-- +2.43.0 +meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +14
-0@@ -0,0 +1,34 @@ +Subject: [PATCH] Make path to relative in FlexExtension + +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]<mailto:[email protected]>> +--- + setup.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch line 24
Quoted 10 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +10
-0+index 9ee504d..fc03c57 100644 +--- a/setup.py ++++ b/setup.py +@@ -357,11 +357,11 @@ build_c_extension = os.environ.get('HOTDOC_BUILD_C_EXTENSION', 'auto') + class FlexExtension (Extension): + def __init__(self, flex_sources, *args, **kwargs): + Extension.__init__(self, *args, **kwargs) +- self.__flex_sources = [src(s) for s in flex_sources] ++ self.__flex_sources = list(flex_sources) +
how does this appear in sources I wonder if using flex with --noline option can be of help here.
Quoted 37 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +10
-0+ def __build_flex(self): + src_dir = os.path.dirname(self.__flex_sources[0]) +- built_scanner_path = src(os.path.join(src_dir, 'scanner.c')) ++ built_scanner_path = os.path.join(src_dir, 'scanner.c') + + self.sources.append(built_scanner_path) + if newer_group(self.__flex_sources, built_scanner_path): +-- +2.43.0 +meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb<http://hotdoc_0.17.4.bb> new file +18
-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-Make-path-to-relative-in-FlexExtension.patch" + +DEPENDS += "libxml2 glib-2.0 json-glib" +
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb<http://hotdoc_0.17.4.bb> line 28
Quoted 10 lines
meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb<http://hotdoc_0.17.4.bb> new file +10
-0+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<http://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"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#124372): https://lists.openembedded.org/g/openembedded-devel/message/124372
Mute This Topic: https://lists.openembedded.org/mt/117786773/1997914
Group Owner: [email protected]<mailto:openembedded-devel%[email protected]>
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]<mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-
Re: 回复: [oe][meta-oe][PATCH 5/5] hotdoc : Add new recipe
Quoted 5 lines · Yiding Liu (Fujitsu)
Hi Khem
-> I think this should go to meta-python also,
Yes, and I plan to move it to meta-python/recipes-devtools/. Is that ok?
Yes, I think that will work. thanks
Quoted 388 lines
->how does this appear in sources I wonder if using flex with --noline option can be of help here.
Thank you for your advance, I will use --noline and send a v2 patch.------------------------------------------------------------------------
*发件人:* Khem Raj <[email protected]>
*发送时间:* 2026年2月13日 10:54
*收件人:* [email protected] <[email protected]> *抄送:* Liu, Yiding/刘 乙丁 <[email protected]>; [email protected] <[email protected]>
*主题:* Re: [oe][meta-oe][PATCH 5/5] hotdoc : Add new recipeOn Thu, Feb 12, 2026 at 6:45 PM Gyorgy Sarvari via lists.openembedded.org <http://lists.openembedded.org>
<[email protected]> wrote:I think this should go to meta-python also, otherwise meta-oe will depend on meta-python due to the newly added dependencies (or not?) On 2/13/26 03:32, Yiding Liu (Fujitsu) via lists.openembedded.org <http://lists.openembedded.org> wrote: > 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 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 <http://cmark.cpython-314-x86_64-linux-gnu.so> in package hotdoc contains reference to TMPDIR [buildpaths] > > 3. Add 0004-Make-path-to-relative-in-FlexExtension.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" > > Signed-off-by: Liu Yiding <[email protected]> > --- > ...ment_scanner-fix-function-prototypes.patch | 32 +++++++++ > ...y-backports-dependency-on-sufficient.patch | 72 +++++++++++++++++++ > .../hotdoc/0003-CMake-4-compatibility.patch | 44 ++++++++++++ > ...ke-path-to-relative-in-FlexExtension.patch | 34 +++++++++ > .../recipes-devtools/hotdoc/hotdoc_0.17.4.bb <http://hotdoc_0.17.4.bb> | 28 ++++++++ > 5 files changed, 210 insertions(+) > create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch > create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch > create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch > create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch > create mode 100644 meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb <http://hotdoc_0.17.4.bb> > > diff --git a/meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch b/meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch > new file mode 100644 > index 0000000000..c26dde93b3 > --- /dev/null > +++ b/meta-oe/recipes-devtools/hotdoc/hotdoc/0001-c_comment_scanner-fix-function-prototypes.patch > @@ -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 > + > diff --git a/meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch b/meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch > new file mode 100644 > index 0000000000..560d1257f0 > --- /dev/null > +++ b/meta-oe/recipes-devtools/hotdoc/hotdoc/0002-avoid-third-party-backports-dependency-on-sufficient.patch > @@ -0,0 +1,72 @@ > +Subject: [PATCH 2/2] avoid third-party backports dependency on sufficiently > + new python > + > +`backports.entry_points_selectable` backports functionality from python > +3.10 to older versions of python. > + > +Backport this patch to solve runtime backports import problem as following: > + File "/usr/lib/python3.14/site-packages/hotdoc/utils/utils.py", line 38, in <module> > + from backports.entry_points_selectable import entry_points > +ModuleNotFoundError: No module named 'backports' > + > +Upstream-Status: Backport [https://github.com/hotdoc/hotdoc/commit/51043c3ef889e36c8232280581598b875073ded7] > + > +Signed-off-by: Liu Yiding <[email protected]> > +--- > + hotdoc/extensions/gi/utils.py | 6 +++++- > + hotdoc/utils/utils.py | 6 +++++- > + setup.py | 2 +- > + 3 files changed, 11 insertions(+), 3 deletions(-) > + > +diff --git a/hotdoc/extensions/gi/utils.py b/hotdoc/extensions/gi/utils.py > +index 159c2b6..91902cb 100644 > +--- a/hotdoc/extensions/gi/utils.py > ++++ b/hotdoc/extensions/gi/utils.py > +@@ -1,9 +1,13 @@ > + import os > + from collections import namedtuple > + import pathlib > ++import sys > + import traceback > + > +-from backports.entry_points_selectable import entry_points > ++if sys.version_info >= (3, 10): > ++ from importlib.metadata import entry_points > ++else: > ++ from backports.entry_points_selectable import entry_points > + > + from hotdoc.core.links import Link > + from hotdoc.utils.loggable import info, debug > +diff --git a/hotdoc/utils/utils.py b/hotdoc/utils/utils.py > +index 518d308..aef657a 100644 > +--- a/hotdoc/utils/utils.py > ++++ b/hotdoc/utils/utils.py > +@@ -35,7 +35,11 @@ import importlib.util > + from urllib.request import urlretrieve > + from pathlib import Path > + > +-from backports.entry_points_selectable import entry_points > ++if sys.version_info >= (3, 10): > ++ from importlib.metadata import entry_points > ++else: > ++ from backports.entry_points_selectable import entry_points > ++ > + try: > + import importlib.metadata as meta > + except ImportError: > +diff --git a/setup.py b/setup.py > +index 5d7f131..9ee504d 100644 > +--- a/setup.py > ++++ b/setup.py > +@@ -300,7 +300,7 @@ INSTALL_REQUIRES = [ > + 'wheezy.template', > + 'toposort>=1.4', > + 'importlib_metadata; python_version<"3.10"', > +- 'backports.entry_points_selectable', > ++ 'backports.entry_points_selectable; python_version<"3.10"', > + ] > + > + # dbus-deviation requires sphinx, which requires python 3.5 > +-- > +2.43.0 > + > diff --git a/meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch b/meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch > new file mode 100644 > index 0000000000..056ad5d340 > --- /dev/null > +++ b/meta-oe/recipes-devtools/hotdoc/hotdoc/0003-CMake-4-compatibility.patch > @@ -0,0 +1,44 @@ > +Subject: [PATCH] CMake 4 compatibility > + > +All CMake versions older than 3.10 are deprecated. > + > +Upstream-Status: Backport [https://github.com/MathieuDuponchelle/cmark/commit/bd78193dbff98c3860e77629b5c7bfee6169d1da] > + > +Signed-off-by: Liu Yiding <[email protected]> > +--- > + CMakeLists.txt | 11 ++--------- > + extensions/CMakeLists.txt | 2 +- > + 2 files changed, 3 insertions(+), 10 deletions(-) > + > +diff --git a/CMakeLists.txt b/CMakeLists.txt > +index ff97419..45fdf6c 100755 > +--- a/CMakeLists.txt > ++++ b/CMakeLists.txt > +@@ -1,12 +1,5 @@ > +-cmake_minimum_required(VERSION 2.8.9) > +- > +-# prevent ugly developer warnings because version is set directly, not through project() > +-# it should be redone properly by using VERSION in project() if on CMake 3.x > +-if(CMAKE_MAJOR_VERSION GREATER 2) > +- cmake_policy(SET CMP0048 OLD) > +-endif() > +- > +-project(cmark) > ++cmake_minimum_required(VERSION 3.10) > ++project(cmark VERSION 0.28.3) > + > + include("FindAsan.cmake") > + > +diff --git a/extensions/CMakeLists.txt b/extensions/CMakeLists.txt > +index e62d155..b6a1556 100644 > +--- a/extensions/CMakeLists.txt > ++++ b/extensions/CMakeLists.txt > +@@ -1,4 +1,4 @@ > +-cmake_minimum_required(VERSION 2.8) > ++cmake_minimum_required(VERSION 3.10) > + set(LIBRARY "cmarkextensions") > + set(LIBRARY_SOURCES > + core-extensions.c > +-- > +2.43.0 > + > diff --git a/meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch b/meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch > new file mode 100644 > index 0000000000..ae8c2ef3e7 > --- /dev/null > +++ b/meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch > @@ -0,0 +1,34 @@ > +Subject: [PATCH] Make path to relative in FlexExtension > + > +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] > +meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch
Quoted 10 lines
meta-oe/recipes-devtools/hotdoc/hotdoc/0004-Make-path-to-relative-in-FlexExtension.patch new file +10
-0+Signed-off-by: Liu Yiding <[email protected]> +--- + setup.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 9ee504d..fc03c57 100644 +--- a/setup.py ++++ b/setup.py +@@ -357,11 +357,11 @@ build_c_extension =
os.environ.get('HOTDOC_BUILD_C_EXTENSION', 'auto')
> + class FlexExtension (Extension):
> + def__init__(self, flex_sources, *args, **kwargs):
> + Extension.__init__(self, *args, **kwargs) > +- self.__flex_sources = [src(s) for s inflex_sources] > ++ self.__flex_sources =list(flex_sources)> +how does this appear in sources I wonder if using flex with --noline option can be of help here.
Quoted 3 lines
+ def
__build_flex(self):
+ src_dir =os.path.dirname(self.__flex_sources[0])+-built_scanner_path= src(os.path.join(src_dir,'scanner.c')) > ++ built_scanner_path = os.path.join(src_dir, 'scanner.c') > + > + self.sources.append(built_scanner_path) > + if newer_group(self.__flex_sources, built_scanner_path): > +-- > +2.43.0 > + > diff --git a/meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb <http://hotdoc_0.17.4.bb> b/meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb <http://hotdoc_0.17.4.bb> > new file mode 100644 > index 0000000000..6192a78989 > --- /dev/null > +++ b/meta-oe/recipes-devtools/hotdoc/hotdoc_0.17.4.bb <http://hotdoc_0.17.4.bb> > @@ -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-Make-path-to-relative-in-FlexExtension.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 <http://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" > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#124372): https://lists.openembedded.org/g/openembedded-devel/message/124372 Mute This Topic: https://lists.openembedded.org/mt/117786773/1997914 Group Owner: [email protected] <mailto:openembedded-devel%[email protected]> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-