Hugh McMaster <hugh.mcmas...@outlook.com> writes:

> The packages krb5-multidev and libkrb5-dev are not multi-arch installable.

> A diff of the i386 and amd64 variants of krb5-multidev reveals
> a file conflict in /usr/bin/krb5-config(.mit).

>   -libdir=${prefix}/lib/i386-linux-gnu/mit-krb5
>   +libdir=${prefix}/lib/x86_64-linux-gnu/mit-krb5

> The -L$libdir option causes this conflict, due to the hard-coded
> /usr/lib/<triplet> path.

> On Debian, this path is not needed to link with libraries in
> /usr/lib/<triplet>. So I have attached a patch removing this
> option, but keeping -Wl,-z,relro in the output.

Removing this option will break krb5-multidev.  It will no longer be
possible to build software against MIT Kerberos with only krb5-multidev
but not libkrb5-dev installed, which is the whole point of krb5-multidev.
This is common on systems where Heimdal is the primary Kerberos library.

So I'm afraid this problem cannot be fixed this way.

I'm not sure how best to fix this other than no longer using krb5-config
and shipping a pkgconfig script or something.  One could move the
krb5-config script into an architecture-specific directory, but that just
moves the problem to a different area (how to find the right krb5-config
script to use).

-- 
Russ Allbery (r...@debian.org)               <http://www.eyrie.org/~eagle/>

Reply via email to