[gdal-grass] 07/11: Add patch to fix 'environment' typo.

Bas Couwenberg sebastic at xs4all.nl
Sun Mar 16 08:31:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository gdal-grass.

commit 69570949261b5553244d65018da2a056be79aba3
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sun Mar 9 15:20:14 2014 +0100

    Add patch to fix 'environment' typo.
---
 debian/changelog                |  1 +
 debian/patches/environment-typo | 35 +++++++++++++++++++++++++++++++++++
 debian/patches/series           |  1 +
 3 files changed, 37 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6b311b4..12cff2c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ libgdal-grass (1.10.1-2) UNRELEASED; urgency=low
   * Update watch file, also match gdal-1.10.x.
   * Use minimal dh rules with autoreconf, enable parallel builds.
   * Add patch to support hardening buildflags.
+  * Add patch to fix 'environment' typo.
 
  -- Bas Couwenberg <sebastic at xs4all.nl>  Thu, 16 Jan 2014 00:02:08 +0100
 
diff --git a/debian/patches/environment-typo b/debian/patches/environment-typo
new file mode 100644
index 0000000..0edc936
--- /dev/null
+++ b/debian/patches/environment-typo
@@ -0,0 +1,35 @@
+Description: Fix 'enviroment' typo, replace with 'environment'
+Author: Bas Couwenberg <sebastic at xs4all.nl>
+--- a/grass57dataset.cpp
++++ b/grass57dataset.cpp
+@@ -858,7 +858,7 @@ GDALDataset *GRASSDataset::Open( GDALOpe
+         static char* gisbaseEnv = NULL;
+         const char *gisbase = GRASS_GISBASE;
+         CPLError( CE_Warning, CPLE_AppDefined, "GRASS warning: GISBASE "
+-                "enviroment variable was not set, using:\n%s", gisbase );
++                "environment variable was not set, using:\n%s", gisbase );
+         char buf[2000];
+         snprintf ( buf, sizeof(buf), "GISBASE=%s", gisbase );
+         buf[sizeof(buf)-1] = '\0';
+--- a/ogrgrassdatasource.cpp
++++ b/ogrgrassdatasource.cpp
+@@ -155,7 +155,7 @@ int OGRGRASSDataSource::Open( const char
+         static char* gisbaseEnv = NULL;
+         const char *gisbase = GRASS_GISBASE;
+         CPLError( CE_Warning, CPLE_AppDefined, "GRASS warning: GISBASE "
+-                "enviroment variable was not set, using:\n%s", gisbase );
++                "environment variable was not set, using:\n%s", gisbase );
+         char buf[2000];
+         snprintf ( buf, sizeof(buf), "GISBASE=%s", gisbase );
+         buf[sizeof(buf)-1] = '\0';
+--- a/ogrgrasslayer.cpp
++++ b/ogrgrasslayer.cpp
+@@ -276,7 +276,7 @@ bool OGRGRASSLayer::StartDbDriver()
+     if ( poDriver == NULL) 
+     {
+ 	CPLError( CE_Failure, CPLE_AppDefined, "Cannot open database %s by driver %s, "
+-		  "check if GISBASE enviroment variable is set, the driver is available "
++		  "check if GISBASE environment variable is set, the driver is available "
+ 		  " and the database is accessible.", poLink->driver, poLink->database );
+ 	return false;
+     } 
diff --git a/debian/patches/series b/debian/patches/series
index 4e2bd55..b4c4abd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 rpath
 hardening
+environment-typo

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/gdal-grass.git



More information about the Pkg-grass-devel mailing list