--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: cwirc: FTBFS with ld --as-needed
- From: Angel Abad <angelabad@ubuntu.com>
- Date: Sat, 20 Aug 2011 14:03:46 +0200
- Message-id: <20110820120346.28708.43546.reportbug@marvin>
Package: cwirc
Version: 2.0.0-4
Severity: normal
Tags: patch
User: debian-gcc@lists.debian.org
Usertags: ld-as-needed
*** /tmp/tmpK3fzut
In Ubuntu, the attached patch was applied to achieve the following:
Hi! Cwirc fails to build from source with binutils-gold and
ld --as-needed. This patch solves the problem.
Regards,
* debian/patches/fix-ftbfs-with-ld-as-needed: (LP: #770951)
- Reorder libraries to fix FTBFS with ld --as-needed, thanks
John Nogatch
Thanks for considering the patch.
-- System Information:
Debian Release: wheezy/sid
APT prefers oneiric-updates
APT policy: (500, 'oneiric-updates'), (500, 'oneiric')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-8-generic (SMP w/1 CPU core)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru cwirc-2.0.0/debian/patches/fix-ftbfs-with-ld-as-needed cwirc-2.0.0/debian/patches/fix-ftbfs-with-ld-as-needed
--- cwirc-2.0.0/debian/patches/fix-ftbfs-with-ld-as-needed 1970-01-01 01:00:00.000000000 +0100
+++ cwirc-2.0.0/debian/patches/fix-ftbfs-with-ld-as-needed 2011-08-20 13:58:24.000000000 +0200
@@ -0,0 +1,21 @@
+Description: reorder LDFLAGS and GTK_LDFLAGS later in compile commands
+Author: John T. Nogatch <jnogatch@yahoo.com>
+Reviewed-by: Angel Abad <angelabad@ubuntu.com>
+Bug-Ubuntu: https://launchpad.net/bugs/770951
+
+--- a/Makefile
++++ b/Makefile
+@@ -102,11 +102,11 @@
+ extension.o
+
+ $(PLUGIN): $(PLUGIN_OBJS)
+- $(CC) -shared $(LDFLAGS) -o $@ $(PLUGIN_OBJS)
++ $(CC) -shared -o $@ $(PLUGIN_OBJS) $(LDFLAGS)
+ $(STRIP) $@
+
+ $(FRONTEND): $(FRONTEND_OBJS)
+- $(CC) $(LDFLAGS) $(GTK_LDFLAGS) -o $@ $(FRONTEND_OBJS)
++ $(CC) -o $@ $(FRONTEND_OBJS) $(GTK_LDFLAGS) $(LDFLAGS)
+ $(STRIP) $@
+
+ plugin.shared.o: plugin.c \
diff -Nru cwirc-2.0.0/debian/patches/series cwirc-2.0.0/debian/patches/series
--- cwirc-2.0.0/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ cwirc-2.0.0/debian/patches/series 2011-08-20 13:51:26.000000000 +0200
@@ -0,0 +1 @@
+fix-ftbfs-with-ld-as-needed
--- End Message ---
--- Begin Message ---
Source: cwirc
Source-Version: 2.0.0-5
We believe that the bug you reported is fixed in the latest version of
cwirc, which is due to be installed in the Debian FTP archive:
cwirc_2.0.0-5.debian.tar.gz
to main/c/cwirc/cwirc_2.0.0-5.debian.tar.gz
cwirc_2.0.0-5.dsc
to main/c/cwirc/cwirc_2.0.0-5.dsc
cwirc_2.0.0-5_amd64.deb
to main/c/cwirc/cwirc_2.0.0-5_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 638633@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Leo Iannacone <l3on@ubuntu.com> (supplier of updated cwirc package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Wed, 14 Dec 2011 15:10:35 +0100
Source: cwirc
Binary: cwirc
Architecture: source amd64
Version: 2.0.0-5
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Leo Iannacone <l3on@ubuntu.com>
Description:
cwirc - X-Chat morse plugin
Closes: 638633
Changes:
cwirc (2.0.0-5) unstable; urgency=low
.
* QA upload
- Bump Standard-Version to 3.9.2
* Patch 0000-fix-ftbfs-with-ld-as-needed.patch
- Reorder libraries to fix FTBFS with ld --as-needed, thanks
John Nogatch (Closes: 638633)
Checksums-Sha1:
626b3217aa124084627da35cb982caeb636749bb 1730 cwirc_2.0.0-5.dsc
26cd645d33d2ae66d64d16c5c559e2f114ab0185 9215 cwirc_2.0.0-5.debian.tar.gz
ba716316b8d855d5e61ba62484f67ab0d981a0f5 168400 cwirc_2.0.0-5_amd64.deb
Checksums-Sha256:
4c02a90c99b3ff5a3d92dec4c7e834d2273087cac1f1ee576daa091538a53316 1730 cwirc_2.0.0-5.dsc
e3c9696080b38eab9fa4964524820b2ac0debff526374a83018bdc0219adf52c 9215 cwirc_2.0.0-5.debian.tar.gz
f6bd40e5f49d006000236d2ef566fb47d24b1a20d5fd0377fb5133b428173c3a 168400 cwirc_2.0.0-5_amd64.deb
Files:
3dcc17d49a86929a0fa90937ef24530e 1730 hamradio optional cwirc_2.0.0-5.dsc
b61255fc42a1dfeb993d90649ed0892d 9215 hamradio optional cwirc_2.0.0-5.debian.tar.gz
eeb46ca12ad1c2c685df799afda9cdcc 168400 hamradio optional cwirc_2.0.0-5_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIcBAEBCAAGBQJO6l1CAAoJEEkIatPr4vMfzTkP/16S1Q/7QHfIQ/50VlGW8h7X
tFQT3OaN2d1EBwNpCD9cHEoHuOadUOmTXPZhysJ5C5fYRANmkDVcShu0HvIWfYtB
k5sTvEMmwv1as3CPGYezT1Bd7QF47WboW5k4AIavrbpeIC9NjdWx1xsEdUp1oyvH
NaFmUtsrx/GDUn6tOU5yJJRaaTZGcj4M38ey58F5tlb/2u/eNff9ajrnJwDLRtDZ
QpRFkcKPF8/uZgyoMSdv67WvBTXNsd4xUN3g2NdDlnoRTDXq1wxqFju89wVFFEQw
kKtpVcfmwhSvDkKU2lLQiYUORkZA2/tG74Oyf+GD9qXDnWnvsstj9cW7cFDRhJFZ
SC+QCjafaUfqT5BoUZ3PjPwB0rwf61dy0H2Ya96PZGmTXPMSStQXDW1c7rpuvbvC
DKWFFzJ8h1BYtgYlA4xwoYRRa1P8DoGGBb5aTQ8kBYWpb71Ni+HaSzecn85GVphr
3VhS/ZaMBT33TCKW1RqErqlUSuH0DdeG6TpIJy2ym9LgWRx4cj+O7loMKJWRXjNE
XUddtUaa5KVCZE8qWrHWI3Qtd3QxqcdGBd0mzOXRG024Gg8MJLhtfbsVso/v96cu
zduSNN9NiE/Ehp7m1lF5AUfVg7tmUSed5Hf4gPJxAN9NIs/c9pANpFwJCM2PKQXk
jH2LAuThDrZ4A75AJ4OS
=jl5A
-----END PGP SIGNATURE-----
--- End Message ---