[geos-devel] [GEOS] #1015: Update geos-config tool for consistency

Sandro Santilli strk at kbt.io
Tue Feb 18 23:37:30 PST 2020


On Tue, Feb 18, 2020 at 09:27:12AM -0800, Paul Ramsey wrote:

> Could follow the pgsql project and just rewrite the thing (the config program) in C and be done with it…

Escaping can also be done in POSIX shell, not a big deal.
Let's just understand what we really need. For instance,
how do we want the output of `geos-config --libs` look like,
when there's a space in the path ?

      0. -L/usr/local silly/lib -lgeos-3.9.0
      1. -L/usr/local\ silly/lib -lgeos-3.9.0
      2. -L"/usr/local silly/lib" -lgeos-3.9.0
      3. -L'/usr/local silly/lib' -lgeos-3.9.0

We got 0 before the change...

With c263a0f7 I went with option 1, and restored proper output in
presence of an exec_prefix.

--strk;


More information about the geos-devel mailing list