Subject: pkg/23594: no XSLT support in textproc/php4-domxml
To: None <gnats-bugs@gnats.netbsd.org>
From: None <adam@migus.org>
List: netbsd-bugs
Date: 11/29/2003 03:34:21
>Number:         23594
>Category:       pkg
>Synopsis:       Makefile lacks arguments required to compile w/ XSLT support.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 29 08:35:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6ZF
>Organization:
>Environment:
System: NetBSD ganyopa.migus.org 1.6ZF NetBSD 1.6ZF (MIGUS.ORG.MP) #0: Thu Nov 27 13:17:56 EST 2003 amigus@ganyopa.migus.org:/obj/src/netbsd/CURRENT/src/sys/arch/i386/compile/MIGUS.ORG.MP i386
Architecture: i386
Machine: i386
>Description:
	The pkg Makefile does not contain the glue necessary to build with
	xslt and exslt support.  Adding the arguments creates a dependency
	on libxslt however a lot of packages install both as a dependency
	anyway so IMHO it's not such a big deal.
	Without this functionality a set of documented functions in the
	PHP4 manual section for domxml relating to XSLT style-sheets do not
	work.  It is noted in said documentation that support must be
	compiled in.
	The attached patch changes the Makefile to build with XSLT and EXSLT
	support.  Note that the order in which the arguments are given does
	seem to matter.


>How-To-Repeat:
	Install textproc/php4-domxml and attempt to call an XSLT related
	PHP4/domxml function such as domxml_xslt_stylesheet_file().
>Fix:
	Apply the following patch:
--- textproc/php4-domxml/Makefile.orig	2003-11-08 01:58:10.000000000 -0500
+++ textproc/php4-domxml/Makefile	2003-11-29 03:06:54.000000000 -0500
@@ -12,9 +12,13 @@
 CONFIGURE_ARGS+=	--enable-${MODNAME}=shared,${BUILDLINK_PREFIX.libxml2}
 CONFIGURE_ARGS+=	--with-dom=shared,${BUILDLINK_PREFIX.libxml2}
 CONFIGURE_ARGS+=	--with-zlib-dir=${BUILDLINK_PREFIX.zlib}
+CONFIGURE_ARGS+=	--with-dom-xslt=${BUILDLINK_PREFIX.libxslt}
+CONFIGURE_ARGS+=	--with-dom-exslt=${BUILDLINK_PREFIX.libxslt}
 
 .include "../../devel/zlib/buildlink2.mk"
 # remove the BUILDLINK_DEPENDS on next libxml2 package buildlink update
 BUILDLINK_DEPENDS.libxml2=	libxml2>=2.5.10nb1
+BUILDLINK_DEPENDS.libxslt=	libxslt>=1.0.18
 .include "../../textproc/libxml2/buildlink2.mk"
+.include "../../textproc/libxslt/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: