libgudev-1.0.la has broken dependency_libs (hardcoded /usr/lib)

Bug #740224 reported by James Troup
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: udev

/usr/lib/x86_64-linux-gnu/libgudev-1.0.la:dependency_libs=' /usr/lib/x86_64-linux-gnu/libudev.la /usr/lib/libgobject-2.0.la /usr/lib/libgthread-2.0.la /usr/lib/libglib-2.0.la -lrt'

The hard coded /usr/lib/ references breaks builds in a multiarch world, c.f. http://wiki.debian.org/Multiarch/Implementation, and is why we can't have nice things.

Related branches

Revision history for this message
James Troup (elmo) wrote :

The following patch fixes things for me (including the failing build of gst-plugins-good0.10 which is how I fell down this rabbit hole).

Revision history for this message
James Troup (elmo) wrote :

Ignore this patch, sorry, it obviously completely fails on anything other than amd64 - I suck.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Confirming. This breaks building NetworkManager for me.

Seems like a simple rebuild actually updates the paths, but dependency_libs should still be cleared.

James, DEB_HOST_MULTIARCH contains the current architecture to complete the path so your patch is very close:

sed -i "/dependency_libs/ s/'.*'/''/" debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgudev-1.0.la

should work as well for i386-linux-gnu.

Changed in udev (Ubuntu):
status: New → Confirmed
Steve Langasek (vorlon)
tags: added: multiarch
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package udev - 166-0ubuntu6

---------------
udev (166-0ubuntu6) natty; urgency=low

  * Fix (i.e. empty) depedency_libs in .la files per Debian Policy 10.2.
    (LP: #740224)
 -- James Troup <email address hidden> Tue, 22 Mar 2011 17:32:06 +0000

Changed in udev (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.