network/rtorrent: Patched for ncurses-5.8.

Thanks to Andrew Strong for a link to the patch in
upstream's bug tracker.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Robby Workman 2011-03-27 20:12:41 -05:00
parent 32eebfd2fa
commit ebf0f1fa98
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,10 @@
--- rtorrent-0.8.7/src/display/canvas.h 2011-03-01 14:56:25.000000000 +0800
+++ rtorrent-0.8.7/src/display/canvas.h 2011-03-01 14:56:10.000000000 +0800
@@ -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); }

View File

@ -5,10 +5,11 @@
# Updated to 0.8.6 by Brian Kysela 2010-02-16
# Updated to include rtorrent.rc 2010-04-20
# Updated to 0.8.7 by Brian Kysela 2010-10-27
# Patched for new ncurses in 13.37 by rworkman
PRGNAM=rtorrent
VERSION=0.8.7
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -49,6 +50,8 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
patch -p1 < $CWD/rtorrent-0.8.7-canvas-patch-fix-for-ncurses-5-8.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \