Merge lp:~scarneiro/ubuntu/oneiric/opendrim-lmp-powersupply/fix-for-755954 into lp:ubuntu/oneiric/opendrim-lmp-powersupply

Proposed by Sebastian Carneiro
Status: Merged
Merged at revision: 3
Proposed branch: lp:~scarneiro/ubuntu/oneiric/opendrim-lmp-powersupply/fix-for-755954
Merge into: lp:ubuntu/oneiric/opendrim-lmp-powersupply
Diff against target: 59 lines (+30/-0)
4 files modified
acinclude.m4 (+1/-0)
debian/changelog (+8/-0)
debian/patches/01-ftbfs-add-opendrim-lib.patch (+20/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~scarneiro/ubuntu/oneiric/opendrim-lmp-powersupply/fix-for-755954
Reviewer Review Type Date Requested Status
Stefano Rivera Approve
Ubuntu branches Pending
Review via email: mp+66617@code.launchpad.net

Description of the change

Added library to linker parameters of tests to fix ftbfs related to toolchain defaults change.

To post a comment you must log in.
Revision history for this message
Stefano Rivera (stefanor) wrote :
review: Needs Fixing
Revision history for this message
Martin Pitt (pitti) wrote :

Can this be handled centrally like https://code.launchpad.net/~scarneiro/ubuntu/oneiric/opendrim-lmp-boot/fix-for-755942/+merge/66544 ? Also, as this is an upstream bug, can you please forward the patch there, too?

Please set back to "needs review" when you are done.

Thanks!

Revision history for this message
Sebastian Carneiro (scarneiro) wrote :

Of course, Martin.

Reverted previous changes, and added patch to file acinclude.m4 to add the library centrally. Sent the patch upstream: https://sourceforge.net/apps/trac/opendrim/ticket/2

Revision history for this message
Stefano Rivera (stefanor) wrote :

I don't think it's worth forwarding all of these as separate patches to the same bugtracker (as long as the changes are identical). That just seems like unnecessary bureaucracy. Just listing the affected components in the bug should be sufficient.

Anyway, this branch looks good.

review: Approve
Revision history for this message
Stefano Rivera (stefanor) wrote :

Actually, the changelog entry was badly formatted. There should be 2 spaces before the bulleted list.
dch should do the right thing.

I fixed it up on upload.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'acinclude.m4'
2--- acinclude.m4 2010-06-11 15:04:00 +0000
3+++ acinclude.m4 2011-07-06 18:21:36 +0000
4@@ -261,6 +261,7 @@
5 if test -e $OPENDRIMCOMMONLIBDIR/libopendrim.so
6 then
7 AC_MSG_RESULT(yes)
8+ LIBS="${LIBS} -lopendrim"
9 else
10 AC_MSG_ERROR([[no. The OpenDRIM Common library could not be found (libopendrim.so)]])
11 fi
12
13=== modified file 'debian/changelog'
14--- debian/changelog 2010-06-11 15:04:00 +0000
15+++ debian/changelog 2011-07-06 18:21:36 +0000
16@@ -1,3 +1,11 @@
17+opendrim-lmp-powersupply (1.0.0-0ubuntu2) oneiric; urgency=low
18+
19+* debian/patches/01-ftbfs-add-openldrim-lib.patch: Added library opendrim to
20+ LIBS variable in check routine of acinclude.m4 to build with ld
21+ --no-as-needed (LP: #755954)
22+
23+ -- Sebastian Carneiro <scarneiro@fibertel.com.ar> Wed, 06 Jul 2011 15:16:34 -0300
24+
25 opendrim-lmp-powersupply (1.0.0-0ubuntu1) maverick; urgency=low
26
27 * Initial release
28
29=== added directory 'debian/patches'
30=== added file 'debian/patches/01-ftbfs-add-opendrim-lib.patch'
31--- debian/patches/01-ftbfs-add-opendrim-lib.patch 1970-01-01 00:00:00 +0000
32+++ debian/patches/01-ftbfs-add-opendrim-lib.patch 2011-07-06 18:21:36 +0000
33@@ -0,0 +1,20 @@
34+Description: To fix FTBFS because of changes in defaults for toolchain (binutils)
35+ it is necessary to include library opendrim at linking time. This patch modifies
36+ acinclude.m4 adding such library to the LIBS variable.
37+ .
38+Forwarded: http://sourceforge.net/apps/trac/opendrim/ticket/2
39+Author: Sebastian Carneiro <scarneiro@speedy.com.ar>
40+Last-Update: 2011-07-03
41+
42+Index: opendrim-lmp-powersupply/acinclude.m4
43+===================================================================
44+--- opendrim-lmp-powersupply.orig/acinclude.m4 2011-07-03 19:27:57.607093001 -0300
45++++ opendrim-lmp-powersupply/acinclude.m4 2011-07-03 19:28:54.056969358 -0300
46+@@ -261,6 +261,7 @@
47+ if test -e $OPENDRIMCOMMONLIBDIR/libopendrim.so
48+ then
49+ AC_MSG_RESULT(yes)
50++ LIBS="${LIBS} -lopendrim"
51+ else
52+ AC_MSG_ERROR([[no. The OpenDRIM Common library could not be found (libopendrim.so)]])
53+ fi
54
55=== added file 'debian/patches/series'
56--- debian/patches/series 1970-01-01 00:00:00 +0000
57+++ debian/patches/series 2011-07-06 18:21:36 +0000
58@@ -0,0 +1,1 @@
59+01-ftbfs-add-opendrim-lib.patch

Subscribers

People subscribed via source and target branches