[Debian-med-packaging] Bug#822737: praat: change linking order to fix FTBFS with ld --as-needed

vagrant loganrosen at gmail.com
Tue Apr 26 22:37:55 UTC 2016


Package: praat
Version: 6.0.15-1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu yakkety ubuntu-patch

Dear Maintainer,

In Ubuntu, we use ld --as-needed by default in the toolchain, and your
package fails to build from source with that option enabled because of the
way libraries are linked.

Even though Debian doesn't use ld --as-needed by default, it is a good idea
to make this change so that (1) we don't have to maintain a delta and (2)
you don't need to change anything in case Debian makes this default in the
future.

You can read more about this option here:
https://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

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

  * debian/rules: Change linking order for sendpraat to fix FTBFS with ld
    --as-needed.

Thanks for considering the patch.

Logan Rosen

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

Kernel: Linux 4.4.0-21-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: praat_6.0.15-1ubuntu1.debdiff
Type: text/x-diff
Size: 663 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20160426/01977d87/attachment.diff>


More information about the Debian-med-packaging mailing list