Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2001 13:04:51 +0900
From:      KUNISHIMA Takeo <kunishi@acm.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/30216: textproc/ruby-sablot build fails under the environment libwww-5.3.1 was installed
Message-ID:  <20010830130451V.kunishi@aquamarine.c.oka-pu.ac.jp>

next in thread | raw e-mail | index | archive | help

>Number:         30216
>Category:       ports
>Synopsis:       textproc/ruby-sablot build fails under the environment libwww-5.3.1 was installed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 29 21:10:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     KUNISHIMA Takeo
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Okayama Prefectural University, Japan
>Environment:

	4.3-STABLE

>Description:
	textproc/ruby-sablot build was failed under the environment where
	libwww-5.3.1 (www/libwww) was installed.

	extconf.rb (in ruby-sablot 0.5.0 tarball) checks XmlParseXmlDecl()
	and XML_ParserCreate() to find Expat library.  As those functions are
	also included in W3C libwww library (which includes Expat), extconf.rb
	first checks libxmltok and libxmlparse, which are included in libwww,
	and then checks libexpat.  libwww 5.3.1 lacks some functions necessary
	for expat2 check test, and fails to create Makefile.

>How-To-Repeat:
	install the latest www/libwww (5.3.1), then build textproc/ruby-sablot.

>Fix:
	I think the simplest solution is to change the order of library 
	checking.

	Another solution is to use W3C libwww instead of expat2 and to upgrade
	www/libwww to the latest (5.3.2).  However this is not the good 
	choice, as Expat library in W3C libwww is older than textproc/expat2.

diff -ruN -x CVS /usr/ports/textproc/ruby-sablot/files/patch-aa ruby-sablot/files/patch-aa
--- /usr/ports/textproc/ruby-sablot/files/patch-aa	Thu Jan  1 09:00:00 1970
+++ ruby-sablot/files/patch-aa	Thu Aug 30 12:39:52 2001
@@ -0,0 +1,17 @@
+--- extconf.rb.orig	Sun Jun 24 07:01:40 2001
++++ extconf.rb	Thu Aug 30 12:39:31 2001
+@@ -15,10 +15,10 @@
+ end
+ 
+ if have_header("sablot.h") and
+-    (have_library("xmltok", "XmlParseXmlDecl") or
+-     have_library("expat",  "XmlParseXmlDecl")) and
+-    (have_library("xmlparse", "XML_ParserCreate") or
+-     have_library("expat",    "XML_ParserCreate")) and
++    (have_library("expat", "XmlParseXmlDecl") or
++     have_library("xmltok",  "XmlParseXmlDecl")) and
++    (have_library("expat", "XML_ParserCreate") or
++     have_library("xmlparse",    "XML_ParserCreate")) and
+     have_library("sablot", "SablotProcessStrings")
+   create_makefile("sablot")
+   STDERR.print <<EOB
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010830130451V.kunishi>