[geos-devel] [GEOS] #971: @GEOS_VERSION@ not being replaced

GEOS geos-trac at osgeo.org
Wed May 22 05:55:43 PDT 2019


#971: @GEOS_VERSION@ not being replaced
----------------------+---------------------------
 Reporter:  robe      |       Owner:  geos-devel@…
     Type:  defect    |      Status:  new
 Priority:  major     |   Milestone:  3.8.0
Component:  Default   |     Version:  master
 Severity:  Critical  |  Resolution:
 Keywords:            |
----------------------+---------------------------

Comment (by robe):

 Correct strk, but it's because of GEOS that debbie's postgis builds are
 failing because PostGIS is expecting GEOS 3.6 or greater, and debbie is
 running against GEOS trunk (head) and the geos-config that got installed
 is all screwed up.  No variables got replaced.

 this is the output of geos-config that got installed:


 {{{
 #!/bin/sh

 prefix=@CMAKE_INSTALL_PREFIX@
 exec_prefix=@CMAKE_INSTALL_PREFIX@/bin
 libdir=@CMAKE_INSTALL_PREFIX@/lib

 usage()
 {
     cat <<EOF
 Usage: geos-config [OPTIONS]
 Options:
      [--prefix]
      [--version]
      [--libs]
      [--clibs]
      [--cclibs]
      [--static-clibs]
      [--static-cclibs]
      [--cflags]
      [--ldflags]
      [--includes]
      [--jtsport]
 EOF
     exit $1
 }

 if test $# -eq 0; then
   usage 1 1>&2
 fi

 while test $# -gt 0; do
 case "$1" in
     -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
     *) optarg= ;;
 esac
 case $1 in
     --prefix)
       echo @CMAKE_INSTALL_PREFIX@
       ;;
     --version)
       echo @GEOS_VERSION@
       ;;
     --cflags)
       echo -I at CMAKE_INSTALL_PREFIX@/include
       ;;
     --libs)
       echo -L at CMAKE_INSTALL_PREFIX@/lib -lgeos- at GEOS_VERSION_MAJOR@
       ;;
     --clibs)
       echo -L at CMAKE_INSTALL_PREFIX@/lib -lgeos_c
       ;;
     --cclibs)
       echo -L at CMAKE_INSTALL_PREFIX@/lib -lgeos
       ;;
     --static-clibs)
       echo -L at CMAKE_INSTALL_PREFIX@/lib -lgeos_c -lgeos -lm
       ;;
     --static-cclibs)
       echo -L at CMAKE_INSTALL_PREFIX@/lib -lgeos -lm
       ;;
     --ldflags)
       echo -L at CMAKE_INSTALL_PREFIX@/lib -lgeos
       ;;
     --includes)
       echo @CMAKE_INSTALL_PREFIX@/include
       ;;
     --jtsport)
     echo 1.13.0
       ;;
     *)
       usage 1 1>&2
       ;;
   esac
   shift
 done

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/971#comment:2>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list