From: Randolph Sapp <rs@ti.com>
To: <richard.purdie@linuxfoundation.org>, <alex.kanavin@gmail.com>,
<openembedded-core@lists.openembedded.org>,
Ryan Eatmon <reatmon@ti.com>,
Denys Dmytriyenko <denys@konsulko.com>, <cordlandwehr@kde.org>,
"alexandre.belloni@bootlin.com" <alexandre.belloni@bootlin.com>,
Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [oe-core] [RFC] meson.bbclass: pkg-config vs pkgconf
Date: Mon, 3 Jun 2024 13:02:02 -0500 [thread overview]
Message-ID: <f709a2b1-450a-47ab-9438-577c8d5e6bba@ti.com> (raw)
Hello,
Forgive my ignorance, but is there any particular reason why pkg-config
is preferred over pkgconf for meson related recipes? It seems the two
treat the usage of the PKG_CONFIG_SYSROOT_DIR variable differently,
resulting in issues when build scripts attempting to use package config
variables directly.
It seems that pkgconf respects PKG_CONFIG_SYSROOT_DIR by prepending that
path to all variables queried, where as pkg-config just populates an
internal global variable that the *.pc file must then use (pc_sysrootdir).
The global variable method would work, if any package config generating
scripts used it by default. Unfortunately the only use I've been able to
find comes from Yocto related patches specifically added to work around
this difference in behavior.
You can see some of the attempts to work around this discrepancy here:
recipes-graphics/xorg-proto/xcb-proto/0001-xcb-proto.pc.in-reinstate-libdir.patch
recipes-graphics/wayland/wayland/0002-Consider-pkgconfig-sysroot-for-pkgdatadir.patch
meta-openembedded/meta-oe/recipes-extended/flatpak/flatpak_1.15.6.bb
If there's not an explicit reason we're preferring pkg-config, would
anyone be opposed to switching it out for pkgconf for meson related
packages? Of course, with a note about this behavior discrepancy. It
would reduce these Yocto specific patches and align meson behavior with
distros that currently default to pkgconf.
Regards,
Randolph
next reply other threads:[~2024-06-03 18:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-03 18:02 Randolph Sapp [this message]
2024-06-03 21:22 ` [oe-core] [RFC] meson.bbclass: pkg-config vs pkgconf Richard Purdie
2024-06-03 21:32 ` Marko Lindqvist
2024-06-03 21:37 ` Richard Purdie
2024-06-03 21:54 ` Randolph Sapp
2024-06-03 22:02 ` Randolph Sapp
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=f709a2b1-450a-47ab-9438-577c8d5e6bba@ti.com \
--to=rs@ti.com \
--cc=alex.kanavin@gmail.com \
--cc=alexandre.belloni@bootlin.com \
--cc=cordlandwehr@kde.org \
--cc=denys@konsulko.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=reatmon@ti.com \
--cc=richard.purdie@linuxfoundation.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