The files/pkg-install.in script runs %%XMLCATMGR%% at the post install script. xmlcatmgr(1) is only a build-dependency: BUILD_DEPENDS= ${LOCALBASE}/bin/xmlcatmgr:${PORTSDIR}/textproc/xmlcatmgr If installed as a package, the script may not work correctly because xmlcatmgr(1) may not be available. Fix: Adding xmlcatmgr as a RUN_DEPENDS do the trick. --- docbook-xsl.patch begins here --- How-To-Repeat: If a user creates a package for docbook-xsl on a system and install this package on another system, the setup on the second system will be incmomplete if xmlcatmgr(1) is not installed there, e.g. ------------------------------------------8<--------------------------------- ===> Installing existing package /usr/ports/packages/All/docbook-xsl-1.75.2_1.tbz ./+INSTALL: /usr/local/bin/xmlcatmgr: not found ./+INSTALL: /usr/local/bin/xmlcatmgr: not found ./+INSTALL: /usr/local/bin/xmlcatmgr: not found ./+INSTALL: /usr/local/bin/xmlcatmgr: not found ./+INSTALL: /usr/local/bin/xmlcatmgr: not found ./+INSTALL: /usr/local/bin/xmlcatmgr: not found ./+INSTALL: /usr/local/bin/xmlcatmgr: not found [...] ------------------------------------------8<--------------------------------- This is basically what happen when using build systems and trying to compile textproc/xmlto after only this ports dependency using packages: ------------------------------------------8<--------------------------------- ===> Building for xmlto-0.0.24 make all-am depbase=`echo xmlif/xmlif.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -DHAVE_CONFIG_H -I. -O2 -pipe -fno-strict-aliasing -MT xmlif/xmlif.o -MD -MP -MF $depbase.Tpo -c -o xmlif/xmlif.o xmlif/xmlif.c && mv -f $depbase.Tpo $depbase.Po cc -O2 -pipe -fno-strict-aliasing -o xmlif/xmlif xmlif/xmlif.o for xml in xmlif.xml xmlto.xml; do FORMAT_DIR=./format /usr/local/bin/bash ./xmlto -o man/man1 man ./doc/$xml ; done || ( RC=$?; exit $RC ) I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" compilation error: file /tmp/xmlto-xsl.fmVk3K line 4 element import xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" compilation error: file /tmp/xmlto-xsl.RO2DwP line 4 element import xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl *** Error code 1 ------------------------------------------8<--------------------------------- Hint from docbook-xsl's post-install script: ------------------------------------------8<--------------------------------- 28 %%XMLCATMGR%% -c "${CATALOG_XSL}" add rewriteSystem \ 29 http://docbook.sourceforge.net/release/xsl/$version \ 30 "file://${XSL_DIR}" 31 %%XMLCATMGR%% -c "${CATALOG_XSL}" add rewriteURI \ 32 http://docbook.sourceforge.net/release/xsl/$version \ 33 "file://${XSL_DIR}" ------------------------------------------8<---------------------------------
Responsible Changed From-To: freebsd-ports-bugs->skv Over to maintainer (via the GNATS Auto Assign Tool)
State Changed From-To: open->closed Committed, thanks!
skv 2011-08-15 21:26:17 UTC FreeBSD ports repository Modified files: textproc/docbook-xsl Makefile distinfo pkg-plist Log: - Update to 1.76.1 - Fix RUN_DEPENDS [1] Changes: http://docbook.sourceforge.net/release/xsl/1.76.1/RELEASE-NOTES.html#V1.76.1 PR: ports/159784 [1] Submitted by: romain [1] Revision Changes Path 1.55 +4 -4 ports/textproc/docbook-xsl/Makefile 1.32 +4 -4 ports/textproc/docbook-xsl/distinfo 1.41 +34 -0 ports/textproc/docbook-xsl/pkg-plist _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"