[postgis-devel] Installation Paths

alex bodnaru alexbodn at 012.net.il
Mon Dec 19 18:53:20 PST 2005


hi strk,

looks great.

two small objections:

since postgis docdir contains heavy postgis.html, and doc/Makefile
appends postgis directory, it should be fair to have postgis
documentation in a top documentation directory, not under postgresql
one, especially for the case there are multiple postgresql.
thus, if pg_config --configure gets a --docdir like
/usr/share/doc/postgresql, i would suggest stripping postgresql through
`dirname ${docdir}`.

datadir should better be where the specific postgresql is holding it's
scripts, and it usualy contains a ./contrib subdir.
the hard-wired path in my file, /usr/share/postgresql, is default for
older debian distributions, which have only one postgresql.
modern debian have a directory for any version under this, and this is
being returned by pg_config.
thus, i would append only /contrib, not /postgresql/contrib to pg_config
--configure returned datadir.

regards,

alex

strk at refractions.net wrote:
> Alright, I've given configure.in a cleanup.
> Behaviour should be the same as before:
> 
> 	case NO_FLAGS:
> 		paths follow postgresql ones (with older postgis
> 		subpaths)
> 
> 	case --prefix:
> 		paths follow GNU coding standards
> 
> 	case any_override:
> 		overrides the specific path, valid overrides are:
> 		--with-docdir=path (README.postgis, postgis.html)
> 		--libdir=path (liblwgeom.so)
> 		--bindir=path (loader/dumper)
> 		--mandir=path (loader/dumper man pages)
> 		--datadir=path (.sql scripts)
> 
> Alex, can you check this works for you ?
> 
> Other hackers' comments higly welcome. 
> 	
> --strk;
> 
> On Mon, Dec 19, 2005 at 01:17:23PM +0100, strk at refractions.net wrote:
> 
>>On Mon, Dec 19, 2005 at 11:11:33AM +0100, strk at refractions.net wrote:
>>...
>>
>>>As a general mean to support parallel installation I think we should
>>>use completely custom paths, in a standard way. 
>>
>>I'm still convinced we should switch to this behaviour.
>>It will allow parallel installation of even MICRO releases,
>>as you could have:
>>	--prefix=/usr/local/postgis-1.1.0 
>>	--prefix=/usr/local/postgis-1.1.1
>>
>>You'll have standard switches to fine-tune paths:
>>
>>	--bindir (loader/dumper)
>>	--datadir (lwpostgis.sql, lwpostgis_upgrade.sql, spatial_ref_sys.sql)
>>	--mandir (loader/dumper manual pages)
>>	--libdir (liblwgeom.so)
>>
>>And non-standard (but common) switch for docs:
>>
>>	--with-docdir (README.postgis, postgis.html)
>>
>>What do you think ?
>>
>>--strk;
>>_______________________________________________
>>postgis-devel mailing list
>>postgis-devel at postgis.refractions.net
>>http://postgis.refractions.net/mailman/listinfo/postgis-devel
> 
> 



More information about the postgis-devel mailing list