[MacPorts] #22613: postgis-1.4.0 install error - xsldir needs setting
MacPorts
noreply at macports.org
Thu Nov 19 13:32:25 PST 2009
#22613: postgis-1.4.0 install error - xsldir needs setting
----------------------------------+-----------------------------------------
Reporter: rbeyer@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port:
----------------------------------+-----------------------------------------
If MacPorts is installed in a non-standard location (e.g. /opt/macports/
in this case), the installation of postgis will fail with:
{{{
/opt/macports/bin/xsltproc ./xsl/postgis_aggs_mm.xml.xsl reference.xml >
postgis_aggs_mm.xml
cat postgis.xml | sed "s/@@LAST_RELEASE_VERSION@@/1.4.0/g" > postgis-
out.xml
/opt/macports/bin/xsltproc --param section.autolabel 1 --param
section.label.includes.component.label 1 --param chunk.section.depth 0
--param generate.section.toc.level 1 --param funcsynopsis.style ansi
--param admon.graphics 1 --param admon.textlabel 0 --param
simplesect.in.toc 0 --param use.id.as.filename 1 --param chunk.quietly 1
--stringparam html.stylesheet style.css \
--output html/postgis.html \
/html/docbook.xsl \
postgis-out.xml
warning: failed to load external entity "/html/docbook.xsl"
cannot parse /html/docbook.xsl
make[1]: *** [html/postgis.html] Error 4
make: *** [docs-install] Error 2
Error: Status 1 encountered during processing.
}}}
This fails because the postgis ./configure script is scanning the 'normal'
places for docbook-xsl, but since it is in the MacPorts location (which in
this case is non-standard), it cannot be found.
Adding the following to configure.args in the Portfile fixes the issue:
{{{--with-xsldir=${prefix}/share/xsl/docbook-xsl}}}
ps - Sorry for not having the time to submit a patch file.
--
Ticket URL: <http://trac.macports.org/ticket/22613>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list