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

Re: bugs in bootstrap.debian.net



On 03.02.2016 06:34, Helmut Grohne wrote:
Hi Tollef,

On Wed, Feb 03, 2016 at 06:10:50AM +0100, Tollef Fog Heen wrote:
Those scripts can wrap pkg-config, and pkg-config already knows how to
provide user-defined variables, so this sounds like a problem that's
solveable.

What sounds obvious isn't. The important bit here is which architecture
you are building for. pkg-config has an API for this: You invoke it as
$DEB_HOST_GNU_TYPE-pkg-config. Those foo-config scripts do not have this
API (with rare exceptions). Thus they do not know the host architecture
and have no way of correctly invoking pkg-config.

Yes, there were proposals checking $DEB_HOST_GNU_TYPE inside foo-config
scripts, but this will just break those scripts for those users that are
the reason for keeping them.

So this doesn't work, but I cannot tell you what works, sorry.

In many cases, these files are scripts and don't need to be architecture specific, because they point to paths which are default paths anyway. You can just remove things like @libdir@ and -L@libdir@. And even if the script offers a --libdir or --includedir option you can either remove that option, or lie about it.

Matthias


Reply to: