ports/155318: rtorrent doesn't work with ncurses 5.8
Yamagi Burmeister
yamagi at yamagi.org
Sun Mar 6 18:20:12 UTC 2011
>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:
More information about the freebsd-ports-bugs
mailing list