[112137] trunk/dports/gis/gdal/Portfile

Ryan Schmidt ryandesign at macports.org
Sun Oct 13 17:51:27 PDT 2013


Sorry for duplicate, Eric; I forgot to reply all.


On Oct 13, 2013, at 19:39, Eric Gallager <egall at gwmail.gwu.edu> wrote:

> On Sun, Oct 13, 2013 at 6:43 PM, Ryan Schmidt <ryandesign at macports.org>wrote:
> 
>> On Oct 12, 2013, at 14:09, stromnov at macports.org wrote:
>> 
>>> Revision: 112137
>>>        https://trac.macports.org/changeset/112137
>>> Author:   stromnov at macports.org
>>> Date:     2013-10-12 12:09:49 -0700 (Sat, 12 Oct 2013)
>>> Log Message:
>>> -----------
>>> gdal: add postgresql93 variant
>>> 
>>> Modified Paths:
>>> --------------
>>>  trunk/dports/gis/gdal/Portfile
>>> 
>>> Modified: trunk/dports/gis/gdal/Portfile
>>> ===================================================================
>>> --- trunk/dports/gis/gdal/Portfile    2013-10-12 16:08:01 UTC (rev
>> 112136)
>>> +++ trunk/dports/gis/gdal/Portfile    2013-10-12 19:09:49 UTC (rev
>> 112137)
>>> @@ -275,6 +275,12 @@
>>>   configure.args-append
>> --with-pg=${prefix}/lib/postgresql92/bin/pg_config
>>> }
>>> 
>>> +variant postgresql93 description {Enable PostgreSQL 9.3 support} {
>>> +    depends_lib-append      port:postgresql93
>>> +    configure.args-delete   --without-pg
>>> +    configure.args-append
>> --with-pg=${prefix}/lib/postgresql93/bin/pg_config
>>> +}
>> 
>> The postgresql variants presumably need to be marked as conflicting with
>> one another.
> 
> They've worked perfectly fine as non-conflicting up until this point…

The port may install without complaint, but I doubt it will actually use more than one version of postgresql.

Let's try it out:


$ sudo port install +postgresql84 +postgresql91 +postgresql92
--->  Computing dependencies for gdal
--->  Fetching distfiles for gdal
--->  Verifying checksums for gdal
--->  Extracting gdal
--->  Applying patches to gdal
--->  Configuring gdal
--->  Building gdal
--->  Staging gdal into destroot
--->  Installing gdal @1.10.1_0+expat+postgresql84+postgresql91+postgresql92
--->  Activating gdal @1.10.1_0+expat+postgresql84+postgresql91+postgresql92
--->  Cleaning gdal
$ port -q contents gdal | xargs otool -L | grep libpq | sort -u
	/opt/local/lib/postgresql92/libpq.5.dylib (compatibility version 5.0.0, current version 5.5.0)
$


So we see it only actually uses one version. So the variants should conflict.




More information about the macports-dev mailing list