Bug#773094: atomix: FTBFS with ld --as-needed

Logan Rosen logan at ubuntu.com
Sun Dec 14 08:26:14 UTC 2014


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

Dear Maintainer,

In Ubuntu, we use ld --as-needed by default in the toolchain, and you 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/patches/underlinking.diff: Restore Robie Basak's patch from
    2.14.0-2ubuntu2 to build with -lm to fix an underlinking FTBFS.
  * Use dh-autoreconf so that the patch is applied.
  * Remove unnecessary -lm addition in debian/rules for LDFLAGS.

Thanks for considering the patch.

Logan Rosen

-- 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-25-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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atomix_2.14.0-5ubuntu1.debdiff
Type: text/x-diff
Size: 1922 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20141214/027cbc8e/attachment.diff>


More information about the Pkg-games-devel mailing list