New port: postgis2 (PostGIS 2.0)
Hi everybody, I’ve committed this morning in r92462 a new port corresponding to PostGIS v 2.0 and up. This port is incompatible with postgis, that is to say PostGIS 1.x. Both install the same files at the same place. It is therefore *mandatory* before you upgrade to save your databases, uninstall postgis 1.5 first by removing it from your PostGreSQL environment (you should have a script uninstall_postgis in ${prefix}/share/postgresqlXX/contrib/postgis) and then by uninstalling the port, compile the postgis2 port, and restore your databases using the provided script. Further instructions on the PostGIS site http://postgis.refractions.net. Be careful of some side effects: the_geom is now called geom, SRID is limited to 999,999, etc. PostGIS 2 requires Geos = 3.3.2 so you must upgrade this library too. Please try and report any bug you may find. Thanks, Vincent ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: New port: postgis2 (PostGIS 2.0)
Hi Puneet, I’ve committed this morning in r92462 a new port corresponding to PostGIS v 2.0 and up. This port is incompatible with postgis, that is to say PostGIS 1.x. Both install the same files at the same place. Hmmm... That's a deal breaker for me. I don't have two machines to test it out. Since the two different versions can haooily coexist, why not make it so instead of requiring uninstalling PostGIS 1.5? Because PostGIS 2.0 won’t compile with PostGIS 1.5 installed. There are several include files that PostGIS 1.5/2.0 installs in ${prefix}/include that take precedence over the ones furnished with the distribution (because -I${prefix}/include appears before other -I… during compilation). Thus, if you have PostGIS 1.5 installed, PostGIS 2.0 will mistakenly use the already installed headers to compile and fail. Besides, I am not sure that the libraries installed by PostGIS 1.5 and PostGIS 2.0, albeit bearing the same name, have the same API. Vincent ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users