[Pkg-cmake-team] Bug#1121850: cmake: Debian cross builds fail when using cmake_pkg_config

Timo Röhling roehling at debian.org
Wed Dec 3 23:34:46 GMT 2025


On Thu, 4 Dec 2025 00:29:48 +0100 Timo =?utf-8?Q?R=C3=B6hling?= 
<roehling at debian.org> wrote:
> On Wed, 3 Dec 2025 15:28:52 +0100 Helmut Grohne <helmut at subdivi.de> 
> wrote:
> 
> > The recommended way to properly discover this value is pkg-config 
> > --variable=pc_path pkg-config, but this gives us the path for 
> > pkg-config's architecture. It is where pkgconf stops being 
> > Multi-Arch:foreign:
> 
> > $ bash -c 'exec -a aarch64-linux-gnu-pkgconf pkgconf 
> > --variable=pc_path pkg-config'
> > /usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
> 
> It looks like upstream has *almost* addressed this problem by 
> refactoring the statically compiled virtual packages into something that 
> could use the cross build personality (but does not yet):
> 
> https://github.com/pkgconf/pkgconf/commit/ef935a6349b82259513a1f0cc0cc3180f34a34f5

I should have continued browsing:
https://github.com/pkgconf/pkgconf/commit/2bfd36beb4d48d178f1521300ee57a3b96d95dd1

In other words, this issue might resolve itself with the next pkgconf 
release.


-- 
⢀⣴⠾⠻⢶⣦⠀   ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling                                       │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀   ╰────────────────────────────────────────────────────╯
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cmake-team/attachments/20251204/eddb5f57/attachment-0001.sig>


More information about the Pkg-cmake-team mailing list