Control: reassign -1 pkg-config

Hi!

On Mon, 2016-12-19 at 19:10:39 +0100, Klaus-J. Wolf wrote:
> Package: dpkg
> Version: 1.18.15
> Severity: important
> Tags: d-i

> the command line
> 
> # dpkg --print-architecture
> amd64
> 
> # dpkg --add-architecture i386
> Odd number of elements in hash assignment at /usr/share/pkg-config-dpkghook 
> line 30.
> 
> This happens on architecture amd64 (x86_64) and concerns both i386 and ix86.
> 
> If you google for it, a situation like this does not seem to be perfectly
> unknown, while it is unclear why it is reported over longer periods of time
> without becoming fixed.

This is the first time I've seen this reported, TBH.

> # dpkg --print-foreign-architectures
> ix86
> i386

The problem here is that the architecture tables know nothing about
this ix86 architecture, and they cannot infer the bijective mapping
between the Debian architecture and the GNU triplets.

So I guess, the hook in pkg-config, needs to check whether the function
mapping to a GNU triplet returns undef, and either:

 - abort, stating that this is an unknown architecture for which there
   is no known mapping to GNU triplets.
 - warn, and let it through w/o handling any of the cross setup.

I guess in both cases the message could suggest that the arch needs to
be added to the arch tables in dpkg-dev upstream, but in many cases
that might not make sense. Or at least the tables locally overridden
using an alternative DPKG_DATADIR environment variable (see man
dpkg-architecture(1)).

Thanks,
Guillem

Reply via email to