mbox series

[0/8] Rationalise the pkg-config variables

Message ID 20260123180448.2997378-1-ross.burton@arm.com
Headers show
Series Rationalise the pkg-config variables | expand

Message

Ross Burton Jan. 23, 2026, 6:04 p.m. UTC
Hi,

This series cleans up and rationalises the pkg-config variables, with the
goal of following the majority of major distros and later switching from
pkg-config (last release: 2017) to pkgconf (last release: June 2025).

However, this series doesn't do that.

The first three patches are adding missing inherits, or fixing a bug in
numpy that we were lucky enough not to hit.

The next two are the key patches, specifically "classes/pkgconfig: rationalise
variable usage" is the meat of the series that actually changes the
variables and contains the rationale.

The next two are improvements for pkgconf that we might as well apply now.

Finally, a controversial patch to drop support for a working menuconfig on
kernels older than 5.15. If there is a need to support 5.10 then the small
fix to the kernel Makefiles should be an easy backport.  This patch is not
needed though, and can be dropped.

Cheers,
Ross

Ross Burton (8):
  pkgconfig: inherit the pkgconfig class
  perf: inherit the pkgconfig class
  python3-numpy: backport a Meson patch to fix pkg-config lookups
  classes/pkgconfig: move variable exports to the class
  classes/pkgconfig: rationalise variable usage
  pkgconf: small cleanups
  pkgconf: add pkg-config-native to the nativesdk package
  kernel: remove pkg-config variables for old (<5.19) kernels

 meta/classes-recipe/cml1.bbclass              |  7 ++--
 meta/classes-recipe/cross-canadian.bbclass    |  3 +-
 meta/classes-recipe/cross.bbclass             |  4 +--
 meta/classes-recipe/kernel.bbclass            | 13 -------
 meta/classes-recipe/native.bbclass            |  1 -
 meta/classes-recipe/nativesdk.bbclass         |  3 --
 meta/classes-recipe/pkgconfig.bbclass         |  6 ++++
 meta/conf/bitbake.conf                        | 14 ++++----
 .../pkgconf/pkgconf/pkg-config-native.in      |  3 +-
 .../recipes-devtools/pkgconf/pkgconf_2.5.1.bb | 14 ++++++--
 .../pkgconfig/pkgconfig_git.bb                |  4 +--
 .../python3-numpy/0001-python-sysroot.patch   | 34 +++++++++++++++++++
 .../python/python3-numpy_2.3.5.bb             |  1 +
 meta/recipes-kernel/linux/linux-yocto.inc     |  8 ++---
 meta/recipes-kernel/perf/perf.bb              |  3 +-
 15 files changed, 72 insertions(+), 46 deletions(-)
 create mode 100644 meta/recipes-devtools/python/python3-numpy/0001-python-sysroot.patch

Comments

Ross Burton Jan. 23, 2026, 6:07 p.m. UTC | #1
Hit send and immediately remembered I forgot something:

I did a build of “world core-image-sato:do_populate_sdk” for master and with this series, and compared the deploy/ipk/ directories. The only changes were in meta-environment and the python build configuration, where PKG_CONFIG_PATH changes to PKG_CONFIG_LIBDIR.

Ross


> On 23 Jan 2026, at 18:04, Ross Burton via lists.openembedded.org <ross.burton=arm.com@lists.openembedded.org> wrote:
> 
> Hi,
> 
> This series cleans up and rationalises the pkg-config variables, with the
> goal of following the majority of major distros and later switching from
> pkg-config (last release: 2017) to pkgconf (last release: June 2025).
> 
> However, this series doesn't do that.
> 
> The first three patches are adding missing inherits, or fixing a bug in
> numpy that we were lucky enough not to hit.
> 
> The next two are the key patches, specifically "classes/pkgconfig: rationalise
> variable usage" is the meat of the series that actually changes the
> variables and contains the rationale.
> 
> The next two are improvements for pkgconf that we might as well apply now.
> 
> Finally, a controversial patch to drop support for a working menuconfig on
> kernels older than 5.15. If there is a need to support 5.10 then the small
> fix to the kernel Makefiles should be an easy backport.  This patch is not
> needed though, and can be dropped.
> 
> Cheers,
> Ross
> 
> Ross Burton (8):
>  pkgconfig: inherit the pkgconfig class
>  perf: inherit the pkgconfig class
>  python3-numpy: backport a Meson patch to fix pkg-config lookups
>  classes/pkgconfig: move variable exports to the class
>  classes/pkgconfig: rationalise variable usage
>  pkgconf: small cleanups
>  pkgconf: add pkg-config-native to the nativesdk package
>  kernel: remove pkg-config variables for old (<5.19) kernels
> 
> meta/classes-recipe/cml1.bbclass              |  7 ++--
> meta/classes-recipe/cross-canadian.bbclass    |  3 +-
> meta/classes-recipe/cross.bbclass             |  4 +--
> meta/classes-recipe/kernel.bbclass            | 13 -------
> meta/classes-recipe/native.bbclass            |  1 -
> meta/classes-recipe/nativesdk.bbclass         |  3 --
> meta/classes-recipe/pkgconfig.bbclass         |  6 ++++
> meta/conf/bitbake.conf                        | 14 ++++----
> .../pkgconf/pkgconf/pkg-config-native.in      |  3 +-
> .../recipes-devtools/pkgconf/pkgconf_2.5.1.bb | 14 ++++++--
> .../pkgconfig/pkgconfig_git.bb                |  4 +--
> .../python3-numpy/0001-python-sysroot.patch   | 34 +++++++++++++++++++
> .../python/python3-numpy_2.3.5.bb             |  1 +
> meta/recipes-kernel/linux/linux-yocto.inc     |  8 ++---
> meta/recipes-kernel/perf/perf.bb              |  3 +-
> 15 files changed, 72 insertions(+), 46 deletions(-)
> create mode 100644 meta/recipes-devtools/python/python3-numpy/0001-python-sysroot.patch
> 
> -- 
> 2.43.0
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#229903): https://lists.openembedded.org/g/openembedded-core/message/229903
> Mute This Topic: https://lists.openembedded.org/mt/117422748/6875888
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ross.burton@arm.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>