From ebf0f1fa98f32cefbd483a62a25ed214dbbacd70 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sun, 27 Mar 2011 20:12:41 -0500 Subject: 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 --- .../rtorrent-0.8.7-canvas-patch-fix-for-ncurses-5-8.patch | 10 ++++++++++ network/rtorrent/rtorrent.SlackBuild | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 network/rtorrent/rtorrent-0.8.7-canvas-patch-fix-for-ncurses-5-8.patch (limited to 'network/rtorrent') diff --git a/network/rtorrent/rtorrent-0.8.7-canvas-patch-fix-for-ncurses-5-8.patch b/network/rtorrent/rtorrent-0.8.7-canvas-patch-fix-for-ncurses-5-8.patch new file mode 100644 index 0000000000..b9a09d47bf --- /dev/null +++ b/network/rtorrent/rtorrent-0.8.7-canvas-patch-fix-for-ncurses-5-8.patch @@ -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_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); } diff --git a/network/rtorrent/rtorrent.SlackBuild b/network/rtorrent/rtorrent.SlackBuild index 7b3fc0df2e..2555844741 100644 --- a/network/rtorrent/rtorrent.SlackBuild +++ b/network/rtorrent/rtorrent.SlackBuild @@ -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 \ -- cgit v1.2.3