[Bug 987502] [NEW] libxml2-dev: /usr/bin/xml2-config isn't identical across all arch

Launchpad Bug Tracker 987502 at bugs.launchpad.net
Mon Jun 25 16:12:51 UTC 2012


You have been subscribed to a public bug by Iain Lane (laney):

[Background] In the M-A implementation of version 2.7.8.dfsg-5.1ubuntu1,
/usr/bin/xml2-config still contains M-A tripples, which is troublesome
when the package libxml2-dev is marked as M-A: same. The problem is
caused by the sed call in debian/rules says "usr/lib/<tripple>", while
it wasn't like that in xml2-config script itself.

[Impact] libxml2-dev is not M-A co-installable

[Development Fix] libxml2 version 2.7.8.dfsg-9 in Debian Sid

[Stable Fix] Change required is trivial, in debian/rules:

-	sed -i -e 's,/usr/lib/$(DEB_HOST_MULTIARCH),/usr/lib,' debian/libxml2-dev/usr/bin/xml2-config
+	sed -i -e 's,/lib/$(DEB_HOST_MULTIARCH),/lib,' debian/libxml2-dev/usr/bin/xml2-config

[Test Case] Enable M-A in testing environment (amd64 for instance), and
try to install both libxml2-dev:i386 and libxml2-dev:amd64 which were
newly built with the mentioned patch. If the action failed with
something like './usr/bin/xml2-config' is different from the same file
on the system, then the bug was not fixed.

[Regression Potential] xml2-config reports the libdir is /usr/lib, while
the actual ones are /usr/lib/<triplets>. This might break applications
whose build system can't find libraries correctly in the previous path
but relies on xml2-config's output. I recommend to use pkg-config
instead of this script.

** Affects: libxml2 (Ubuntu)
     Importance: Medium
         Status: Triaged


** Tags: multiarch patch
-- 
libxml2-dev: /usr/bin/xml2-config isn't identical across all arch
https://bugs.launchpad.net/bugs/987502
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list