[postgis-tickets] [PostGIS] #5177: Can't build commandline tools only and --without-pgconfig seems broken

PostGIS trac at osgeo.org
Tue Jun 20 00:33:55 PDT 2023


#5177: Can't build commandline tools only and --without-pgconfig seems broken
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 3.4.0
 Component:  postgis  |    Version:  master
Resolution:           |   Keywords:
----------------------+---------------------------
Comment (by strk):

 There are many uses of pg_config in the current configure.ac script: to
 set WAGYU_CXX ( [f4cdc57bc7099f8ffa63f065aff3d665228c5a78/git] ), to set
 FLATGEOBUF_CXX ( [3ae2c584400b6a04c59f70b0ca28e6a63331d9e1/git] ), to set
 GDAL test compile flags ( [7d3e4f0ef0c59f0acc4e243edeed02032b7ff52d/git]
 ).

 Commit logs suggest the aim was to use the same compiler for multiple
 components, but then I don't know why different variables are then used
 for different components.

 Unconditional use of PG_CONFIG results in ./configure warnings when
 --without-pgconfig is used, and corresponding components result as being
 unbuildable. Disabling the components is a viable solution as you found,
 but the flatgeobuf support cannot currently be set to off by a configure
 switch.

 As for building commandlines, I don't see that working even in old
 branches either. I've tried as back as 3.0. We can do something for 3.4.0
 I guess.

 Passing {{{ --without-pgconfig --without-raster --disable-nls }}} to
 configure allows to explicitly build shp2pgsql from loader/ dir: {{{ make
 -C loader shp2pgsql }}} but an install target is still missing for that
 specific tool
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5177#comment:5>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list