pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38418: chat/weechat added the wide-curses option

>Number:         38418
>Category:       pkg
>Synopsis:       UTF-8 on chat/weechat doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 13 12:30:00 +0000 2008
>Originator:     Leonardo Taccari
>Release:        NetBSD 4.0
NetBSD Italia

Hello to all pkgsrc lovers,
chat/weechat on pkgsrc-2007Q4 doesn't support UTF-8. For example if I
join the #netbsd-it channel on Freenode I can't type (or type with
problems) UTF-8 characters. I've got this problem because chat/weechat
use ncurses and not ncursesw so for fix this problems I added a
wide-curses option to I also turned that option by default
because IMHO the UTF-8 support is necessary.


Ciao, Leonardo
 Leonardo Taccari (leot) |
System: NetBSD bianconiglio 4.0 NetBSD 4.0 (BIANCONIGLIO) #0: Mon Mar 31 
16:52:15 CEST 2008 
Architecture: i386
Machine: i386
        The package chat/weechat doesn't support UTF-8. I've got this
        problem because it uses ncurses and not ncursesw, and there
        isn't any PKG_OPTIONS for turn on the wide-curses support. 

        cd $PKGSRCDIR/chat/weechat && make install && weechat-curses
        /join #netbsd-it
        ...and now please type some UTF-8 characters. :-)

        Apply the attached patch that adds the wide-curses option, and
        turn on the wide-curses option (I use pkgsrc-2007Q4 but i'm
        quite sure that this patch can apply without any problems on

Patch for chat/weechat/Makefile:

--- Makefile.orig       2008-04-13 12:48:19.000000000 +0200
+++ Makefile    2008-04-13 13:02:16.000000000 +0200
@@ -26,5 +26,4 @@
 .include "../../devel/gettext-lib/"
 .include "../../converters/libiconv/"
-.include "../../devel/ncurses/"
 .include "../../mk/"

Patch for chat/weechat/

---     2008-04-13 12:55:23.000000000 +0200
+++  2008-04-13 13:05:20.000000000 +0200
@@ -1,8 +1,8 @@
 # $NetBSD:,v 1.3 2007/06/10 22:20:10 tonio Exp $
-PKG_SUPPORTED_OPTIONS= charset gnutls python lua
+PKG_SUPPORTED_OPTIONS= charset gnutls lua python wide-curses
+PKG_SUGGESTED_OPTIONS= charset wide-curses
 .include "../../mk/"
@@ -18,6 +18,12 @@
 .include "../../security/gnutls/"
+.if !empty(PKG_OPTIONS:Mwide-curses)
+.include "../../devel/ncursesw/"
+.include "../../devel/ncurses/"
 .if !empty(PKG_OPTIONS:Mpython)
 .include "../../lang/python/"
 CONFIGURE_ARGS+=       --enable-python


Home | Main Index | Thread Index | Old Index