Opened 13 months ago

Closed 4 weeks ago

#5529 closed defect (wontfix)

--without-projdir not working (Tools build still requires too much)

Reported by: robe Owned by: strk
Priority: medium Milestone: PostGIS 3.5.0
Component: build Version: master
Keywords: Cc:

Description

I was trying to do this on a system that does not have geos dev or proj dev installed.

./configure --without-pgconfig

and I can't tells me I need those.

I installed geosdevl and tried to get away without proj dev

./configure --without-pgconfig --without-projdir

and get

configure: error: the --with-projdir directory "no" cannot be found

shp2pgsql doesn't require geos or proj, so we should allow building without those if user choose —without-pgconfig

Change History (8)

comment:1 by robe, 13 months ago

Okay possible maybe nothing can be done with proj or geos since we are pulling in liblwgeom, but I shouldn't have to explicitly says —without-protobuf

I ended up with this cause all I needed was shp2pgsl

apt install automake autoconf libtool libgeos-dev libproj-dev
./configure --without-pgconfig --without-protobuf --without-raster

comment:2 by strk, 11 months ago

Status: newassigned
Summary: Tools build still requires too much--without-pgconfig not working (Tools build still requires too much)

This is similar to the —without-gui issue reported in #5541

comment:3 by strk, 11 months ago

Summary: --without-pgconfig not working (Tools build still requires too much)--without-projdir not working (Tools build still requires too much)

comment:4 by strk, 11 months ago

Milestone: PostGIS 3.4.1PostGIS 3.5.0
Version: 3.4.xmaster

comment:5 by strk, 11 months ago

The loader tool uses liblwgeom and in turn liblwgeom required libproj at the moment. Allowing a libproj-less build of liblwgeom would be required to implement this enhancement. It strikes me that conditional libproj was a thing in the remote past of PostGIS and someone wanted to remove that optionality …

comment:6 by strk, 11 months ago

WIP PR: https://git.osgeo.org/gitea/postgis/postgis/pulls/164

won't go far unless we define what to do if proj is diabled (only build what's possible to build without it ?)

comment:7 by strk, 7 weeks ago

Specifically: liblwgeom currently requires proj, for example: liblwgeom/lwspheroid.c:149: undefined reference to `geod_init'

Should those parts of liblwgeom be made unavailable when building without proj ?

comment:8 by robe, 4 weeks ago

Resolution: wontfix
Status: assignedclosed

sounds like too much trouble. Lets not bother.

Note: See TracTickets for help on using tickets.