Date: Wed, 10 Oct 2001 16:29:20 +0200 (CEST) From: Christian Weisgerber <naddy@mips.inka.de> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/31197: shells/ksh93: unbreak Message-ID: <200110101429.f9AETKw26233@kemoauc.mips.inka.de>
next in thread | raw e-mail | index | archive | help
>Number: 31197 >Category: ports >Synopsis: shells/ksh93: unbreak >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Oct 10 08:40:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Christian Weisgerber >Release: FreeBSD 5.0-CURRENT alpha >Organization: >Environment: System: FreeBSD kemoauc.mips.inka.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Sep 30 20:32:19 CEST 2001 naddy@kemoauc.mips.inka.de:/home/obj/usr/src/sys/KEMOAUC alpha >Description: - Remove BROKEN. - Comment out WANT_STATIC, which is currently broken. - Fix an mbstate_t syntax error; from Mitch Tishmack <otomo@qwest.net>. - Skip unused floating point tests that prevent building on alpha. - Point out LC_NUMERIC problem in pkg-message. >How-To-Repeat: >Fix: diff -uNr /usr/ports/shells/ksh93/Makefile ksh93/Makefile --- /usr/ports/shells/ksh93/Makefile Fri Sep 28 14:03:55 2001 +++ ksh93/Makefile Wed Oct 10 16:00:27 2001 @@ -12,16 +12,15 @@ MAINTAINER= naddy@mips.inka.de -BROKEN= "does not build" RESTRICTED= "Source recipient must acknowledge license" DISTNAME= ${PORTNAME}-${VERSION} DISTFILES= INIT.${VERSION}.tgz ast-ksh.${VERSION}.tgz NO_WRKSUBDIR= yes MAKE_ARGS= CC='${CC}' CCFLAGS='${CFLAGS}' SHELL='${SH}' -.if defined(WANT_STATIC) -MAKE_ARGS+= LDFLAGS=-static -.endif +#.if defined(WANT_STATIC) # broken +#MAKE_ARGS+= LDFLAGS=-static +#.endif MAN1= ksh93.1 diff -uNr /usr/ports/shells/ksh93/files/patch-src_lib_libast_comp_wc.c ksh93/files/patch-src_lib_libast_comp_wc.c --- /usr/ports/shells/ksh93/files/patch-src_lib_libast_comp_wc.c Thu Jan 1 01:00:00 1970 +++ ksh93/files/patch-src_lib_libast_comp_wc.c Mon Oct 8 03:22:04 2001 @@ -0,0 +1,13 @@ + +$FreeBSD$ + +--- src/lib/libast/comp/wc.c.orig Mon Oct 8 03:21:02 2001 ++++ src/lib/libast/comp/wc.c Mon Oct 8 03:21:20 2001 +@@ -63,7 +63,6 @@ + wcrtomb(char* s, wchar_t c, mbstate_t* q) + { + #if _lib_wctomb +- *q = 0; + memset(q, 0, sizeof(*q)); + return wctomb(s, c); + #else diff -uNr /usr/ports/shells/ksh93/files/patch-src_lib_libast_features_float ksh93/files/patch-src_lib_libast_features_float --- /usr/ports/shells/ksh93/files/patch-src_lib_libast_features_float Thu Jan 1 01:00:00 1970 +++ ksh93/files/patch-src_lib_libast_features_float Wed Oct 10 14:12:59 2001 @@ -0,0 +1,37 @@ + +$FreeBSD$ + +--- src/lib/libast/features/float.orig Wed Oct 10 14:10:50 2001 ++++ src/lib/libast/features/float Wed Oct 10 14:12:26 2001 +@@ -125,6 +125,7 @@ + else + printf("#define UINTMAX_DIG ULONG_DIG\n"); + printf("\n"); ++ #if !defined(__alpha__) /* ksh93 doesn't use this */ + f = 1; + w = 1; + do +@@ -145,6 +146,7 @@ + } + else + printf("#define FLT_UINTMAX_MAX FLT_ULONG_MAX\n"); ++ #endif + #ifdef FLT_DIG + s = FLT_DIG; + #else +@@ -256,6 +258,7 @@ + printf("#endif\n"); + + printf("\n"); ++ #if !defined(__alpha__) /* ksh93 doesn't use this */ + d = 1.0; + w = 1; + do +@@ -276,6 +279,7 @@ + } + else + printf("#define DBL_UINTMAX_MAX DBL_ULONG_MAX\n"); ++ #endif + #ifdef DBL_DIG + s = DBL_DIG; + #else diff -uNr /usr/ports/shells/ksh93/pkg-message ksh93/pkg-message --- /usr/ports/shells/ksh93/pkg-message Tue Feb 27 02:59:25 2001 +++ ksh93/pkg-message Wed Oct 10 15:15:20 2001 @@ -16,3 +16,11 @@ (c) AT&T Corp. All rights reserved. AT&T is a registered trademark of AT&T Corp. + +------------------------------------------------------------------------ + +Known problem: Defining the LC_NUMERIC environment variable, or +any locale setting by which it is implied (LANG, LC_ALL), will cause +ksh93 to crash. LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, +and LC_TIME are safe. + >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?200110101429.f9AETKw26233>