[MacPorts] #40259: postgis2 @2.0.3_0 Won't install alongside Postgis 1.5 even in a separate PostgreSQL
#40259: postgis2 @2.0.3_0 Won't install alongside Postgis 1.5 even in a separate PostgreSQL --------------------+---------------------------------------- Reporter: jea@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: postgis postgis2 mapserver --------------------+---------------------------------------- I have a PostgreSQL 9.1. server running in production with a PostGIS 1.5 in it. I also have a PostgreSQL 9.2 server installed (but not running), with a PostGIS2 in it. However when I try to update or re-install PostGIS2 it won't do it, complaining that a conflicting port is installed {{{ sudo port install postgis2 ---> Computing dependencies for postgis2 Error: Unable to execute port: Can't install postgis2 because conflicting ports are installed: postgis sudo port installed postgis2 The following ports are currently installed: postgis2 @2.0.1_0+postgresql92+raster+topology postgis2 @2.0.3_0+postgresql92+raster+topology (active) sudo port installed postgis The following ports are currently installed: postgis @1.5.5_0+postgresql91 postgis @1.5.8_0+postgresql91 (active) }}} Somehow I managed to get both installed, I can't remember how, maybe I installed Postgis1.58 after Postgis2. But now I can't do any maintenance on the PostGIS2 port because it always complains about the installed (and running -- in production) Postgis1.5.8 port. This also relates to mapserver, and presumably other ports that want to use the postgis2 libraries. I want the mapserver port to use the Postgis2 libraries even though there is a running production postgis1.5 elsewhere on the machine (in a different postgresql installation), but macports keeps complaining that it can't do anything with postgis2 because postgis (1.5.8) is installed. -- Ticket URL: <https://trac.macports.org/ticket/40259> MacPorts <http://www.macports.org/> Ports system for OS X
#40259: postgis2 @2.0.3_0 Won't install alongside Postgis 1.5 even in a separate PostgreSQL -------------------------------+--------------------- Reporter: jea@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: postgis postgis2 | -------------------------------+--------------------- Changes (by ryandesign@…): * cc: stromnov@… (added) * owner: macports-tickets@… => vince@… * port: postgis postgis2 mapserver => postgis postgis2 Comment: The postgis2 port declares a conflict with the postgis port. The postgis port does not declare a conflict with the postgis2 port. This does not make sense. Either the ports install the same files, in which case both ports need to declare a conflict with each other, or the ports do not install the same files, in which case both ports need to not declare a conflict with each other. -- Ticket URL: <https://trac.macports.org/ticket/40259#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40259: postgis2 @2.0.3_0 Won't install alongside Postgis 1.5 even in a separate PostgreSQL -------------------------------+--------------------- Reporter: jea@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: postgis postgis2 | -------------------------------+--------------------- Comment (by jea@…): Do we need this conflict definition or not? Can't we specify that each PostgreSQL installation (9.1, 9.2, 9.3) can have a different Postgis? For example, can we specify that postgis2+postgresql91 conflicts with postgis+postgresql91, but postgis2+postgresql91 does not conflict with postgis+postgresql92 ? -- Ticket URL: <https://trac.macports.org/ticket/40259#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40259: postgis2 @2.0.3_0 Won't install alongside Postgis 1.5 even in a separate PostgreSQL -------------------------------+--------------------- Reporter: jea@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: postgis postgis2 | -------------------------------+--------------------- Comment (by ryandesign@…): Replying to [comment:2 jea@…]:
For example, can we specify that postgis2+postgresql91 conflicts with postgis+postgresql91, but postgis2+postgresql91 does not conflict with postgis+postgresql92 ?
No, there's no syntax for specifying that. -- Ticket URL: <https://trac.macports.org/ticket/40259#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40259: postgis2 @2.0.3_0 Won't install alongside Postgis 1.5 even in a separate PostgreSQL -------------------------------+--------------------- Reporter: jea@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: postgis postgis2 | -------------------------------+--------------------- Comment (by jea@…): Replying to [ticket:40259 jea@…]:
Somehow I managed to get both installed, I can't remember how, maybe I installed Postgis1.58 after Postgis2. But now I can't do any maintenance on the PostGIS2 port because it always complains about the installed (and running -- in production) Postgis1.5.8 port.
This also relates to mapserver, and presumably other ports that want to use the postgis2 libraries. I want the mapserver port to use the Postgis2 libraries even though there is a running production postgis1.5 elsewhere on the machine (in a different postgresql installation), but macports keeps complaining that it can't do anything with postgis2 because postgis (1.5.8) is installed.
I've discovered that to upgrade my postgis2 installation, I can deactivate the postgis 1.5.8, then upgrade postgis2, then activate postgis1.5.8 again. Perhaps this works because my postgis1.5.8 is installed in the postgresql9.1 while my postgis2 is installed in postgresql9.2. -- John -- Ticket URL: <https://trac.macports.org/ticket/40259#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40259: postgis2 @2.0.3_0 Won't install alongside Postgis 1.5 even in a separate PostgreSQL -------------------------------+--------------------- Reporter: jea@… | Owner: vince@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: postgis postgis2 | -------------------------------+--------------------- Comment (by vince@…): Since it is not possible to refine the conflicting mechanism using variants, there is hardly anything else I can do. Maybe the conflict resolution algorithm would need to be more graceful. I can remove the "conflicts" line in the postgis 2 port, which would solve this problem but surely give rise to some kind of mess if one tried to install postgis and postgis2 on the same postgresql version. Besides, I did not expect anyone still using postgis 1.5. Is there anything that prevents you migrating to a more modern version? -- Ticket URL: <https://trac.macports.org/ticket/40259#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts