Hi Shriram,
On 2023-11-18 10:26, Shriram Ravindranathan wrote:
I am packaging magic_enum, a header-only C++ library which uses CMake
with GNUInstallDirs. AFAIK the package should be arch-independent as
there is no architecture dependent code in it.
[...]
W: libmagicenum-dev: pkg-config-unavailable-for-cross-compilation
[usr/lib/pkgconfig/magic_enum.pc]
N:
N: The specified pkg-config(1) file is installed to /usr/lib/pkgconfig. As
the cross-compilation wrapper of pkg-config does not search this directory
N: the file is unavailable under cross-compilation.
N:
N: Please install the file to /usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig
instead.
N:
N: For projects that use GNU Autotools, a simple method is moving to a
debhelper compat level of 9 or higher. In the rare case that this file is
N: architecture independent it can be installed to /usr/share/pkgconfig
instead.
N:
N: Visibility: warning
N: Show-Always: no
N: Check: files/pkgconfig
This lintian warning suggests installing architecture independent
pkg-config files under /usr/share/pkgconfig, have you tried doing so?
Hope this helps,
Andrius