ports/97862: [ PATCH ] no UTF-8 support in libslang on FreeBSD 4.x

Dan Lukes dan at obluda.cz
Thu May 25 00:10:22 UTC 2006


>Number:         97862
>Category:       ports
>Synopsis:       [ PATCH ] no UTF-8 support in libslang on FreeBSD 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 25 00:10:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dan Lukes
>Release:        FreeBSD 4.11-RELEASE-p16 i386
>Organization:
Obludarium
>Environment:
ports/devel/libslang/Makefile,v 1.39
libslang 1.4.9

>Description:
	libslang 1.4.9 can be compiled with WITH_UTF8 but resulting library is
unusable on FreeBSD 4.x because lack of support for mbrtowc() and wcwidth() in libc

>How-To-Repeat:
	Compile libslang WITH_UTF8 then try to use it in another application. 
Unresolved symbol error occur during linkage
>Fix:

	Disable the UTF8 configuration for FreeBSD 4.x

--- Makefile.orig	Sun May 21 12:19:35 2006
+++ Makefile	Thu May 25 01:59:22 2006
@@ -17,7 +17,6 @@
 MAINTAINER=	garga at FreeBSD.org
 COMMENT=	Routines for rapid alpha-numeric terminal applications development
 
-OPTIONS=	UTF8	"Enable UTF-8 support"	off
 
 USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
@@ -36,6 +35,9 @@
 
 .include <bsd.port.pre.mk>
 
+.if ! ${OSVERSION} < 500000
+OPTIONS=	UTF8	"Enable UTF-8 support"	off
+
 .if defined(WITH_UTF8)
 PATCH_SITES+=	http://www.emaillab.org/mutt/tools/
 PATCHFILES+=	slang-1.4.8-utf8.diff.gz
@@ -43,6 +45,7 @@
 
 post-patch:
 	@${REINPLACE_CMD} 's,slang-utf8,slang,' ${WRKSRC}/src/Makefile.in
+.endif
 .endif
 
 post-install:


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



More information about the freebsd-ports-bugs mailing list