From: Ross Burton <ross.burton@arm.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH v2 4/9] classes/pkgconfig: move variable exports to the class
Date: Mon, 9 Feb 2026 12:56:22 +0000 [thread overview]
Message-ID: <20260209125628.640221-4-ross.burton@arm.com> (raw)
In-Reply-To: <20260209125628.640221-1-ross.burton@arm.com>
All recipes that use pkg-config should be inheriting the class so this
is a no-op change for those, and for recipes that do not use pkg-config
will no longer need to rebuild if these variables are changed.
Any recipes that use pkg-config but do not inherit the class will fail
to build, and this is intentional: those recipes should inherit the class.
This commit is simply the move of the exports, the values do not change.
Signed-off-by: Ross Burton <ross.burton@arm.com>
---
meta/classes-recipe/pkgconfig.bbclass | 7 +++++++
meta/conf/bitbake.conf | 14 +++++++-------
2 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/meta/classes-recipe/pkgconfig.bbclass b/meta/classes-recipe/pkgconfig.bbclass
index 1e1f3824dd..ea91338d34 100644
--- a/meta/classes-recipe/pkgconfig.bbclass
+++ b/meta/classes-recipe/pkgconfig.bbclass
@@ -6,3 +6,10 @@
DEPENDS:prepend = "pkgconfig-native "
+export PKG_CONFIG_DIR
+export PKG_CONFIG_PATH
+export PKG_CONFIG_LIBDIR
+export PKG_CONFIG_SYSROOT_DIR
+export PKG_CONFIG_DISABLE_UNINSTALLED
+export PKG_CONFIG_SYSTEM_LIBRARY_PATH
+export PKG_CONFIG_SYSTEM_INCLUDE_PATH
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index da873c3f4e..be76c88cce 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -768,13 +768,13 @@ BUILDCFG_NEEDEDVARS[type] = "list"
# Other
-export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
-export PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig"
-export PKG_CONFIG_LIBDIR = "${PKG_CONFIG_DIR}"
-export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
-export PKG_CONFIG_DISABLE_UNINSTALLED = "yes"
-export PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}"
-export PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}"
+PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
+PKG_CONFIG_PATH = "${PKG_CONFIG_DIR}:${STAGING_DATADIR}/pkgconfig"
+PKG_CONFIG_LIBDIR = "${PKG_CONFIG_DIR}"
+PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
+PKG_CONFIG_DISABLE_UNINSTALLED = "yes"
+PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}"
+PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}"
# Don't allow git to chdir up past WORKDIR or TMPDIR so that it doesn't detect the OE
# repository when building a recipe.
--
2.43.0
next prev parent reply other threads:[~2026-02-09 12:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 12:56 [PATCH v2 1/9] pkgconfig: inherit the pkgconfig class Ross Burton
2026-02-09 12:56 ` [PATCH v2 2/9] perf: " Ross Burton
2026-02-09 12:56 ` [PATCH v2 3/9] python3-numpy: backport a Meson patch to fix pkg-config lookups Ross Burton
2026-02-09 12:56 ` Ross Burton [this message]
2026-02-09 12:56 ` [PATCH v2 5/9] classes/pkgconfig: rationalise variable usage Ross Burton
2026-02-09 12:56 ` [PATCH v2 6/9] qemu: extend PKG_CONFIG_LIBDIR when using the host search path Ross Burton
2026-02-09 12:56 ` [PATCH v2 7/9] pkgconf: small cleanups Ross Burton
2026-02-09 12:56 ` [PATCH v2 8/9] pkgconf: add pkg-config-native to the nativesdk package Ross Burton
2026-02-09 12:56 ` [PATCH v2 9/9] kernel: remove pkg-config variables for old (<5.15) kernels Ross Burton
2026-02-23 17:01 ` [OE-core] " Bruce Ashfield
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260209125628.640221-4-ross.burton@arm.com \
--to=ross.burton@arm.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox