Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/3] blueprint-compiler: inherit python3-dir not python3targetconfig
@ 2026-06-26 15:13 Ross Burton
  2026-06-26 15:13 ` [PATCH 2/3] shared-mime-info: remove python3native dependency Ross Burton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ross Burton @ 2026-06-26 15:13 UTC (permalink / raw)
  To: openembedded-core

This recipe just needs to know the value of PYTHON_SITEPACKAGES_DIR,
which is defined by python3-dir. Inheriting that directly instead of
python3targetconfig means we don't depend on python3 to build this tool.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../blueprint-compiler/blueprint-compiler_0.20.4.bb             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.20.4.bb b/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.20.4.bb
index bf357872c39..5bd3a5439cf 100644
--- a/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.20.4.bb
+++ b/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.20.4.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3000208d539ec061b899bce1d9ce9404"
 SRC_URI = "git://gitlab.gnome.org/GNOME/blueprint-compiler;protocol=https;branch=blueprint-0-20;tag=v${PV}"
 SRCREV = "31b62c24a72c1670d2d93dcdf2d130f1ae12778e"
 
-inherit meson pkgconfig python3targetconfig
+inherit meson pkgconfig python3-dir
 
 PACKAGES += "${PN}-python"
 
-- 
2.43.0



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

* [PATCH 2/3] shared-mime-info: remove python3native dependency
  2026-06-26 15:13 [PATCH 1/3] blueprint-compiler: inherit python3-dir not python3targetconfig Ross Burton
@ 2026-06-26 15:13 ` Ross Burton
  2026-06-26 15:13 ` [PATCH 3/3] classes/gtk-doc: inherit python3native only if gtk-doc is enabled Ross Burton
  2026-06-28 15:03 ` [OE-core] [PATCH 1/3] blueprint-compiler: inherit python3-dir not python3targetconfig Mathieu Dubois-Briand
  2 siblings, 0 replies; 4+ messages in thread
From: Ross Burton @ 2026-06-26 15:13 UTC (permalink / raw)
  To: openembedded-core

This was added in the shared-mime-info 1.15 upgrade[1] with no rationale,
I suspect it was for itstool-native which is no longer used[2]. At least,
none of the dependencies would need python3-native over the host python3.

[1] oe-core 09ef7f8e4b9 ("shared-mime-info: upgrade 1.10 -> 1.15")
[2] oe-core 8ca8687b336 ("shared-mime-info: drop itstool-native from DEPENDS")

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-support/shared-mime-info/shared-mime-info_2.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info_2.4.bb b/meta/recipes-support/shared-mime-info/shared-mime-info_2.4.bb
index f307aca35dd..f27061d5d1a 100644
--- a/meta/recipes-support/shared-mime-info/shared-mime-info_2.4.bb
+++ b/meta/recipes-support/shared-mime-info/shared-mime-info_2.4.bb
@@ -13,7 +13,7 @@ SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https;
            file://0002-Handle-build-with-older-versions-of-GCC.patch"
 SRCREV = "9a6d6b8e963935f145f3a1ef446552de6996dada"
 
-inherit meson pkgconfig gettext python3native mime
+inherit meson pkgconfig gettext mime
 
 EXTRA_OEMESON = " \
                  -Dupdate-mimedb=true \
-- 
2.43.0



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

* [PATCH 3/3] classes/gtk-doc: inherit python3native only if gtk-doc is enabled
  2026-06-26 15:13 [PATCH 1/3] blueprint-compiler: inherit python3-dir not python3targetconfig Ross Burton
  2026-06-26 15:13 ` [PATCH 2/3] shared-mime-info: remove python3native dependency Ross Burton
@ 2026-06-26 15:13 ` Ross Burton
  2026-06-28 15:03 ` [OE-core] [PATCH 1/3] blueprint-compiler: inherit python3-dir not python3targetconfig Mathieu Dubois-Briand
  2 siblings, 0 replies; 4+ messages in thread
From: Ross Burton @ 2026-06-26 15:13 UTC (permalink / raw)
  To: openembedded-core

Use inherit_defer to only inherit python3native (thus, a dependency on
python3-native) when gtk-doc is actually enabled.

This is useful in native builds where gtk-doc is disabled and so will no
longer depend on python3-native.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes-recipe/gtk-doc.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes-recipe/gtk-doc.bbclass b/meta/classes-recipe/gtk-doc.bbclass
index 9d3911966bb..33f6617e1bd 100644
--- a/meta/classes-recipe/gtk-doc.bbclass
+++ b/meta/classes-recipe/gtk-doc.bbclass
@@ -35,9 +35,11 @@ DEPENDS:append = " gtk-doc-native"
 
 export STAGING_DIR_HOST
 
-inherit python3native pkgconfig qemu
+inherit pkgconfig qemu
 DEPENDS:append = "${@' qemu-native' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}"
 
+inherit_defer ${@bb.utils.contains('GTKDOC_ENABLED', 'True', 'python3native', '', d)}
+
 do_compile:prepend:class-target () {
     if [ ${GTKDOC_ENABLED} = True ]; then
         # Write out a qemu wrapper that will be given to gtkdoc-scangobj so that it
-- 
2.43.0



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

* Re: [OE-core] [PATCH 1/3] blueprint-compiler: inherit python3-dir not python3targetconfig
  2026-06-26 15:13 [PATCH 1/3] blueprint-compiler: inherit python3-dir not python3targetconfig Ross Burton
  2026-06-26 15:13 ` [PATCH 2/3] shared-mime-info: remove python3native dependency Ross Burton
  2026-06-26 15:13 ` [PATCH 3/3] classes/gtk-doc: inherit python3native only if gtk-doc is enabled Ross Burton
@ 2026-06-28 15:03 ` Mathieu Dubois-Briand
  2 siblings, 0 replies; 4+ messages in thread
From: Mathieu Dubois-Briand @ 2026-06-28 15:03 UTC (permalink / raw)
  To: ross.burton, openembedded-core

On Fri Jun 26, 2026 at 5:13 PM CEST, Ross Burton via lists.openembedded.org wrote:
> This recipe just needs to know the value of PYTHON_SITEPACKAGES_DIR,
> which is defined by python3-dir. Inheriting that directly instead of
> python3targetconfig means we don't depend on python3 to build this tool.
>
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---

Hi Ross,

It looks like this has an impact on packaging or install:

ERROR: blueprint-compiler-0.20.4-r0 do_package: QA Issue: blueprint-compiler: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/python3.14
  /usr/lib/python3.14/site-packages
  /usr/lib/python3.14/site-packages/blueprintcompiler
  /usr/lib/python3.14/site-packages/blueprintcompiler/lsp.py
  /usr/lib/python3.14/site-packages/blueprintcompiler/gir.py
  /usr/lib/python3.14/site-packages/blueprintcompiler/errors.py
  /usr/lib/python3.14/site-packages/blueprintcompiler/completions_utils.py
  /usr/lib/python3.14/site-packages/blueprintcompiler/formatter.py
  /usr/lib/python3.14/site-packages/blueprintcompiler/reference_docs.json
  /usr/lib/python3.14/site-packages/blueprintcompiler/annotations.py
  /usr/lib/python3.14/site-packages/blueprintcompiler/interactive_port.py
  /usr/lib/python3.14/site-packages/blueprintcompiler/linter.py
  /usr/lib/python3.14/site-packages/blueprintcompiler/types.py
  /usr/lib/python3.14/site-packages/blueprintcompiler/parse_tree.py
  /usr/lib/python3.14/site-packages/blueprintcompiler/lsp_utils.py
...

https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/3864
https://autobuilder.yoctoproject.org/valkyrie/#/builders/59/builds/4048

Can you have a look at the issue?

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

end of thread, other threads:[~2026-06-28 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-26 15:13 [PATCH 1/3] blueprint-compiler: inherit python3-dir not python3targetconfig Ross Burton
2026-06-26 15:13 ` [PATCH 2/3] shared-mime-info: remove python3native dependency Ross Burton
2026-06-26 15:13 ` [PATCH 3/3] classes/gtk-doc: inherit python3native only if gtk-doc is enabled Ross Burton
2026-06-28 15:03 ` [OE-core] [PATCH 1/3] blueprint-compiler: inherit python3-dir not python3targetconfig Mathieu Dubois-Briand

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