[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#842441: m17n-lib FTCBFS: uses build architecture pkg-config



Hi Harshula,

On Mon, Nov 29, 2021 at 10:46:08PM +0100, Harshula wrote:
> Great, thanks for that! So, replace all instances of pkg-config calls with
> $PKG_CONFIG calls to ensure the cross-build environment's pkg-config
> executable is run.

You can take that as general advice, but as with many things, it does
have rare exceptions.

> Should deprecating pkg-config calls go into debian-policy and/or lintian? I
> noticed that a more specific issue you reported got turned into https://lintian.debian.org/tags/autotools-pkg-config-macro-not-cross-compilation-safe
> .

The Debian policy is mostly concerned with packaging aspects. The use of
pkg-config is an upstream aspect though. Fixing such issues benefits
cross compilation in general and helps other distributions such as
yocto, openwrt and ptxdist. As such, I don't see it belonging there.

As for lintian, you already figured that there is a tag for this
specific issue, but it may be too narrow to catch all cases. If you have
ideas on how to extend that without causing false positives, let me
know.

Helmut


Reply to: