diff -Nru gdal-1.9.0/debian/changelog gdal-1.9.0/debian/changelog --- gdal-1.9.0/debian/changelog 2012-06-05 13:29:19.000000000 +0100 +++ gdal-1.9.0/debian/changelog 2012-06-13 16:49:21.000000000 +0100 @@ -1,3 +1,9 @@ +gdal (1.9.0-3ubuntu1) quantal; urgency=low + + * Track changes to libpoppler25 API. + + -- Andy Whitcroft Wed, 13 Jun 2012 16:49:20 +0100 + gdal (1.9.0-3) unstable; urgency=low * Now b-depending on Ruby 1.8 explicitly. diff -Nru gdal-1.9.0/debian/control gdal-1.9.0/debian/control --- gdal-1.9.0/debian/control 2012-06-05 13:29:19.000000000 +0100 +++ gdal-1.9.0/debian/control 2012-06-13 16:52:50.000000000 +0100 @@ -1,7 +1,8 @@ Source: gdal Section: science Priority: extra -Maintainer: Debian GIS Project +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian GIS Project Uploaders: Francesco Paolo Lovergine Build-Depends: debhelper (>= 8), zlib1g-dev, libnetcdf-dev (>= 1:4.0.0), libjasper-dev, libpng-dev, libjpeg-dev, libgif-dev, diff -Nru gdal-1.9.0/debian/patches/series gdal-1.9.0/debian/patches/series --- gdal-1.9.0/debian/patches/series 2012-06-05 13:29:19.000000000 +0100 +++ gdal-1.9.0/debian/patches/series 2012-06-13 16:49:30.000000000 +0100 @@ -9,3 +9,4 @@ mrsid-plugin symver spatialite +track_libpoppler25_abi_changes diff -Nru gdal-1.9.0/debian/patches/track_libpoppler25_abi_changes gdal-1.9.0/debian/patches/track_libpoppler25_abi_changes --- gdal-1.9.0/debian/patches/track_libpoppler25_abi_changes 1970-01-01 01:00:00.000000000 +0100 +++ gdal-1.9.0/debian/patches/track_libpoppler25_abi_changes 2012-06-13 17:15:08.000000000 +0100 @@ -0,0 +1,46 @@ +Description: Track changes to libpoppler25 API + Track changes to libpoppler 25 ABI. + . + startDoc now takes a PDFDoc rather than its Xref. + setErrorFunction -> setErrorCallback. +Author: Andy Whitcroft +Last-Update: 2012-06-13 +Index: gdal-1.9.0/frmts/pdf/pdfdataset.cpp +=================================================================== +--- gdal-1.9.0.orig/frmts/pdf/pdfdataset.cpp 2012-02-20 09:48:39.000000000 +0000 ++++ gdal-1.9.0/frmts/pdf/pdfdataset.cpp 2012-06-13 17:14:21.967465186 +0100 +@@ -330,7 +330,7 @@ + SplashOutputDev *poSplashOut; + poSplashOut = new SplashOutputDev(splashModeRGB8, 4, gFalse, sColor); + PDFDoc* poDoc = poGDS->poDoc; +- poSplashOut->startDoc(poDoc->getXRef()); ++ poSplashOut->startDoc(poDoc); + double dfDPI = poGDS->dfDPI; + + /* EVIL: we modify a private member... */ +@@ -521,13 +521,14 @@ + /************************************************************************/ + + #ifdef USE_POPPLER +-static void PDFDatasetErrorFunction(int nPos, char *pszMsg, va_list args) ++static void PDFDatasetErrorCallback( void *data, ErrorCategory category, ++ int nPos, char *msg ) + { + CPLString osError; + + if (nPos >= 0) + osError.Printf("Pos = %d, ", nPos); +- osError += CPLString().vPrintf(pszMsg, args); ++ osError += CPLString().Printf("%s", msg); + + if (strcmp(osError.c_str(), "Incorrect password") == 0) + return; +@@ -570,7 +571,7 @@ + GooString* poUserPwd = NULL; + + /* Set custom error handler for poppler errors */ +- setErrorFunction(PDFDatasetErrorFunction); ++ setErrorCallback(PDFDatasetErrorCallback, NULL); + + PDFDoc* poDoc = NULL; + ObjectAutoFree oObj;