File: psql-version-detect.patch

package info (click to toggle)
cyphesis-cpp 0.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,752 kB
  • sloc: cpp: 94,194; xml: 40,196; python: 8,717; sh: 4,164; makefile: 1,968; ansic: 753
file content (17 lines) | stat: -rw-r--r-- 633 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix PostgreSQL version detection
Author: Juhani Numminen <juhani.numminen@gmail.com>
Forwarded: not-needed, upstream has switched to CMake
Last-Update: 2017-12-02

--- a/m4/libpq.m4
+++ b/m4/libpq.m4
@@ -52,6 +52,9 @@
            sed 's/PostgreSQL \([[0-9]]*\).\([[0-9]]*\)\(.\([[0-9]]*\)\).*$/\2/'`
     psql_micro_version=`$PG_CONFIG $psql_config_args --version | \
            sed 's/PostgreSQL \([[0-9]]*\).\([[0-9]]*\)\(.\([[0-9]]*\)\).*$/\4/'`
+    if test "x$psql_minor_version" = "x" ; then
+      psql_minor_version=0
+    fi
     if test "x$psql_micro_version" = "x" ; then
       psql_micro_version=0
     fi