[packages/postgis] - fix postgres 10+ detection

baggins baggins at pld-linux.org
Fri May 11 07:21:46 CEST 2018


commit 22983db12c6943fbd974749a6780101f7e4ee865
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri May 11 05:20:46 2018 +0000

    - fix postgres 10+ detection

 postgres10.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/postgres10.patch b/postgres10.patch
new file mode 100644
index 0000000..a7993db
--- /dev/null
+++ b/postgres10.patch
@@ -0,0 +1,13 @@
+--- postgis-2.2.1/configure.ac~	2016-01-04 14:41:51.000000000 +0000
++++ postgis-2.2.1/configure.ac	2018-05-11 05:13:36.828542689 +0000
+@@ -431,8 +431,8 @@
+   dnl Extract the version information from pg_config
+   dnl Note: we extract the major & minor separately, ensure they are numeric, and then combine to give
+   dnl the final version. This is to guard against user error... 
+-  PGSQL_MAJOR_VERSION=`$PG_CONFIG --version | sed 's/[[^0-9]]*\([[0-9]]\)\.\([[0-9]]\).*/\1/'`
+-  PGSQL_MINOR_VERSION=`$PG_CONFIG --version | sed 's/[[^0-9]]*\([[0-9]]\)\.\([[0-9]]\).*/\2/'`
++  PGSQL_MAJOR_VERSION=`$PG_CONFIG --version | sed 's/[[^0-9]]*\([[0-9]]\+\)\.\([[0-9]]\).*/\1/'`
++  PGSQL_MINOR_VERSION=`$PG_CONFIG --version | sed 's/[[^0-9]]*\([[0-9]]\+\)\.\([[0-9]]\).*/\2/'`
+   PGSQL_FULL_VERSION=`$PG_CONFIG --version`
+   POSTGIS_PGSQL_VERSION="$PGSQL_MAJOR_VERSION$PGSQL_MINOR_VERSION"
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/postgis.git/commitdiff/92bfba3ea8cd4ac29775cd31bfc93e10b5950682



More information about the pld-cvs-commit mailing list