Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2011 18:17:44 GMT
From:      Yamagi Burmeister <yamagi@yamagi.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/155318: rtorrent doesn't work with ncurses 5.8
Message-ID:  <201103061817.p26IHiR4074003@red.freebsd.org>
Resent-Message-ID: <201103061820.p26IKCFM006105@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         155318
>Category:       ports
>Synopsis:       rtorrent doesn't work with ncurses 5.8
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 06 18:20:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Yamagi Burmeister
>Release:        FreeBSD 8.2-RELEASE
>Organization:
>Environment:
FreeBSD saya.home.yamagi.org 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sun Feb 20 18:59:52 CET 2011     root@:/usr/obj/usr/src/sys/SAYA  amd6
>Description:
After the update of devel/ncurses to 5.8 rtorrent stopped working at least on FreeBSD/amd64. The problem are invalid canvas size parameter to ncurses. The attached patch can be put into net-p2p/rtorrent/files and fixes the problem by passing legal values to ncurses.
>How-To-Repeat:
Start net-p2p/rtorrent on a FreeBSD/amd64 box with devel/ncurses 5.8 installed.
>Fix:
See the attached patch.

Patch attached with submission follows:

--- src/display/canvas.h        2011-03-03 19:10:25.000000000 +0200
+++ src/display/canvas.h        2011-03-03 19:10:10.000000000 +0200
@@ -48,7 +48,7 @@ class Canvas {
 public:
   typedef std::vector<Attributes> attributes_list;
 
-  Canvas(int x = 0, int y = 0, int width = 0, int height = 0) :
+  Canvas(int x = 0, int y = 0, int width = 1, int height = 1) :
     m_window(newwin(height, width, y, x)) {}
   ~Canvas() { delwin(m_window); }


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103061817.p26IHiR4074003>