From owner-freebsd-ports Wed Aug 29 21:10:12 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0B7DA37B408 for ; Wed, 29 Aug 2001 21:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7U4A1W72420; Wed, 29 Aug 2001 21:10:01 -0700 (PDT) (envelope-from gnats) Received: from psi.c.oka-pu.ac.jp (psi.c.oka-pu.ac.jp [163.225.213.86]) by hub.freebsd.org (Postfix) with ESMTP id AB9A937B408 for ; Wed, 29 Aug 2001 21:05:24 -0700 (PDT) (envelope-from kunishi@c.oka-pu.ac.jp) Received: from localhost (aquamarine.c.oka-pu.ac.jp [163.225.213.61]) by psi.c.oka-pu.ac.jp (Postfix) with ESMTP id 7DF303D for ; Thu, 30 Aug 2001 13:05:35 +0900 (JST) Message-Id: <20010830130451V.kunishi@aquamarine.c.oka-pu.ac.jp> Date: Thu, 30 Aug 2001 13:04:51 +0900 From: KUNISHIMA Takeo Reply-To: KUNISHIMA Takeo To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/30216: textproc/ruby-sablot build fails under the environment libwww-5.3.1 was installed Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 <Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message