Date: Mon, 30 Dec 2002 17:58:54 +0000 (UTC) From: "Bjoern A.Zeeb" <bzeeb+freebsdports@zabbadoz.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: bzeeb+freebsdports@zabbadoz.net Subject: ports/46636: Fix building on alpha,sparc64 for textproc/xerces-c2 Message-ID: <20021230175854.A945C15340@mail.int.zabbadoz.net>
next in thread | raw e-mail | index | archive | help
>Number: 46636 >Category: ports >Synopsis: Fix building on alpha,sparc64 for textproc/xerces-c2 >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Dec 30 10:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Bjoern A. Zeeb >Release: FreeBSD 4.7-STABLE i386 >Organization: Zabbadoz.NeT >Environment: System: FreeBSD e0-0.zab2.int.zabbadoz.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Dec 27 22:08:07 UTC 2002 bz@e0-0.zab2.int.zabbadoz.net:/export/src/src/obj/export/src/src/RELENG_4/src/sys/ZAB2-2002122701 i386 >Description: Port did not build on alpha and sparc64 >How-To-Repeat: >Fix: attached patch should fix building on sparc64 and alpha. thanks to Mikko Työläjärvi for fixing and testing on sparc64. New files: textproc/xerces-c2/Makefile.alpha textproc/xerces-c2/Makefile.sparc64 textproc/xerces-c2/files/patch-aa diff -urN textproc/xerces-c2.orig/Makefile textproc/xerces-c2/Makefile --- textproc/xerces-c2.orig/Makefile Fri Nov 15 17:00:34 2002 +++ textproc/xerces-c2/Makefile Mon Dec 30 17:26:43 2002 @@ -55,10 +55,12 @@ GNU_CONFIGURE= yes CONFIGURE_ENV+= XERCESCROOT=${WRKSRC} TRANSCODER=${TRANSCODER} CONFIGURE_SCRIPT= runConfigure -CONFIGURE_ARGS?= -p freebsd -c ${CC} -x ${CXX} -n socket -P ${PREFIX} +CONFIGURE_ARGS+= -p freebsd -c ${CC} -x ${CXX} -n socket -P ${PREFIX} CONFIGURE_ARGS+= -t ${TRANSCODER} +.include <bsd.port.pre.mk> + .if defined(NO_THREADS) CONFIGURE_ARGS+= -r none .endif @@ -73,7 +75,7 @@ ALL_TARGET?= all samples XERCES_BINS?= CreateDOMDocument DOMCount DOMPrint EnumVal MemParse PParse \ Redirect SAX2Count SAX2Print SAXCount SAXPrint SEnumVal StdInParse -SAMPLES_CONFIG_ARGS?= -p freebsd -x g++ +SAMPLES_CONFIG_ARGS+= -p freebsd -c ${CC} -x ${CXX} .if defined(NO_THREADS) SAMPLES_CONFIG_ARGS+= -r none .endif @@ -143,4 +145,4 @@ .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff -urN textproc/xerces-c2.orig/Makefile.alpha textproc/xerces-c2/Makefile.alpha --- textproc/xerces-c2.orig/Makefile.alpha Thu Jan 1 00:00:00 1970 +++ textproc/xerces-c2/Makefile.alpha Mon Dec 30 17:26:28 2002 @@ -0,0 +1,10 @@ +# Date created: 29 December 2002 +# Whom: "Bjoern A. Zeeb" (bzeeb+freebsdports@zabbadoz.net) +# +# $FreeBSD$ +# + +# set bitsToBuild to 64 +CONFIGURE_ARGS+= -b 64 +SAMPLES_CONFIG_ARGS+= -b 64 + diff -urN textproc/xerces-c2.orig/Makefile.sparc64 textproc/xerces-c2/Makefile.sparc64 --- textproc/xerces-c2.orig/Makefile.sparc64 Thu Jan 1 00:00:00 1970 +++ textproc/xerces-c2/Makefile.sparc64 Mon Dec 30 17:26:33 2002 @@ -0,0 +1,14 @@ +# Date created: 26 December 2002 +# Whom: "Bjoern A. Zeeb" (bzeeb+freebsdports@zabbadoz.net) +# +# $FreeBSD$ +# + +# When there are no probs with libc_r / pthreads on sparc64-freebsd we +# should remove this files or make it conditional on OSVERSION +NO_THREADS= yes + +# set bitsToBuild to 64 +CONFIGURE_ARGS+= -b 64 +SAMPLES_CONFIG_ARGS+= -b 64 + diff -urN textproc/xerces-c2.orig/files/patch-aa textproc/xerces-c2/files/patch-aa --- textproc/xerces-c2.orig/files/patch-aa Thu Jan 1 00:00:00 1970 +++ textproc/xerces-c2/files/patch-aa Fri Dec 27 21:06:44 2002 @@ -0,0 +1,12 @@ +--- ./src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp.orig Fri Dec 27 21:04:38 2002 ++++ ./src/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.cpp Fri Dec 27 21:06:26 2002 +@@ -1091,7 +1091,8 @@ + // perform conversion + wLent *= uChSize(); + char *ptr = retVal; +- size_t rc = iconvTo(wideCharBuf, &wLent, &ptr, neededLen); ++ size_t tmpwLent = wLent; ++ size_t rc = iconvTo(wideCharBuf, &tmpwLent, &ptr, neededLen); + if (rc == (size_t)-1) { + if (wBufPtr) + delete [] wBufPtr; >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?20021230175854.A945C15340>