[Pkg-javascript-devel] Bug#773341: libuv: link against -pthread to fix underlinking issues

Logan Rosen logan at ubuntu.com
Wed Dec 17 07:54:05 UTC 2014


Package: libuv
Version: 0.10.28-5
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu vivid ubuntu-patch

Dear Maintainer,

As you can see from the build logs for libuv (for example on amd64) [1], there are warnings from dpkg-shlibdeps such as the following:

dpkg-shlibdeps: warning: symbol pthread_rwlock_rdlock used by debian/libuv0.10/usr/lib/x86_64-linux-gnu/libuv.so.0.10 found in none of the libraries

This caused residual effects in Ubuntu, where getdns (a package that build-depends on libuv0.10-dev) failed to build due to undefined references to pthread symbols in the libuv.so.

Although this isn't causing an FTBFS in Debian, as we use different linker flags, it is probably a good idea to apply this fix here as well in case Debian switches to ld --as-needed in the future.

In Ubuntu, the attached patch was applied to achieve the following:

  * Link against -pthread to fix issue with ld --as-needed.

Thanks for considering the patch.

Logan Rosen

[1] https://buildd.debian.org/status/fetch.php?pkg=libuv&arch=amd64&ver=0.10.28-5&stamp=1411308090

-- System Information:
Debian Release: jessie/sid
  APT prefers vivid-updates
  APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 'vivid'), (100, 'vivid-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-28-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: upstart (via init_is_upstart())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libuv_0.10.28-5ubuntu1.debdiff
Type: text/x-diff
Size: 909 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20141217/8671ef22/attachment.diff>


More information about the Pkg-javascript-devel mailing list