Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2008 08:01:48 GMT
From:      Frank Fenor <frank@fenor.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/123163: Update port: devel/tclxml to version 3.1
Message-ID:  <200804280801.m3S81mSU077051@www.freebsd.org>
Resent-Message-ID: <200804280810.m3S8A3Ge036945@freefall.freebsd.org>

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

>Number:         123163
>Category:       ports
>Synopsis:       Update port: devel/tclxml to version 3.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 28 08:10:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Frank Fenor
>Release:        FreeBSD 7.0-PRERELEASE
>Organization:
>Environment:
FreeBSD konzentrisch.de 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #5: Tue Feb  5 00:33:58 CET 2008
>Description:
This updates devel/tclxml to version 3.1 which has been out for quite a while.

The new version requires two patches:
One is to have the configure script search Tcl's private headers in ${TCL_INCLUDEDIR} instead of ${TCL_SRC_DIR}. The explanation can be found in ports/122998.
The other one is to fix an annoyance: The upstream seems to have a wrong version number in one of the files which results in a warning message being printed every time the xml package is loaded.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -Nru tclxml/Makefile tclxml3.1/Makefile
--- tclxml/Makefile	2008-04-19 19:48:07.000000000 +0200
+++ tclxml3.1/Makefile	2008-04-28 09:46:40.000000000 +0200
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	tclxml
-PORTVERSION=	2.6
+PORTVERSION=	3.1
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	tclxml
@@ -14,14 +14,13 @@
 MAINTAINER=	dyeske@gmail.com
 COMMENT=	API for parsing XML documents using Tcl
 
-BUILD_DEPENDS=	tclsh8.4:${PORTSDIR}/lang/tcl84
-RUN_DEPENDS=	tclsh8.4:${PORTSDIR}/lang/tcl84 \
-		dtplite:${PORTSDIR}/devel/tcllib
+RUN_DEPENDS=	dtplite:${PORTSDIR}/devel/tcllib
 
+USE_TCL=	84+
 GNU_CONFIGURE=	yes
-USE_LDCONFIG=	yes
-CONFIGURE_ARGS=	--with-tcl=${LOCALBASE}/lib/tcl8.4 \
-		--with-tclinclude=${LOCALBASE}/include/tcl8.4
+USE_LDCONFIG=	${PREFIX}/lib/Tclxml${PORTVERSION}
+CONFIGURE_ARGS=	--with-tcl=${TCL_LIBDIR} \
+		--with-tclinclude=${TCL_INCLUDEDIR}
 PLIST_SUB=	VER=${PORTVERSION}
 
 .include <bsd.port.mk>
diff -Nru tclxml/distinfo tclxml3.1/distinfo
--- tclxml/distinfo	2006-01-22 09:30:07.000000000 +0100
+++ tclxml3.1/distinfo	2008-04-22 22:04:48.000000000 +0200
@@ -1,3 +1,3 @@
-MD5 (tclxml-2.6.tar.gz) = a54d1d6965e2123529e80d2a7ed251ec
-SHA256 (tclxml-2.6.tar.gz) = 50cce1212cb496fa27bb2ad8950fef726317cee762665fdfd08e352bd6a76bcd
-SIZE (tclxml-2.6.tar.gz) = 423406
+MD5 (tclxml-3.1.tar.gz) = 35de63a4ceba7a6fdb85dd1a62f2e881
+SHA256 (tclxml-3.1.tar.gz) = 9b017f29c7a06fa1a57d1658bd1d3867297c26013604bdcc4d7b0ca2333552c9
+SIZE (tclxml-3.1.tar.gz) = 489568
diff -Nru tclxml/files/patch-configure tclxml3.1/files/patch-configure
--- tclxml/files/patch-configure	1970-01-01 01:00:00.000000000 +0100
+++ tclxml3.1/files/patch-configure	2008-04-27 23:54:07.000000000 +0200
@@ -0,0 +1,15 @@
+Due to the portbuildmechanism, the original TCL_SRC_DIR is not available
+at buildtime of this port, but the private headers that we are actually
+looking for can also be found in the include directory.
+
+--- configure.orig	2005-11-04 07:26:33.000000000 +0100
++++ configure	2008-04-27 23:30:44.000000000 +0200
+@@ -3183,7 +3183,7 @@
+ 
+     TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
+ 
+-    
++    TCL_SRC_DIR=${with_tclinclude}
+ 
+ 
+     echo $ac_n "checking for Tcl private include files""... $ac_c" 1>&6
diff -Nru tclxml/files/patch-library-pkgIndex.tcl.in tclxml3.1/files/patch-library-pkgIndex.tcl.in
--- tclxml/files/patch-library-pkgIndex.tcl.in	1970-01-01 01:00:00.000000000 +0100
+++ tclxml3.1/files/patch-library-pkgIndex.tcl.in	2008-04-27 23:51:24.000000000 +0200
@@ -0,0 +1,14 @@
+No clue what went wrong here..
+This patch just avoids the warning message, it would work without it aswell.
+
+--- library/pkgIndex.tcl.in.orig	2008-04-27 23:48:07.000000000 +0200
++++ library/pkgIndex.tcl.in	2008-04-27 23:48:13.000000000 +0200
+@@ -4,7 +4,7 @@
+ 
+ package ifneeded xml::c       @VERSION@ [list load   [file join $dir @Tclxml_LIB_FILE@]]
+ package ifneeded xml::tcl     @VERSION@ [list source [file join $dir xml__tcl.tcl]]
+-package ifneeded sgmlparser   1.1       [list source [file join $dir sgmlparser.tcl]]
++package ifneeded sgmlparser   1.0       [list source [file join $dir sgmlparser.tcl]]
+ package ifneeded xpath        1.0       [list source [file join $dir xpath.tcl]]
+ package ifneeded xmldep       1.0       [list source [file join $dir xmldep.tcl]]
+ 
diff -Nru tclxml/pkg-plist tclxml3.1/pkg-plist
--- tclxml/pkg-plist	2003-05-16 04:20:32.000000000 +0200
+++ tclxml3.1/pkg-plist	2008-04-27 23:58:24.000000000 +0200
@@ -1,4 +1,5 @@
-include/tclxml.h
+include/tclxml/tclxml.h
+include/tclxml/tclxmlDecls.h
 lib/TclxmlConfig.sh
 lib/Tclxml%%VER%%/libTclxml%%VER%%.so
 lib/Tclxml%%VER%%/libTclxmlstub%%VER%%.a
@@ -13,3 +14,4 @@
 lib/Tclxml%%VER%%/xml-8.1.tcl
 lib/Tclxml%%VER%%/xpath.tcl
 @dirrm lib/Tclxml%%VER%%
+@dirrm include/tclxml


>Release-Note:
>Audit-Trail:
>Unformatted:



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