Package: gtk-led-askpass Version: 0.10-2 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu oneiric ubuntu-patch
*** /tmp/tmphYxZ60 In Ubuntu, the default configuration for the linker includes the flag --as-needed. With this flag activated this package fails to build from source. The related bug report is: https://bugs.launchpad.net/ubuntu/oneiric/+source/gtk-led-askpass/+bug/770853 The following build log snippet shows the error obtained: Excerpt 1367 lines into the build log: /build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:224: undefined reference to `gtk_widget_get_type' /build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:293: undefined reference to `g_type_check_instance_cast' /build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:293: undefined reference to `gdk_keyboard_grab' /build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:297: undefined reference to `g_usleep' /build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:307: undefined reference to `g_type_check_instance_cast' /build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:307: undefined reference to `gtk_window_set_keep_above' /build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:310: undefined reference to `g_type_check_instance_cast' /build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:310: undefined reference to `gtk_dialog_run' /build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:313: undefined reference to `gdk_keyboard_ungrab' /build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:317: undefined reference to `g_print' collect2: ld returned 1 exit status make[1]: *** [gtk-led-askpass] Error 1 make[1]: Leaving directory `/build/buildd/gtk-led-askpass-0.10' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 ****************************************************************************** Build finished at 20110423-0749 FAILED [dpkg-buildpackage died] Purging chroot-autobuild/build/buildd/gtk-led-askpass-0.10 To reproduce this bug: - prepend the flag --as-needed to the linker command, adding -Wl,--as-needed to ldflags variable in Makefile or - Build this package with the latest alpha 2 release of Ubuntu Oneiric from: http://cdimage.ubuntu.com/releases/oneiric/alpha-2/oneiric-alternate-i386.iso More info regarding linker related changes can be found in: http://lists.debian.org/debian-devel-announce/2011/02/msg00011.html To fix this issue, this patch produces the following changes: * Makefile: moved library parameters passed to ld to the end, fixing FTBFS when building with ld --as-needed flag. Thanks for considering the patch. -- System Information: Debian Release: squeeze/sid APT prefers natty-updates APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-8-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
diff -u gtk-led-askpass-0.10/debian/changelog gtk-led-askpass-0.10/debian/changelog