public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [OE-core][PATCH v2] orc: Enable hotdoc to produce doc
@ 2026-02-25  3:37 Liu Yiding
  2026-03-09 17:23 ` Alexander Kanavin
  0 siblings, 1 reply; 6+ messages in thread
From: Liu Yiding @ 2026-02-25  3:37 UTC (permalink / raw)
  To: openembedded-core

Add do_install:append function to fix QA Issue like "File /usr/share/doc/orc/html/assets/js/search/hotdoc_fragments/orctarget.html-enum (unnamed at /work/x86-64-v3-poky-linux/orc/0.4.42/sources/orc-0.4.42/orc/orctarget.h:39:1).fragment in package orc-doc contains reference to TMPDIR [buildpaths]"

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
---
 meta/recipes-devtools/orc/orc_0.4.42.bb | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/meta/recipes-devtools/orc/orc_0.4.42.bb b/meta/recipes-devtools/orc/orc_0.4.42.bb
index f56b9058c2..b3f9555163 100644
--- a/meta/recipes-devtools/orc/orc_0.4.42.bb
+++ b/meta/recipes-devtools/orc/orc_0.4.42.bb
@@ -9,6 +9,9 @@ SRC_URI[sha256sum] = "7ec912ab59af3cc97874c456a56a8ae1eec520c385ec447e8a102b2bd1
 
 inherit meson pkgconfig
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[hotdoc] = ",,hotdoc-native"
+
 # distinguish from apache:orc
 CVE_PRODUCT = "gstreamer:orc"
 
@@ -27,3 +30,13 @@ python populate_packages:prepend () {
 do_compile:prepend:class-native () {
     sed -i -e 's#/tmp#.#g' ${S}/orc/orccodemem.c
 }
+
+#Add this function to deal with QA Issue like File /usr/share/doc/orc/html/assets/js/search/hotdoc_fragments/orctarget.html-enum (unnamed at /work/x86-64-v3-poky-linux/orc/0.4.42/sources/orc-0.4.42/orc/orctarget.h:39:1).fragment in package orc-doc contains reference to TMPDIR [buildpaths]
+do_install:append:class-target () {
+    if ${@bb.utils.contains('PACKAGECONFIG', 'hotdoc', 'true', 'false', d)}; then
+        rm -rf ${D}${docdir}/${PN}/html/assets/js/search/hotdoc_fragments/*unnamed*
+        for ss in $(find ${D}${docdir}/${PN}/html -type f); do
+            sed -i 's,${S},,g' "$ss"
+        done
+    fi
+}
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [OE-core][PATCH v2] orc: Enable hotdoc to produce doc
  2026-02-25  3:37 [OE-core][PATCH v2] orc: Enable hotdoc to produce doc Liu Yiding
@ 2026-03-09 17:23 ` Alexander Kanavin
  2026-03-09 17:41   ` Markus Volk
  2026-03-10  5:16   ` Yiding Liu (Fujitsu)
  0 siblings, 2 replies; 6+ messages in thread
From: Alexander Kanavin @ 2026-03-09 17:23 UTC (permalink / raw)
  To: liuyd.fnst; +Cc: openembedded-core, Ross Burton, Richard Purdie

On Wed, 25 Feb 2026 at 04:37, Yiding Liu (Fujitsu) via
lists.openembedded.org <liuyd.fnst=fujitsu.com@lists.openembedded.org>
wrote:
> +PACKAGECONFIG[hotdoc] = ",,hotdoc-native"

There's actually a build option called 'hotdoc', to control whether
docs are built or not. So it should be used to ensure build
determinism and reproducibility, as otherwise this is a floating
feature that gets enabled (or not) depending on whether hotdoc-native
is in sysroot.

Alex


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core][PATCH v2] orc: Enable hotdoc to produce doc
  2026-03-09 17:23 ` Alexander Kanavin
@ 2026-03-09 17:41   ` Markus Volk
  2026-03-09 17:50     ` Alexander Kanavin
  2026-03-10  5:16   ` Yiding Liu (Fujitsu)
  1 sibling, 1 reply; 6+ messages in thread
From: Markus Volk @ 2026-03-09 17:41 UTC (permalink / raw)
  To: liuyd.fnst; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

On Mon, Mar 9 2026 at 18:23:07 +01:00:00, Alexander Kanavin via 
lists.openembedded.org <alex.kanavin=gmail.com@lists.openembedded.org> 
wrote:
>  +PACKAGECONFIG[hotdoc] = ",,hotdoc-native"

Maybe call it PACKAGECONFIG[manpages] so that it could be 
enabled/disabled with the 'api-documentation' DISTRO_FEATURE ?


[-- Attachment #2: Type: text/html, Size: 479 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core][PATCH v2] orc: Enable hotdoc to produce doc
  2026-03-09 17:41   ` Markus Volk
@ 2026-03-09 17:50     ` Alexander Kanavin
  0 siblings, 0 replies; 6+ messages in thread
From: Alexander Kanavin @ 2026-03-09 17:50 UTC (permalink / raw)
  To: f_l_k; +Cc: liuyd.fnst, openembedded-core

On Mon, 9 Mar 2026 at 18:41, Markus Volk via lists.openembedded.org
<f_l_k=t-online.de@lists.openembedded.org> wrote:
>
> On Mon, Mar 9 2026 at 18:23:07 +01:00:00, Alexander Kanavin via lists.openembedded.org <alex.kanavin=gmail.com@lists.openembedded.org> wrote:
>
> +PACKAGECONFIG[hotdoc] = ",,hotdoc-native"
> Maybe call it PACKAGECONFIG[manpages] so that it could be enabled/disabled with the 'api-documentation' DISTRO_FEATURE ?

This option isn't actually generating man pages. It would also require
hotdoc recipe in oe-core which at present we decided not to do.

Alex


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core][PATCH v2] orc: Enable hotdoc to produce doc
  2026-03-09 17:23 ` Alexander Kanavin
  2026-03-09 17:41   ` Markus Volk
@ 2026-03-10  5:16   ` Yiding Liu (Fujitsu)
  2026-03-10 11:35     ` Alexander Kanavin
  1 sibling, 1 reply; 6+ messages in thread
From: Yiding Liu (Fujitsu) @ 2026-03-10  5:16 UTC (permalink / raw)
  To: Alexander Kanavin
  Cc: openembedded-core@lists.openembedded.org, Ross Burton,
	Richard Purdie

[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]

HI Alex
   How about change this line
     > +PACKAGECONFIG[hotdoc] = ",,hotdoc-native"
   to
   PACKAGECONFIG[hotdoc] = "-Dhotdoc=enabled,-Dhotdoc=disabled,hotdoc-native"

Liu
________________________________
发件人: Alexander Kanavin <alex.kanavin@gmail.com>
发送时间: 2026年3月10日 01:23
收件人: Liu, Yiding/刘 乙丁 <liuyd.fnst@fujitsu.com>
抄送: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org>; Ross Burton <ross.burton@arm.com>; Richard Purdie <richard.purdie@linuxfoundation.org>
主题: Re: [OE-core][PATCH v2] orc: Enable hotdoc to produce doc

On Wed, 25 Feb 2026 at 04:37, Yiding Liu (Fujitsu) via
lists.openembedded.org <liuyd.fnst=fujitsu.com@lists.openembedded.org>
wrote:
> +PACKAGECONFIG[hotdoc] = ",,hotdoc-native"

There's actually a build option called 'hotdoc', to control whether
docs are built or not. So it should be used to ensure build
determinism and reproducibility, as otherwise this is a floating
feature that gets enabled (or not) depending on whether hotdoc-native
is in sysroot.

Alex

[-- Attachment #2: Type: text/html, Size: 3046 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core][PATCH v2] orc: Enable hotdoc to produce doc
  2026-03-10  5:16   ` Yiding Liu (Fujitsu)
@ 2026-03-10 11:35     ` Alexander Kanavin
  0 siblings, 0 replies; 6+ messages in thread
From: Alexander Kanavin @ 2026-03-10 11:35 UTC (permalink / raw)
  To: Yiding Liu (Fujitsu)
  Cc: openembedded-core@lists.openembedded.org, Ross Burton,
	Richard Purdie

On Tue, 10 Mar 2026 at 06:16, Yiding Liu (Fujitsu)
<liuyd.fnst@fujitsu.com> wrote:
>    How about change this line
>      > +PACKAGECONFIG[hotdoc] = ",,hotdoc-native"
>    to
>    PACKAGECONFIG[hotdoc] = "-Dhotdoc=enabled,-Dhotdoc=disabled,hotdoc-native"

Yes, this should be fine.

Alex


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-10 11:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-25  3:37 [OE-core][PATCH v2] orc: Enable hotdoc to produce doc Liu Yiding
2026-03-09 17:23 ` Alexander Kanavin
2026-03-09 17:41   ` Markus Volk
2026-03-09 17:50     ` Alexander Kanavin
2026-03-10  5:16   ` Yiding Liu (Fujitsu)
2026-03-10 11:35     ` Alexander Kanavin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox