gstreamer1.0-vaapi: Enable hotdoc to produce doc
PATCH 1/1 gstreamer1.0-vaapi: Enable hotdoc to produce doc
1. Add 0001-Disable-cross_build-check-to-make-doc-work-in-yocto.patch.
2. Add INSANE_SKIP to fix do_package QA Issue
--- ...uild-check-to-make-doc-work-in-yocto.patch | 32 +++++++++++++++++++ .../gstreamer/gstreamer1.0-vaapi_1.26.9.bb | 19 +++++++++-- 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-Disable-cross_build-check-to-make-doc-work-in-yocto.patch
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-Disable-cross_build-check-to-make-doc-work-in-yocto.patch new file +32 -0
@@ -0,0 +1,32 @@ +Subject: [PATCH] Disable cross_build check to make doc work in yocto. + +Upstream-Status: Inappropriate [oe-specific] + +Signed-off-by: Liu Yiding <[email protected]> +--- + docs/meson.build | 9 --------- + 1 file changed, 9 deletions(-) + +diff --git a/docs/meson.build b/docs/meson.build +index ad5f785..1e7a808 100644 +--- a/docs/meson.build ++++ b/docs/meson.build +@@ -4,15 +4,6 @@ if get_option('doc').disabled() + subdir_done() + endif + +-if meson.is_cross_build() +- if get_option('doc').enabled() +- error('Documentation enabled but building the doc while cross building is not supported yet.') +- endif +- +- message('Documentation not built as building it while cross building is not supported yet.') +- subdir_done() +-endif +- + if static_build + if get_option('doc').enabled() + error('Documentation enabled but not supported when building statically.') +-- +2.43.0 +
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.26.9.bb +17 -2
@@ -9,7 +9,9 @@ REALPN = "gstreamer-vaapi" LICENSE = "LGPL-2.1-or-later" LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" -SRC_URI = "https://gstreamer.freedesktop.org/src/${REALPN}/${REALPN}-${PV}.tar.xz" +SRC_URI = "https://gstreamer.freedesktop.org/src/${REALPN}/${REALPN}-${PV}.tar.xz \ + file://0001-Disable-cross_build-check-to-make-doc-work-in-yocto.patch \ + " SRC_URI[sha256sum] = "bf989040404515dc9b042f4fdc49ff33a6dccf49d544736150e967b42665598e"
@@ -21,7 +23,6 @@ inherit meson pkgconfig features_check upstream-version-is-even REQUIRED_DISTRO_FEATURES ?= "opengl" EXTRA_OEMESON += " \ - -Ddoc=disabled \ -Dexamples=disabled \ -Dtests=enabled \ "
@@ -44,10 +45,24 @@ PACKAGECONFIG[drm] = "-Ddrm=enabled,-Ddrm=disabled,udev libdrm" PACKAGECONFIG[egl] = "-Degl=enabled,-Degl=disabled,virtual/egl" PACKAGECONFIG[encoders] = "-Dencoders=enabled,-Dencoders=disabled" PACKAGECONFIG[glx] = "-Dglx=enabled,-Dglx=disabled,virtual/libgl" +PACKAGECONFIG[hotdoc] = "-Ddoc=enabled,-Ddoc=disabled,hotdoc-native" PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland-native wayland wayland-protocols" PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,virtual/libx11 libxrandr libxrender" +do_install:append:class-target () { + if ${@bb.utils.contains('PACKAGECONFIG', 'hotdoc', 'true', 'false', d)}; then + export LLVM_CONFIG=${STAGING_BINDIR_NATIVE}/llvm-config + meson compile docs/vaapi-doc + install -d ${D}${docdir}/${PN} + cp -r ${B}/docs/vaapi-doc/html ${D}${docdir}/${PN} + fi +} + FILES:${PN} += "${libdir}/gstreamer-*/*.so" FILES:${PN}-dbg += "${libdir}/gstreamer-*/.debug" FILES:${PN}-dev += "${libdir}/gstreamer-*/*.a" FILES:${PN}-tests = "${bindir}/*" +FILES:${PN}-doc += "${docdir}" + +# Fix do_package_qa: QA Issue: non -staticdev package contains static .a library: gstreamer1.0-vaapi-doc path '/usr/share/doc/gstreamer1.0-vaapi/html/assets/js/search/annex.a' [staticdev], annex.a is a text file +INSANE_SKIP:${PN}-doc += "staticdev"
Signature · 1 line
2.43.0
Quoted 15 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-Disable-cross_build-check-to-make-doc-work-in-yocto.patch new file +15
-0+Subject: [PATCH] Disable cross_build check to make doc work in yocto. + +Upstream-Status: Inappropriate [oe-specific] +Signed-off-by: Liu Yiding <[email protected]> +--- + docs/meson.build | 9 --------- + 1 file changed, 9 deletions(-) + +diff --git a/docs/meson.build b/docs/meson.build +index ad5f785..1e7a808 100644 +--- a/docs/meson.build ++++ b/docs/meson.build +@@ -4,15 +4,6 @@ if get_option('doc').disabled() + subdir_done() + endif
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-Disable-cross_build-check-to-make-doc-work-in-yocto.patch line 26
Quoted 10 lines
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-Disable-cross_build-check-to-make-doc-work-in-yocto.patch new file +10
-0+ +-if meson.is_cross_build() +- if get_option('doc').enabled() +- error('Documentation enabled but building the doc while cross building is not supported yet.') +- endif +- +- message('Documentation not built as building it while cross building is not supported yet.') +- subdir_done() +-endif +-
I think this is suitable for upstream submission, Yocto is a cross build environment and building docs does work.
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.26.9.bb PACKAGECONFIG[drm] = "-Ddrm=enabled,-Ddrm=disabled,udev libdrm" · line 58
Quoted 7 lines
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.26.9.bb +7
-0+do_install:append:class-target () { + if ${@bb.utils.contains('PACKAGECONFIG', 'hotdoc', 'true', 'false', d)}; then + export LLVM_CONFIG=${STAGING_BINDIR_NATIVE}/llvm-config + meson compile docs/vaapi-doc + install -d ${D}${docdir}/${PN} + cp -r ${B}/docs/vaapi-doc/html ${D}${docdir}/${PN} + fi
Shouldn't these steps happen automatically by just enabling the hotdoc option and building the component?
Alex
Hi Alex
I am not sure but consider that gstreamer1.0-vaapi can't work with cross build environment was related to clang env as export LLVM_CONFIG=${STAGING_BINDIR_NATIVE}/llvm-config
Quoted 1 line
Shouldn't these steps happen automatically by just enabling the hotdoc
option and building the component?
Yes, these steps can't be automatically by just enabling the hotdoc option. If it was necessary to be automatically, I will investigate it.
Liu
________________________________
发件人: Alexander Kanavin <[email protected]>
发送时间: 2026年3月3日 18:58
收件人: Liu, Yiding/刘 乙丁 <[email protected]>
抄送: [email protected] <[email protected]> 主题: Re: [OE-core][PATCH] gstreamer1.0-vaapi: Enable hotdoc to produce doc
Quoted 15 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-Disable-cross_build-check-to-make-doc-work-in-yocto.patch new file +15
-0+Subject: [PATCH] Disable cross_build check to make doc work in yocto. + +Upstream-Status: Inappropriate [oe-specific] +Signed-off-by: Liu Yiding <[email protected]> +--- + docs/meson.build | 9 --------- + 1 file changed, 9 deletions(-) + +diff --git a/docs/meson.build b/docs/meson.build +index ad5f785..1e7a808 100644 +--- a/docs/meson.build ++++ b/docs/meson.build +@@ -4,15 +4,6 @@ if get_option('doc').disabled() + subdir_done() + endif
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-Disable-cross_build-check-to-make-doc-work-in-yocto.patch line 26
Quoted 10 lines
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-Disable-cross_build-check-to-make-doc-work-in-yocto.patch new file +10
-0+ +-if meson.is_cross_build() +- if get_option('doc').enabled() +- error('Documentation enabled but building the doc while cross building is not supported yet.') +- endif +- +- message('Documentation not built as building it while cross building is not supported yet.') +- subdir_done() +-endif +-
I think this is suitable for upstream submission, Yocto is a cross build environment and building docs does work.
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.26.9.bb PACKAGECONFIG[drm] = "-Ddrm=enabled,-Ddrm=disabled,udev libdrm" · line 58
Quoted 7 lines
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.26.9.bb +7
-0+do_install:append:class-target () { + if ${@bb.utils.contains('PACKAGECONFIG', 'hotdoc', 'true', 'false', d)}; then + export LLVM_CONFIG=${STAGING_BINDIR_NATIVE}/llvm-config + meson compile docs/vaapi-doc + install -d ${D}${docdir}/${PN} + cp -r ${B}/docs/vaapi-doc/html ${D}${docdir}/${PN} + fi
Shouldn't these steps happen automatically by just enabling the hotdoc option and building the component?
Alex