Package: gdal / 1.10.1+dfsg-8

gdalpaths Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Install GDAL plugins in version specific subdirectory.
Author: Francesco Paolo Lovergine <frankie@debian.org>
Last-Update: 2013-07-01
--- a/gcore/gdaldrivermanager.cpp
+++ b/gcore/gdaldrivermanager.cpp
@@ -667,7 +667,7 @@ void GDALDriverManager::AutoLoadDrivers(
     #ifdef MACOSX_FRAMEWORK
                                         GDAL_PREFIX "/PlugIns");
     #else
-                                        GDAL_PREFIX "/lib/gdalplugins" );
+                                        GDAL_PREFIX "/lib/gdalplugins/1.10" );
     #endif
 #else
         char szExecPath[1024];
--- a/ogr/ogrsf_frmts/generic/ogrsfdriverregistrar.cpp
+++ b/ogr/ogrsf_frmts/generic/ogrsfdriverregistrar.cpp
@@ -807,7 +807,7 @@ void OGRSFDriverRegistrar::AutoLoadDrive
     #ifdef MACOSX_FRAMEWORK
                                         GDAL_PREFIX "/PlugIns");
     #else
-                                        GDAL_PREFIX "/lib/gdalplugins" );
+                                        GDAL_PREFIX "/lib/gdalplugins/1.10" );
     #endif
 #else
         char szExecPath[1024];
--- a/port/cpl_findfile.cpp
+++ b/port/cpl_findfile.cpp
@@ -104,7 +104,7 @@ static FindFileTLS* CPLFinderInit()
   #ifdef MACOSX_FRAMEWORK
             CPLPushFinderLocation( GDAL_PREFIX "/Resources/gdal" );
   #else
-            CPLPushFinderLocation( GDAL_PREFIX "/share/gdal" );
+            CPLPushFinderLocation( GDAL_PREFIX "/share/gdal/1.10" );
   #endif
 #else
             CPLPushFinderLocation( "/usr/local/share/gdal" );