databases/postgis21 doesn't compile without the patch in PR-186563 (which works but hasn't been committed). But even after fixing that, postgis still doesn't work: # sudo -u pgsql psql -d "my_db" -c "create extension postgis" ERROR: could not open extension control file "/usr/local/share/postgresql/extension/postgis.control": No such file or directory And indeed, that file doesn't exist: # find /usr/local -name postgis.control | wc -l 0 Why? Because the pkg-plist for postgis21 lists half of its fundamental requirements as required by the RASTER option. An except of files that require RASTER that actually are required by *any* install of postgis: %%RASTER%%share/postgresql/extension/postgis--2.1.0rc1--%%PORTVERSION%%.sql %%RASTER%%share/postgresql/extension/postgis--2.1.0rc2--%%PORTVERSION%%.sql %%RASTER%%share/postgresql/extension/postgis--2.1.0rc3--%%PORTVERSION%%.sql %%RASTER%%share/postgresql/extension/postgis--unpackaged--%%PORTVERSION%%.sql %%RASTER%%share/postgresql/extension/postgis.control In the Makefile, %%RASTER%% is changed to comment out the plist line when RASTER isn't built: .if ${PORT_OPTIONS:MRASTER} .if ${OSVERSION} < 900033 BROKEN= Raster suppport is broken on FreeBSD < 9.x .endif LIB_DEPENDS+= libgdal.so:${PORTSDIR}/graphics/gdal CONFIGURE_ARGS+= --with-raster --with-gdalconfig=${LOCALBASE}/bin/gdal-config PLIST_SUB+= RASTER="" .else CONFIGURE_ARGS+= --without-raster PLIST_SUB+= RASTER="@comment " .endif RASTER is a very large requirement that pulls in gdal which pulls in image processing dependencies (which as you can imagine usually means pulling in X11). It's not a requirement of postgis in general Fix: I imagine that the fix is to go through pkg-plist and remove %%RASTER%% where it doesn't make sense. I don't know postgis well enough to tell these apart myself How-To-Repeat: Install databases/postgis21 (this may mean applying the long-outstanding patch from PR-186563 to resolve the compile error on iconv). Then try to use it with a command like: # sudo -u pgsql psql -d "my_db" -c "create extension postgis;"
Maintainer of databases/postgis21, Please note that PR ports/189384 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/189384 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
I stand corrected on the claim that extension support doesn't require RASTER: <http://postgis.net/docs/postgis_installation.html> > The raster support is currently optional, but installed by default. For enabling using the PostgreSQL 9.1+ extensions model raster is required. Using the extension enable process is preferred and more user-friendly.
(In reply to dking from comment #3) > > The raster support is currently optional, but installed by default. For enabling using the PostgreSQL 9.1+ extensions model raster is required. Using the extension enable process is preferred and more user-friendly. In that case, RASTER should be enabled by default.
Adding maintainer back to discussion (lost in bugzilla conversion?) anyway, what does trevor say about all this?
committed
wrong state, backup
Tested today, postgis21 compiles fine even with raster disabled. If you have no objection, we can close this PR.
I haven't tested it myself, but I'll trust you that it works now. Go ahead and close it.
Testing here indicates that this no longer applies. Same from submitter.