[postgis-devel] Small Patch(es)

strk at refractions.net strk at refractions.net
Tue Jan 11 02:18:37 PST 2005


Markus, I wouldn't add more complexity to an already complex
versioning scheme. The problem is generally knowing wether
the postgis scripts installed into your db are compatible
with the one the postgis library is intended to be coupled.
This is done by checking postgis_scripts_released() against
postgis_scripts_installed(). This operation is performed
but the postgis_full_version() wrapper. Example:

lwgeom=# select postgis_full_version();
                                     postgis_full_version                       
----------------------------------------------------------------------------------------------
 POSTGIS="1.0.0-20050111095041" USE_STATS DBPROC="0.0.1" RELPROC="0.1.0" (needs proc upgrade)
(1 row)

Of course, when playing with CVS these versions are not changed between
revisions, and this is your current problem. The good information for
you would then be RCSid of the lwpostgis.sql.in file, as builds at
different date do not change revision of the scripts file, while commits
actually do. The RCSid could be made part of postgis_scripts_*() outputs
or have their own function.

What do you think ?

--strk;


On Mon, Jan 10, 2005 at 03:11:56PM +0100, Markus Schaber wrote:
> Hi,
> 
> This is a small Patch that adds the build date to the postgis_version
> and postgis_lib_version. This is helpful when compiling cvs which always
> has the same version stamp, so you don't get lost and know which of your
> builds is actually run by postgres.
> 
> HTH,
> Markus
> 
> Index: lwgeom/Makefile
> ===================================================================
> RCS file: /home/cvs/postgis/postgis/lwgeom/Makefile,v
> retrieving revision 1.54
> diff -c -r1.54 Makefile
> *** lwgeom/Makefile     10 Jan 2005 09:27:58 -0000      1.54
> --- lwgeom/Makefile     10 Jan 2005 14:14:44 -0000
> ***************
> *** 35,45 ****
>   endif
>   
>   #---------------------------------------------------------------
> ! # Postgis version
>   #---------------------------------------------------------------
>   
> ! POSTGIS_VERSION = $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) USE_GEOS=$(USE_GEOS)
>  USE_PROJ=$(USE_PROJ) USE_STATS=$(USE_STATS)
> ! POSTGIS_LIB_VERSION = $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSI
> ON)
>   
>   #---------------------------------------------------------------
>   
> --- 35,47 ----
>   endif
>   
>   #---------------------------------------------------------------
> ! # Postgis version and build date
>   #---------------------------------------------------------------
>   
> ! BUILD_DATE := $(shell date -u "+%F-%H-%M-%S")
> ! 
> ! POSTGIS_VERSION = $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) USE_GEOS=$(USE_GEOS)
>  USE_PROJ=$(USE_PROJ) USE_STATS=$(USE_STATS) BUILD=$(BUILD_DATE)
> ! POSTGIS_LIB_VERSION = $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSI
> ON) BUILD=$(BUILD_DATE)
>   
>   #---------------------------------------------------------------
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel

-- 

For standing up against patentability of software,

  Thank You, Poland!

Read the intervention:    http://kwiki.ffii.org/ConsPolon041221En
Send your thanks:         thankyoupoland.info
Read/do more:		  http://www.noepatents.org/



More information about the postgis-devel mailing list