Merge lp:~jtaylor/ubuntu/oneiric/osm2pgsql/fix-803191 into lp:ubuntu/oneiric/osm2pgsql

Proposed by Julian Taylor
Status: Merged
Merged at revision: 8
Proposed branch: lp:~jtaylor/ubuntu/oneiric/osm2pgsql/fix-803191
Merge into: lp:ubuntu/oneiric/osm2pgsql
Diff against target: 94 lines (+63/-1)
4 files modified
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/02-fix-as-needed-build.patch (+53/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~jtaylor/ubuntu/oneiric/osm2pgsql/fix-803191
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+72339@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-01-19 16:15:54 +0000
+++ debian/changelog 2011-08-21 14:40:25 +0000
@@ -1,3 +1,10 @@
1osm2pgsql (0.70.5+r25090-2ubuntu1) oneiric; urgency=low
2
3 * debian/patches/02-fix-as-needed-build.patch:
4 - fix build with ld --as-needed (LP: #803191)
5
6 -- Julian Taylor <jtaylor.debian@googlemail.com> Sun, 21 Aug 2011 16:32:05 +0200
7
1osm2pgsql (0.70.5+r25090-2) unstable; urgency=low8osm2pgsql (0.70.5+r25090-2) unstable; urgency=low
29
3 * Fix Maintainer e-mail address10 * Fix Maintainer e-mail address
411
=== modified file 'debian/control'
--- debian/control 2011-01-19 16:15:54 +0000
+++ debian/control 2011-08-21 14:40:25 +0000
@@ -1,7 +1,8 @@
1Source: osm2pgsql1Source: osm2pgsql
2Section: utils2Section: utils
3Priority: optional3Priority: optional
4Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
5Uploaders:6Uploaders:
6 Andreas Putzo <andreas@putzo.net>7 Andreas Putzo <andreas@putzo.net>
7 , Francesco Paolo Lovergine <frankie@debian.org>8 , Francesco Paolo Lovergine <frankie@debian.org>
89
=== added file 'debian/patches/02-fix-as-needed-build.patch'
--- debian/patches/02-fix-as-needed-build.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/02-fix-as-needed-build.patch 2011-08-21 14:40:25 +0000
@@ -0,0 +1,53 @@
1Description: fix build with ld --as-needed
2 The zlib and bzip m4 macros wrongly use LDFLAGS to link with libraries.
3 This leads to wrong ordering on the command line.
4 With ld --as-needed the libraries must be placed after the objects
5 needing them.
6 The LIBS variable must be used to archive the correct ordering.
7Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/osm2pgsql/+bug/803191
8Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632724
9Author: Julian Taylor <jtaylor.debian@googlemail.com>
10--- osm2pgsql-0.70.5+r25090.orig/m4/ax_lib_zlib.m4
11+++ osm2pgsql-0.70.5+r25090/m4/ax_lib_zlib.m4
12@@ -117,8 +117,8 @@ AC_DEFUN([AX_LIB_ZLIB],
13 saved_CPPFLAGS="$CPPFLAGS"
14 CPPFLAGS="$CPPFLAGS -I$zlib_include_dir"
15
16- saved_LDFLAGS="$LDFLAGS"
17- LDFLAGS="$LDFLAGS $zlib_lib_flags"
18+ saved_LIBS="$LIBS"
19+ LIBS="$LIBS $zlib_lib_flags"
20
21 dnl
22 dnl Check zlib headers
23@@ -178,7 +178,7 @@ AC_DEFUN([AX_LIB_ZLIB],
24 fi
25
26 CPPFLAGS="$saved_CPPFLAGS"
27- LDFLAGS="$saved_LDFLAGS"
28+ LIBS="$saved_LIBS"
29 fi
30
31 AC_MSG_CHECKING([for zlib compression library])
32--- osm2pgsql-0.70.5+r25090.orig/m4/ax_lib_bzip2.m4
33+++ osm2pgsql-0.70.5+r25090/m4/ax_lib_bzip2.m4
34@@ -117,8 +117,8 @@ AC_DEFUN([AX_LIB_BZIP2],
35 saved_CPPFLAGS="$CPPFLAGS"
36 CPPFLAGS="$CPPFLAGS -I$bzlib_include_dir"
37
38- saved_LDFLAGS="$LDFLAGS"
39- LDFLAGS="$LDFLAGS $bzlib_lib_flags"
40+ saved_LIBS="$LIBS"
41+ LIBS="$LIBS $bzlib_lib_flags"
42
43 dnl
44 dnl Check bzip2 headers
45@@ -178,7 +178,7 @@ AC_DEFUN([AX_LIB_BZIP2],
46 fi
47
48 CPPFLAGS="$saved_CPPFLAGS"
49- LDFLAGS="$saved_LDFLAGS"
50+ LIBS="$saved_LIBS"
51 fi
52
53 AC_MSG_CHECKING([for bzip2 compression library])
054
=== modified file 'debian/patches/series'
--- debian/patches/series 2011-01-18 22:13:02 +0000
+++ debian/patches/series 2011-08-21 14:40:25 +0000
@@ -1,2 +1,3 @@
100-fix_build.patch100-fix_build.patch
201-disable_gazetteer.patch201-disable_gazetteer.patch
302-fix-as-needed-build.patch

Subscribers

People subscribed via source and target branches

to all changes: