NetBSD Problem Report #13929

Received: (qmail 17248 invoked from network); 12 Sep 2001 01:05:05 -0000
Message-Id: <E15gyTw-0003F6-00@c1731831-a.crvlls1.or.home.com>
Date: Tue, 11 Sep 2001 18:06:24 -0700
From: collver@linuxfreemail.com
Sender: ",,," <ben@c1731831-a.crvlls1.or.home.com>
Reply-To: collver@linuxfreemail.com
To: gnats-bugs@gnats.netbsd.org
Subject: libxml2 breaks xml2-config
X-Send-Pr-Version: 3.95

>Number:         13929
>Category:       pkg
>Synopsis:       libxml2 breaks xml2-config
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 12 01:06:00 +0000 2001
>Closed-Date:    Fri Sep 14 18:20:01 +0000 2001
>Last-Modified:  Fri Sep 14 18:20:01 +0000 2001
>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:

From: collver@linuxfreemail.com
To: gnats-bugs@netbsd.org
Cc:  
Subject: Re: pkg/13929
Date: Wed, 12 Sep 2001 19:56:04 -0700

 Oops, my fix was wrong.  Here is a good patch-aa  --Ben
 $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 -I${includedir}'


  XML_CFLAGS=""
  RDL_LIBS=""
State-Changed-From-To: open->feedback 
State-Changed-By: jlam 
State-Changed-When: Thu Sep 13 23:56:22 PDT 2001 
State-Changed-Why:  
I've committed changes to xml2-config so that when queried for cflags, it 
returns: 

-I/usr/pkg/include/libxml2/libxml -I/usr/pkg/include/libxml2 

so that the libxml2 headers may be found as either <...> or <libxml/...> 
as was originally intended.  Please let me know if this fixes the probem 
for your application.  Thanks! 

From: collver@linuxfreemail.com
To: jlam@netbsd.org, gnats-bugs@netbsd.org
Cc:  
Subject: Re: pkg/13929
Date: Fri, 14 Sep 2001 06:59:35 -0700

 This fixes the problem for my application, Thank you!
State-Changed-From-To: feedback->closed 
State-Changed-By: jlam 
State-Changed-When: Fri Sep 14 11:19:44 PDT 2001 
State-Changed-Why:  
PR author confirms his problem is fixed.  Thanks for the PR! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.