[xml/sgml-pkgs] Bug#689168: output of xml2-config --libs not multi-arch aware

Aron Xu happyaron.xu at gmail.com
Mon Oct 1 13:30:30 UTC 2012

tags 689168 + confirmed

On Sun, Sep 30, 2012 at 1:58 AM, Peter Eisentraut <petere at debian.org> wrote:
> Package: libxml2-dev
> Version: 2.8.0+dfsg1-5
> Severity: normal
> $ xml2-config --libs
> -L/usr/lib -lxml2
> But the library is in /usr/lib/i386-linux-gnu (or similar).

Yes, this is intentional so that xml2-config can be the same across
different architecture, which is essential to make it co-installable.

> Both of these are in the default linker path, so it might ordinarily
> not make much of a difference, but it's still wrong.  I could imagine
> if you do some kind of foreign build, adding -L/usr/lib to the linker
> command line could be a problem.
> Perhaps the use of xml2-config is not tenable in a multi-arch
> environment and pkg-config is preferable, but then a note in the man
> page (or removing the binary) might be appropriate.

I'd like to prompt the use of pkg-config, but removing xml2-config
isn't an option because there are packages that rely on it. I'll
document more about it in man page. Thanks!

Aron Xu

More information about the debian-xml-sgml-pkgs mailing list