Opened 15 years ago

Closed 15 years ago

#22613 closed defect (fixed)

postgis-1.4.0 install error - xsldir needs setting

Reported by: rbeyer (Ross Beyer) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: postgis

Description

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.

Change History (2)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Port: postgis added

comment:2 Changed 15 years ago by stromnov (Andrey Stromnov)

Resolution: fixed
Status: newclosed

fixed in r62414

Note: See TracTickets for help on using tickets.