[geos-devel] Gitea 3.10.0dev cmake broken

Roger Bivand Roger.Bivand at nhh.no
Fri May 7 03:40:29 PDT 2021


Thanks, git apply 447.diff worked after rolling back the incomplete patch 
from current gitea. I now see:

$ geos-config --static-clibs
-L/usr/local/lib64 -lgeos_c -lgeos -lm
$ geos-config --clibs
-L/usr/local/lib64 -lgeos_c

which look healthy, and:

$ cat /usr/local/bin/geos-config
#!/bin/sh

prefix=/usr/local
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib64

...

For geos.pc:

$ cat /usr/local/lib64/pkgconfig/geos.pc
prefix=/usr/local
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib64

Name: GEOS
Description: Geometry Engine, Open Source - C API
Requires:
Version: 3.10.0dev
Cflags: -I${includedir}
Libs: -L${libdir} -lgeos_c

I see:

$ pkg-config geos --libs
-L/usr/local/lib -lgeos_c

which remains curious. For R packages using geos-config, the ./configure 
scripts pick up the directories for the shared objects:

rgeos: configure: PKG_LIBS:  -L/usr/local/lib64 -lgeos_c
sf: configure: Package LIBS: -L/usr/local/lib -lproj -lsqlite3 -ltiff 
-lcurl -lstdc++    -L/usr/local/lib -lgdal -L/usr/local/lib64 -lgeos_c

I don't have software using geos.pc, so cannot report on that.

Roger



On Fri, 7 May 2021, Mike Taves wrote:

> On Fri, 7 May 2021 at 00:19, Roger Bivand <Roger.Bivand at nhh.no> wrote:
>>
>> I ran:
>>
>> $ cat 447.diff | patch -p1 -c -b
>> patching file tools/CMakeLists.txt
>> patching file tools/geos-config.cmake
>> patching file tools/geos-config.in
>> patching file tools/geos.pc.cmake
>
> I get this too, but on inspection it didn't actually patch
> tools/CMakeLists.txt. I guess blame the -c flag?
>
> Another method to apply this is:
>
> $ git apply 447.diff
>

-- 
Roger Bivand
Emeritus Professor
Department of Economics, Norwegian School of Economics,
Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway.
e-mail: Roger.Bivand at nhh.no
https://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en


More information about the geos-devel mailing list