Subject: pkg/13929: libxml2 breaks xml2-config
To: None <gnats-bugs@gnats.netbsd.org>
From: None <collver@linuxfreemail.com>
List: netbsd-bugs
Date: 09/11/2001 18:06:24
>Number:         13929
>Category:       pkg
>Synopsis:       libxml2 breaks xml2-config
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 11 18:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5.1
>Organization:
>Environment:
System: NetBSD glen 1.5.1 NetBSD 1.5.1 (GLEN) #0: Tue Jul 24 15:07:21 PDT 2001 root@glen:/usr/src/sys/arch/i386/compile/GLEN i386


>Description:
	NetBSD's pkgsrc/textproc/libxml2 installs libxml2's header files to
	a different path than reported by xml2-config

>How-To-Repeat:
	fetch the current libxml2 from pkgsrc cvs, build, install

	pkg_info -f libxml2 | grep include | head
        File: include/libxml2/libxml/DOCBparser.h
        File: include/libxml2/libxml/HTMLparser.h
        File: include/libxml2/libxml/HTMLtree.h
        File: include/libxml2/libxml/SAX.h
        File: include/libxml2/libxml/catalog.h
        File: include/libxml2/libxml/debugXML.h
        File: include/libxml2/libxml/encoding.h
        File: include/libxml2/libxml/entities.h
        File: include/libxml2/libxml/hash.h
        File: include/libxml2/libxml/list.h

	xml2-config --cflags
	-I/usr/pkg/include/libxml -I/usr/pkg/include

>Fix:
	replace pkgsrc/textproc/libxml2/patches/patch-aa with the following
$NetBSD$

--- configure.orig      Wed Aug 15 05:26:09 2001
+++ configure
@@ -6152,7 +6152,7 @@
 
 
 if test "x$with_html_dir" = "x" ; then
-  HTML_DIR='$(prefix)/doc'
+  HTML_DIR='$(prefix)/share/doc'
 else
   HTML_DIR=$with_html_dir
 fi
@@ -7086,8 +7086,8 @@
 fi
 
 
-XML_LIBDIR='-L${libdir}'
-XML_INCLUDEDIR='-I${includedir}/libxml -I${includedir}'
+XML_LIBDIR='-L${libdir} -Wl,-R${libdir}'
+XML_INCLUDEDIR='-I${includedir}/libxml2/libxml -I${includedir}'
 
 XML_CFLAGS=""
 RDL_LIBS=""
>Release-Note:
>Audit-Trail:
>Unformatted: