[MacPorts] #40255: mapserver: configure fails when dependencies have not yet been installed
MacPorts
noreply at macports.org
Mon Aug 26 13:35:49 PDT 2013
#40255: mapserver: configure fails when dependencies have not yet been installed
--------------------------+-----------------------
Reporter: ryandesign@… | Owner: jea@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.0
Keywords: | Port: mapserver
--------------------------+-----------------------
mapserver fails to build on the buildbots, because:
{{{
checking if PostGIS support requested... configure: error:
'/bin/pg_config' is not an executable. Make sure you use --with-
postgis=/path/to/pg_config
}}}
The mapserver portfile does a number of wrong things, such as building
itself differently depending on the version of postgresql the user has
installed:
{{{
if {[variant_isset postgis]} {
# check for most recent version of postgresql installed
set HAVE_PGCONFIG [llength [glob -nocomplain -d ${prefix}/lib
postgresql*/bin/pg_config]]
# if not found, intall the postgresql port
if {$HAVE_PGCONFIG == 0} {
depends_lib-append port:postgresql90
}
}
}}}
and assuming that dependencies have been installed before that is actually
guaranteed to be the case:
{{{
variant postgis description {Add support for postgis sources} {
set PGSQL_DIR [lindex [lsort -dec [glob -nocomplain -d ${prefix}/lib
postgresql*]] 0]
configure.args-append "--with-postgis=${PGSQL_DIR}/bin/pg_config"
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/40255>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list