Merge lp:~allison/ubuntu/precise/gpsdrive/fix-ftbfs-mapnik into lp:ubuntu/precise/gpsdrive

Proposed by Allison Randal
Status: Merged
Merged at revision: 23
Proposed branch: lp:~allison/ubuntu/precise/gpsdrive/fix-ftbfs-mapnik
Merge into: lp:ubuntu/precise/gpsdrive
Diff against target: 165 lines (+52/-10)
8 files modified
debian/README.Debian (+8/-0)
debian/changelog (+9/-0)
debian/control (+2/-2)
debian/gpsdrive-scripts.install (+1/-1)
debian/gpsdrive.install (+1/-1)
debian/patches/00list (+1/-0)
debian/patches/107-fix-disable-mapnik.dpatch (+24/-0)
debian/rules (+6/-6)
To merge this branch: bzr merge lp:~allison/ubuntu/precise/gpsdrive/fix-ftbfs-mapnik
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+84188@code.launchpad.net

Description of the change

The package 'mapnik' was updated from version 0.7.1 in oneiric (and squeeze) to version 2.0.0 in precise (and sid/wheezy). This is a major revision of Mapnik with backward-incompatible API changes (see https://github.com/mapnik/mapnik/wiki/Mapnik2).

Mapnik is an optional library for gpsdrive, so for now I have disabled it in the package configure options and removed the dependency from the packaging. I've submitted the diff upstream to Debian. I've also submitted a bug report upstream to GPSDrive, letting them know about the API changes in Mapnik.

Note, there is a Debian bug requesting to update the gpsdrive packages to the 2.11 release, however this will not help resolve the FTBFS, because 2.11 also fails to compile with mapnik version 2.0.0.

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks! That looks fine, and also known/forwarded to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646446.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/README.Debian'
--- debian/README.Debian 2008-08-31 17:40:05 +0000
+++ debian/README.Debian 2011-12-01 23:16:27 +0000
@@ -1,6 +1,14 @@
1gpsdrive for Debian1gpsdrive for Debian
2-------------------2-------------------
33
4Using gpsdrive with mapnik 2.0
5------------------------------
6
7* Gpsdrive is incompatible with the new APIs of mapnik 2.0.0. This
8 optional library is now disabled in the package.
9
10 -- Allison Randal <allison@canonical.com> Thu, 01 Dec 2011 12:48:22 -0800
11
4Upgrading from gpsdrive 2.09 (etch)12Upgrading from gpsdrive 2.09 (etch)
5-------------------------------------13-------------------------------------
6* The mysql database schema has been changed.14* The mysql database schema has been changed.
715
=== modified file 'debian/changelog'
--- debian/changelog 2011-11-23 23:34:54 +0000
+++ debian/changelog 2011-12-01 23:16:27 +0000
@@ -1,3 +1,12 @@
1gpsdrive (2.10~pre4-6.dfsg-5ubuntu4) precise; urgency=low
2
3 * Disable optional mapnik libraries, gpsdrive is incompatible with
4 APIs of mapnik version 2.0.0.
5 * debian/patches/107-fix-disable-mapnik.dpatch:
6 Fix known bug with gpsdrive-2.10pre4 when disabling Mapnik library.
7
8 -- Allison Randal <allison@canonical.com> Thu, 01 Dec 2011 12:48:22 -0800
9
1gpsdrive (2.10~pre4-6.dfsg-5ubuntu3) precise; urgency=low10gpsdrive (2.10~pre4-6.dfsg-5ubuntu3) precise; urgency=low
211
3 * Rebuild for libmysqlclient transition12 * Rebuild for libmysqlclient transition
413
=== modified file 'debian/control'
--- debian/control 2010-07-26 06:41:40 +0000
+++ debian/control 2011-12-01 23:16:27 +0000
@@ -6,7 +6,7 @@
6Uploaders: Andreas Putzo <andreas@putzo.net>, Francesco Paolo Lovergine <frankie@debian.org>6Uploaders: Andreas Putzo <andreas@putzo.net>, Francesco Paolo Lovergine <frankie@debian.org>
7DM-Upload-Allowed: yes7DM-Upload-Allowed: yes
8Build-Depends: debhelper (>= 7), automake1.9, libtool, pkg-config, libpcre3-dev, libgtk2.0-dev,libart-2.0-dev, libxml2-dev, libmysqlclient-dev, 8Build-Depends: debhelper (>= 7), automake1.9, libtool, pkg-config, libpcre3-dev, libgtk2.0-dev,libart-2.0-dev, libxml2-dev, libmysqlclient-dev,
9 autotools-dev, dpatch, libmapnik-dev (>= 0.6), libboost-dev, libboost-filesystem-dev, libboost-serialization-dev, libdbus-glib-1-dev9 autotools-dev, dpatch, libboost-dev, libboost-filesystem-dev, libboost-serialization-dev, libdbus-glib-1-dev, libltdl-dev (>= 2.4)
10Standards-Version: 3.8.410Standards-Version: 3.8.4
11Homepage: http://gpsdrive.de11Homepage: http://gpsdrive.de
12Vcs-Svn: svn://svn.debian.org/svn/pkg-grass/packages/gpsdrive/trunk12Vcs-Svn: svn://svn.debian.org/svn/pkg-grass/packages/gpsdrive/trunk
@@ -40,7 +40,7 @@
4040
41Package: gpsdrive-scripts41Package: gpsdrive-scripts
42Architecture: all42Architecture: all
43Depends: gpsdrive, ${perl:Depends}, python, python-imaging, python-mapnik, libdbi-perl, libdbd-mysql-perl, libdate-manip-perl, libfile-slurp-perl, 43Depends: gpsdrive, ${perl:Depends}, python, python-imaging, libdbi-perl, libdbd-mysql-perl, libdate-manip-perl, libfile-slurp-perl,
44 libmime-base64-perl, libtime-local-perl, libwww-curl-perl, libwww-mechanize-perl, libxml-parser-perl, libxml-simple-perl, libxml-twig-perl, 44 libmime-base64-perl, libtime-local-perl, libwww-curl-perl, libwww-mechanize-perl, libxml-parser-perl, libxml-simple-perl, libxml-twig-perl,
45 libxml-writer-perl, perlmagick, perl-tk45 libxml-writer-perl, perlmagick, perl-tk
46Description: Various scripts for gpsdrive46Description: Various scripts for gpsdrive
4747
=== modified file 'debian/gpsdrive-scripts.install'
--- debian/gpsdrive-scripts.install 2008-03-26 18:35:38 +0000
+++ debian/gpsdrive-scripts.install 2011-12-01 23:16:27 +0000
@@ -5,7 +5,7 @@
5usr/bin/gpspoint2gpsdrive.pl5usr/bin/gpspoint2gpsdrive.pl
6usr/bin/gpsreplay6usr/bin/gpsreplay
7usr/bin/poi-manager.pl7usr/bin/poi-manager.pl
8usr/bin/gpsdrive_mapnik_gentiles.py8#usr/bin/gpsdrive_mapnik_gentiles.py
9usr/share/perl5/Geo/Filter/* usr/share/perl5/Geo/Gpsdrive/Filter9usr/share/perl5/Geo/Filter/* usr/share/perl5/Geo/Gpsdrive/Filter
10usr/share/perl5/Geo/GPX/* usr/share/perl5/Geo/Gpsdrive/GPX10usr/share/perl5/Geo/GPX/* usr/share/perl5/Geo/Gpsdrive/GPX
11usr/share/perl5/Geo/Geometry.pm usr/share/perl5/Geo/Gpsdrive11usr/share/perl5/Geo/Geometry.pm usr/share/perl5/Geo/Gpsdrive
1212
=== modified file 'debian/gpsdrive.install'
--- debian/gpsdrive.install 2008-08-31 17:40:05 +0000
+++ debian/gpsdrive.install 2011-12-01 23:16:27 +0000
@@ -2,5 +2,5 @@
2usr/bin/friendsd22usr/bin/friendsd2
3usr/share/applications/gpsdrive.desktop3usr/share/applications/gpsdrive.desktop
4usr/share/gpsdrive/map_koord.txt4usr/share/gpsdrive/map_koord.txt
5usr/share/gpsdrive/mapnik/osm.xml5#usr/share/gpsdrive/mapnik/osm.xml
6usr/share/map-icons/icons.xml usr/share/gpsdrive/map-icons/6usr/share/map-icons/icons.xml usr/share/gpsdrive/map-icons/
77
=== modified file 'debian/patches/00list'
--- debian/patches/00list 2011-07-05 12:30:16 +0000
+++ debian/patches/00list 2011-12-01 23:16:27 +0000
@@ -22,3 +22,4 @@
22104-lp-32528822104-lp-325288
23105-fix-xcursor-check.dpatch23105-fix-xcursor-check.dpatch
24106-add-boost-links.dpatch24106-add-boost-links.dpatch
25107-fix-disable-mapnik.dpatch
2526
=== added file 'debian/patches/107-fix-disable-mapnik.dpatch'
--- debian/patches/107-fix-disable-mapnik.dpatch 1970-01-01 00:00:00 +0000
+++ debian/patches/107-fix-disable-mapnik.dpatch 2011-12-01 23:16:27 +0000
@@ -0,0 +1,24 @@
1#! /bin/sh /usr/share/dpatch/dpatch-run
2## 107-disable-mapnik.dpatch by Allison Randal <allison@canonical.com>
3##
4## All lines beginning with `## DP:' are a description of the patch.
5## DP: Don't call into the mapnik library APIs when mapnik is disabled.
6
7@DPATCH@
8diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ftbfs-precise~/src/map_handler.c ftbfs-precise/src/map_handler.c
9--- ftbfs-precise~/src/map_handler.c 2011-12-01 22:24:15.000000000 +0000
10+++ ftbfs-precise/src/map_handler.c 2011-12-01 22:37:16.298094236 +0000
11@@ -660,9 +660,12 @@
12 if (maploaded)
13 gdk_pixbuf_unref (image);
14
15+#ifdef MAPNIK
16 if ( !strcmp (filename,"mapnik") ) {
17 limage = gdk_pixbuf_new_from_data(get_mapnik_imagedata(), GDK_COLORSPACE_RGB, FALSE, 8, 1280, 1024, 1280 * 3, NULL, NULL);
18- } else {
19+ } else
20+#endif // MAPNIK
21+ {
22 limage = gdk_pixbuf_new_from_file (filename, NULL);
23 if (limage == NULL)
24 {
025
=== modified file 'debian/rules'
--- debian/rules 2010-02-04 16:53:01 +0000
+++ debian/rules 2011-12-01 23:16:27 +0000
@@ -13,7 +13,7 @@
13DEB_UPSTREAM_VERSION := 2.10~pre4-6.dfsg13DEB_UPSTREAM_VERSION := 2.10~pre4-6.dfsg
14UPSTREAM_VERSION := 2.10pre414UPSTREAM_VERSION := 2.10pre4
15DESTDIR := ${CURDIR}/debian/tmp15DESTDIR := ${CURDIR}/debian/tmp
16MAPNIK_PATH = $(shell mapnik-plugin-base)16# MAPNIK_PATH = $(shell mapnik-plugin-base)
1717
18CFLAGS = -Wall -g18CFLAGS = -Wall -g
19ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))19ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -51,7 +51,7 @@
51 libtoolize -i -f51 libtoolize -i -f
52 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \52 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
53 --prefix=/usr \53 --prefix=/usr \
54 --enable-mapnik \54 --disable-mapnik \
55 --enable-dbus \55 --enable-dbus \
56 CFLAGS="$(CFLAGS)"56 CFLAGS="$(CFLAGS)"
5757
@@ -90,11 +90,11 @@
90 install-poiDATA \90 install-poiDATA \
91 install-mapsDATA \91 install-mapsDATA \
92 DESTDIR=$(DESTDIR)92 DESTDIR=$(DESTDIR)
93 install -d $(CURDIR)/debian/tmp/usr/share/gpsdrive/mapnik93 # install -d $(CURDIR)/debian/tmp/usr/share/gpsdrive/mapnik
94 install -m 644 $(CURDIR)/scripts/mapnik/osm.xml $(CURDIR)/debian/tmp/usr/share/gpsdrive/mapnik/osm.xml94 # install -m 644 $(CURDIR)/scripts/mapnik/osm.xml $(CURDIR)/debian/tmp/usr/share/gpsdrive/mapnik/osm.xml
95 install -d $(CURDIR)/debian/tmp/usr/share/map-icons95 install -d $(CURDIR)/debian/tmp/usr/share/map-icons
96 install -m 644 $(CURDIR)/data/map-icons/icons.xml $(CURDIR)/debian/tmp/usr/share/map-icons/icons.xml96 install -m 644 $(CURDIR)/data/map-icons/icons.xml $(CURDIR)/debian/tmp/usr/share/map-icons/icons.xml
97 $(MAKE) -C scripts/mapnik/ install DESTDIR=$(DESTDIR)97 # $(MAKE) -C scripts/mapnik/ install DESTDIR=$(DESTDIR)
98 $(MAKE) -C src/ install DESTDIR=$(DESTDIR)98 $(MAKE) -C src/ install DESTDIR=$(DESTDIR)
99 99
100install-indep: build-indep100install-indep: build-indep
@@ -116,7 +116,7 @@
116 # strip language extensions116 # strip language extensions
117 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/bin/convert-waypoints.pl $(CURDIR)/debian/gpsdrive-scripts/usr/bin/convert-waypoints117 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/bin/convert-waypoints.pl $(CURDIR)/debian/gpsdrive-scripts/usr/bin/convert-waypoints
118 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/bin/geoinfo.pl $(CURDIR)/debian/gpsdrive-scripts/usr/bin/geoinfo118 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/bin/geoinfo.pl $(CURDIR)/debian/gpsdrive-scripts/usr/bin/geoinfo
119 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/bin/gpsdrive_mapnik_gentiles.py $(CURDIR)/debian/gpsdrive-scripts/usr/bin/gpsdrive_mapnik_gentiles119 # mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/bin/gpsdrive_mapnik_gentiles.py $(CURDIR)/debian/gpsdrive-scripts/usr/bin/gpsdrive_mapnik_gentiles
120 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/bin/gpspoint2gpsdrive.pl $(CURDIR)/debian/gpsdrive-scripts/usr/bin/gpspoint2gpsdrive120 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/bin/gpspoint2gpsdrive.pl $(CURDIR)/debian/gpsdrive-scripts/usr/bin/gpspoint2gpsdrive
121 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/bin/poi-manager.pl $(CURDIR)/debian/gpsdrive-scripts/usr/bin/poi-manager121 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/bin/poi-manager.pl $(CURDIR)/debian/gpsdrive-scripts/usr/bin/poi-manager
122 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/share/man/man1/convert-waypoints.pl.1.gz \122 mv -f $(CURDIR)/debian/gpsdrive-scripts/usr/share/man/man1/convert-waypoints.pl.1.gz \

Subscribers

People subscribed via source and target branches