Trouble installing gdal using configure.args="--with-fgdb=/path/to/FileGDB_API"

Hermann Peifer peifer at gmx.eu
Sat Aug 31 10:27:27 PDT 2013


On 2013-08-31 18:49, Ryan Schmidt wrote:
> On Aug 31, 2013, at 11:46, Hermann Peifer wrote:
>> On 2013-08-31 18:25, Ryan Schmidt wrote:
>>>
>>> It is not supported for end users to override portfile internals (like configure.args) at the command line. It is sometimes a useful diagnostic step when we're trying to figure out a problem, but it is not supposed to be an everyday activity for users. What you're doing wrong is that you're *setting* configure.args, *overriding* the dozens of configure.args the portfile already sets that make it function correctly. But there is no syntax for appending to (rather than overriding) configure.args (or any other internal portfile option) at the command line.
>>
>> Hmm. I thought about this, but I am actually not overriding anything, as far as I can see. The Portfile only defines configure.args-append and configure.args-delete, but not configure.args itself. So I thought I would be on the safe side.
>>
>> $ grep configure.args /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gis/gdal/Portfile
>> configure.args-append \
>>     configure.args-delete   --without-lzma
>>     configure.args-append   --with-lzma=${prefix}
>>>
> Command line options override any MacPorts defaults or anything the portfile sets. So the portfile appends its configure args to the (empty) configure.args variable, and then finally at the command line, you override it with your value.
>

Thanks for the hints. I didn't know. Funny enough, the installation 
seemed to work fine, after I "fixed" the missing library issue through 
symlinks.

So I better do not use configure.args on the command line. Is editing 
the Portfile a safe option? Probably not, I would assume :-(

I have a similar issue with libkml, where gdal expects version >= 1.3.0 
(never released, only available from trunk). So I would have to install 
libkml under /opt/local rather than anywhere else which would require 
the configure argument --with-libkml=/path/to/libkml

Hermann



More information about the macports-users mailing list