Merge lp:~jtaylor/ubuntu/oneiric/cdpr/fix-803174 into lp:ubuntu/oneiric/cdpr

Proposed by Julian Taylor
Status: Merged
Merged at revision: 5
Proposed branch: lp:~jtaylor/ubuntu/oneiric/cdpr/fix-803174
Merge into: lp:ubuntu/oneiric/cdpr
Diff against target: 66 lines (+37/-1)
4 files modified
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/0003-fix-as-needed-build.patch (+27/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~jtaylor/ubuntu/oneiric/cdpr/fix-803174
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+72338@code.launchpad.net

Description of the change

fix ftbs

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2011-05-05 17:42:51 +0000
+++ debian/changelog 2011-08-21 14:29:28 +0000
@@ -1,3 +1,10 @@
1cdpr (2.4-1ubuntu1) oneiric; urgency=low
2
3 * debian/patches/0003-fix-as-needed-build.patch:
4 - fix build with ld --as-needed (LP: #803174)
5
6 -- Julian Taylor <jtaylor.debian@googlemail.com> Sun, 21 Aug 2011 16:25:51 +0200
7
1cdpr (2.4-1) unstable; urgency=low8cdpr (2.4-1) unstable; urgency=low
29
3 * New upstream release, closes: #57091610 * New upstream release, closes: #570916
411
=== modified file 'debian/control'
--- debian/control 2011-05-05 17:42:51 +0000
+++ debian/control 2011-08-21 14:29:28 +0000
@@ -1,5 +1,6 @@
1Source: cdpr1Source: cdpr
2Maintainer: Matt Zagrabelny <mzagrabe@d.umn.edu>2Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
3XSBC-Original-Maintainer: Matt Zagrabelny <mzagrabe@d.umn.edu>
3Section: net4Section: net
4Priority: extra5Priority: extra
5Build-Depends: debhelper (>= 8.0.0), libpcap0.8-dev (>= 1.0.0)6Build-Depends: debhelper (>= 8.0.0), libpcap0.8-dev (>= 1.0.0)
67
=== added file 'debian/patches/0003-fix-as-needed-build.patch'
--- debian/patches/0003-fix-as-needed-build.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/0003-fix-as-needed-build.patch 2011-08-21 14:29:28 +0000
@@ -0,0 +1,27 @@
1Description: fix build with ld --as-needed
2 when building with ld --as-needed libraries must be placed
3 after object files needing them on the command line so the symbols
4 of the libraries are registered as needed.
5Author: Julian Taylor <jtaylor.debian@googlemail.com>
6Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/cdpr/+bug/803174
7Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632665
8--- cdpr-2.4.orig/Makefile
9+++ cdpr-2.4/Makefile
10@@ -16,7 +16,7 @@ CFLAGS = -Wall -W -O2
11 # Build for Solaris with the pcap headers/libs one dir up
12 #CFLAGS = -DSOLARIS -Wall -I. -I../libpcap-0.7.1 -L../libpcap-0.7.1 -ggdb
13
14-LDFLAGS = -lpcap
15+LIBS = -lpcap
16
17 # Build for Solaris
18 #LDFLAGS = -lsocket -lnsl -lpcap
19@@ -33,7 +33,7 @@ conffile.o: conffile.c cdp.h cdpr.h
20 gcc -c $(CFLAGS) conffile.c
21
22 cdpr: cdpr.o cdprs.o conffile.o
23- gcc $(LDFLAGS) -o cdpr cdpr.o cdprs.o conffile.o
24+ gcc $(LDFLAGS) -o cdpr cdpr.o cdprs.o conffile.o $(LIBS)
25
26 install: all
27 mkdir -p $(DESTDIR)$(prefix)/sbin/
028
=== modified file 'debian/patches/series'
--- debian/patches/series 2011-05-05 17:42:51 +0000
+++ debian/patches/series 2011-08-21 14:29:28 +0000
@@ -1,2 +1,3 @@
10001-Spruced-up-Makefile.patch10001-Spruced-up-Makefile.patch
20002-remove-pseudo-device-all-from-list-of-interfaces.patch20002-remove-pseudo-device-all-from-list-of-interfaces.patch
30003-fix-as-needed-build.patch

Subscribers

People subscribed via source and target branches

to all changes: