Postgis version 2.5.0 was released this weekend. I take this opportunity to sort the different versions (EOLed) .
As pgRouting has also been updated this weekend, I'm upgrading to a new version in this diff.
Differential D17320
update and clean postgis (postgresql) and depends ports lbartoletti on Sep 25 2018, 7:27 PM. Authored by Tags None Referenced Files
Details Postgis version 2.5.0 was released this weekend. I take this opportunity to sort the different versions (EOLed) . As pgRouting has also been updated this weekend, I'm upgrading to a new version in this diff. poudriere 11/12 i386/amd64
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes
Comment Actions If you want to add postgresql flavors, which is most certainly a bad idea, it should go in USES=pgsql. It is a bad idea because the way postgresql works in the ports tree is bad and should be changed. We should only have one postgresql-client, most probably the latest version available, and everything, including the different versions of servers should use it. The only flavors should be for ports that need the server, and in any case, it should go in USES=pgsql.
Comment Actions Thank you, @mat. Here is my need, to be able to install pgrouting versions that can take the latest version of postgis and the versions of postgresql present (95, 96, 10) directly in the pkg, without the need to compile; ok, I can make packages with poudriere but if it is directly in the official pkg it was better. Following your advice, I will propose a new one diff that removes flavors and does only the cleaning of postgis, its upgrade and the upgrade of pgrouting.
Comment Actions I don't quite understand the rationale here. According to https://postgis.net/source/, 2.3 and 2.4 are supported. Why remove them.
Comment Actions I had made a proposal to be able to have a postgis USE to select the version we want but it was never followed (except rainer ;) ). What I would like is to be able to have packages postgresql10-postgis25 postgresql95-postgis25 ... postgresql10-postgis24, postgresql95-postgis24... etc. ala debian, but I don't think this is feasible and what about maintainability? In any case, I doubt that there is a real need to maintain several versions of postgis concurrently. Rainer, what's your opinion? If you think we should leave the other ports, I will. On the other hand, all ports that must depend on postgis will depend on the latest current version.
Comment Actions [..snip..]
I would be fine with having only one PostGIS version for all PostgreSQL versions. Version 2.5 will work with all existing PostgreSQL versions except of 9.3, which is EOL now[1]. On the other hand, there are several older versions already installed. For these versions, the users have to migrate their PostGIS data to the newer version 2.5. This migration can be painful with complex data ... Another problem could be, that future versions of PostgreSQL on FreeBSD again will need two PostGIS versions, e.g. 2.5 and 3.x [1] https://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS Comment Actions
mmm... I agree with you. OK to let all versions still supported upstream. But pgrouting and (others?) will be linked by default with the latest version of PostGIS.
These are two major versions, so for me, it doesn't cause me any problems to have these two versions together.
Comment Actions Hi Loïc, Thanks for your work, really appreciated.
Comment Actions Beside the in-line comment:
Thank you for your hard work on postgis.
Comment Actions Thank you mat and sunpoet. Comment Actions LGTM. BTW, it would be great to sort USES, e.g. USES=... pgsql pkgconfig ... Thanks for your work!
Comment Actions On the contrary, I have changed this logic so that the latest version is simply called "postgis". This simplifies the updating of the ports that depend on it and you can install the latest version without worrying about the version number. The only disadvantage to this is that in case of package updates, it will be necessary to update the database with the new extension. What do you think about that @rhurlin_gwdg.de ? Comment Actions Hi Loïc, I also tend to simplifying the name of the latest postgis ports version. The problem is, as you said before, that 'automated' updates like with pkg, poudriere, portmaster etc. do not point out, that a second step like 'ALTER EXTENSION postgis* UPDATE' is necessary. It is something like updating PostgreSQL itself and doing a dump before and a restore after the update, or pg_upgrade, depending on the situation. It would be nice to have a really good message for users after the PostGIS update process is done. This is often tricky, because several databases could need this ALTER EXTENSION, accessible by different users. But this is also the case with a PostGIS port, numbered by its version (e.g. postgis25). Perhaps, something like a user tunable knob and a mechanism for automated post upgrade steps could be of interest here? Comment Actions Hi rainer, It's a good idea and I think it should be complementary to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213038 For this tour, I propose to stay on the name "postgis25" in order to merge it and we look at that in another ticket. Comment Actions Remove core, the herald rule was over broad. Personal note: I'm unconvinced the triggering text "GNU General Public License" belongs in pkg-descr. Comment Actions
This pkg-descr was here before me, I can change it, but please I would like to do it in another PR to update all Postgis ports. |