diff mbox series

[meta-oe] leptonica,tesseract: add native variant

Message ID 20250726084424.2046250-1-yoann.congal@smile.fr
State Under Review
Headers show
Series [meta-oe] leptonica,tesseract: add native variant | expand

Commit Message

Yoann Congal July 26, 2025, 8:44 a.m. UTC
From: Yoann Congal <yoann.congal@smile.fr>

Since commit d6736b37c3f4 ("python-pytesseract: Update runtime
dependencies"), pytesseract rdepends on tesseract and has a native
variant. So, tesseract and its dependency leptonica also need the native
variant.

Fixes these warnings from AB[0]:
WARNING: Nothing RPROVIDES 'tesseract-native' (but virtual:native:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-extended/python-pytesseract/pytesseract_0.3.13.bb RDEPENDS on or otherwise requires it)
[0]: https://autobuilder.yoctoproject.org/valkyrie/#/builders/82/builds/377/steps/12/logs/warnings

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 meta-oe/recipes-graphics/leptonica/leptonica_1.85.0.bb | 2 ++
 meta-oe/recipes-graphics/tesseract/tesseract_5.5.1.bb  | 2 ++
 2 files changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/leptonica/leptonica_1.85.0.bb b/meta-oe/recipes-graphics/leptonica/leptonica_1.85.0.bb
index 2e1a3642ad..068937e6bb 100644
--- a/meta-oe/recipes-graphics/leptonica/leptonica_1.85.0.bb
+++ b/meta-oe/recipes-graphics/leptonica/leptonica_1.85.0.bb
@@ -18,3 +18,5 @@  PACKAGECONFIG[openjpeg] = "--with-libopenjpeg,--without-libopenjpeg,openjpeg"
 PACKAGECONFIG[giflib] = "--with-giflib,--without-giflib,giflib"
 
 inherit autotools pkgconfig
+
+BBCLASSEXTEND = "native"
diff --git a/meta-oe/recipes-graphics/tesseract/tesseract_5.5.1.bb b/meta-oe/recipes-graphics/tesseract/tesseract_5.5.1.bb
index 4bc0f5b88f..f01cf8e138 100644
--- a/meta-oe/recipes-graphics/tesseract/tesseract_5.5.1.bb
+++ b/meta-oe/recipes-graphics/tesseract/tesseract_5.5.1.bb
@@ -18,3 +18,5 @@  inherit autotools pkgconfig
 FILES:${PN} += "${datadir}/tessdata"
 
 RRECOMMENDS:${PN} += "tesseract-lang-eng"
+
+BBCLASSEXTEND = "native"