From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 22 00:20:22 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED95516A47F for ; Thu, 22 Jun 2006 00:20:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 584FF43D48 for ; Thu, 22 Jun 2006 00:20:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k5M0KLWR012695 for ; Thu, 22 Jun 2006 00:20:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k5M0KLDn012694; Thu, 22 Jun 2006 00:20:21 GMT (envelope-from gnats) Resent-Date: Thu, 22 Jun 2006 00:20:21 GMT Resent-Message-Id: <200606220020.k5M0KLDn012694@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tim Smith Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3141916A474 for ; Thu, 22 Jun 2006 00:13:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D72A343D4C for ; Thu, 22 Jun 2006 00:13:11 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k5M0DBVi060328 for ; Thu, 22 Jun 2006 00:13:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k5M0DBIY060327; Thu, 22 Jun 2006 00:13:11 GMT (envelope-from nobody) Message-Id: <200606220013.k5M0DBIY060327@www.freebsd.org> Date: Thu, 22 Jun 2006 00:13:11 GMT From: Tim Smith To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/99285: mutt-devel port WITH_NCURSES_PORT doesn't use ncurses port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 00:20:22 -0000 >Number: 99285 >Category: ports >Synopsis: mutt-devel port WITH_NCURSES_PORT doesn't use ncurses port >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 22 00:20:20 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Tim Smith >Release: RELENG_6 >Organization: >Environment: FreeBSD siva.hindu.god 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun Jun 18 13:23:52 MDT 2006 root@siva.hindu.god:/usr/obj/usr/src/sys/GENERIC i386 >Description: It's useful to compile mutt with the ncurses port, to get proper support for wide characters (UTF-8 in particular). The mail/mutt port does this correctly; the mail/mutt-devel port does not. >How-To-Repeat: Add this to /etc/make.conf: .if ${.CURDIR:M*/mail/mutt-devel*} WITH_MUTT_NCURSES_PORT=YES .endif Then: cd /usr/ports/mail/mutt-devel make Notice the configure output: checking for waddnwstr in -lncurses... no checking for waddnwstr in -lncursesw... no And 'ldd mutt' shows: libncurses.so.6 => /lib/libncurses.so.6 (0x28102000) Finally, to test, run mutt with LC_ALL=en_US.UTF-8 (or similar), and examine the results. Multi-byte chars won't display correctly, and formatting will be wrong. After the patch (see "Fix" section): checking for waddnwstr in -lncurses... no checking for waddnwstr in -lncursesw... yes And: libncursesw.so => /usr/local/lib/libncursesw.so (0x280f9000) The final proof is that running mutt displays all characters correctly, with no formating problems. >Fix: --- Makefile.orig Wed Jun 21 17:32:48 2006 +++ Makefile Wed Jun 21 18:03:17 2006 @@ -279,7 +279,7 @@ .if defined(NOPORTDOCS) XML_USED= no .endif -.if defined(MUTT_USES_NCURSES) && ${OSVERSION} < 400000 +.if defined(WITH_MUTT_NCURSES_PORT) || defined(MUTT_USES_NCURSES) && ${OSVERSION} < 400000 LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include .elif defined(MUTT_USES_SLANG1) @@ -348,7 +348,7 @@ .if defined(WITH_MUTT_LOCALES_FIX) CONFIGURE_ARGS+= --enable-locales-fix .endif -.if defined(MUTT_USES_NCURSES) && ${OSVERSION} < 400000 +.if defined(WITH_MUTT_NCURSES_PORT) || defined(MUTT_USES_NCURSES) && ${OSVERSION} < 400000 CONFIGURE_ARGS+= --with-curses=${LOCALBASE} .elif defined(MUTT_USES_SLANG) CONFIGURE_ARGS+= --with-slang=${LOCALBASE} >Release-Note: >Audit-Trail: >Unformatted: