Package Details: rtorrent-color 0.9.8-1

Git Clone URL: https://aur.archlinux.org/rtorrent-color.git (read-only)
Package Base: rtorrent-color
Description: Ncurses BitTorrent client based on libTorrent with color patch.
Upstream URL: https://github.com/KopfKrieg/rtorrent/tree/colorpatch
Keywords: color rtorrent
Licenses: GPL
Conflicts: rtorrent
Provides: rtorrent
Submitter: ashren
Maintainer: lrustand
Last Packager: lrustand
Votes: 95
Popularity: 0.47
First Submitted: 2009-11-12 22:00
Last Updated: 2019-07-21 16:01

Required by (17)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

ashren commented on 2012-04-29 13:49

@lucky
Sure, if you don't the have time, I'll take a turn maintainin'.

Lucky commented on 2012-04-29 12:21

@ashren
thanks for the patches, do you want adopt this package again?

@all
builds with warnings, but rtorrent works fine so its fixed for now.

ashren commented on 2012-04-29 09:59

Add "-fpermissive" to the CXXFLAGS in PKGBUILD:

diff PKGBUILD PKGBUILD.old
28c28
< export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing -fpermissive"
---
> export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"


http://gcc.gnu.org/gcc-4.7/changes.html

Include unistd.h in thread_base.h:

diff src/rtorrent-0.8.9/src/thread_base.h ../rtorrent-color.new/src/rtorrent-0.8.9/src/thread_base.h
42a43
> #include <unistd.h>

And it will build (with warnings).

Here's the patch for the unistd.h bit:

--- ../rtorrent-color/src/rtorrent-0.8.9/src/thread_base.h 2011-04-05 12:26:11.000000000 +0200
+++ ../rtorrent-color.new/src/rtorrent-0.8.9/src/thread_base.h 2012-04-29 11:20:18.216406858 +0200
@@ -40,6 +40,7 @@
#include <pthread.h>
#include <sys/types.h>
#include <torrent/thread_base.h>
+#include <unistd.h>

#include "rak/priority_queue_default.h"
#include "core/poll_manager.h"

ashren commented on 2012-04-29 09:45

Add "-fpermissive" to the CXXFLAGS in PKGBUILD:

diff PKGBUILD PKGBUILD.old
28c28
< export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing -fpermissive"
---
> export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"


http://gcc.gnu.org/gcc-4.7/changes.html

Include unistd.h in thread_base.h:

diff src/rtorrent-0.8.9/src/thread_base.h ../rtorrent-color.new/src/rtorrent-0.8.9/src/thread_base.h
42a43
> #include <unistd.h>

And it will build (with warnings).




Lucky commented on 2012-04-25 16:02

@TheLemonMan
thanks for the info, but could not fix it yet. It's a "upstream" (gcc4.7?) bug, building stock rtorrent from community also fails.

If anyone can provide patches for 0.8.9 i will include it. Maybe this weekend i had time to watch at this.

TheLemonMan commented on 2012-04-24 13:31

Build fails. Heres the log http://sprunge.us/cIag

Lucky commented on 2012-01-22 04:00

@x33a
thanks for info, fixed.

x33a commented on 2011-12-14 17:11

build fails with

/usr/bin/ld: libsub_root.a(thread_base.o): undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [rtorrent] Error 1
make[3]: Leaving directory `/tmp/packerbuild-1000/rtorrent-color/rtorrent-color/src/rtorrent-0.8.9/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/packerbuild-1000/rtorrent-color/rtorrent-color/src/rtorrent-0.8.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/packerbuild-1000/rtorrent-color/rtorrent-color/src/rtorrent-0.8.9'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
The build failed.

Adding export LIBS="${LIBS} -lpthread" fixes the issue.

--- PKGBUILD 2011-07-05 05:10:02.000000000 +0530
+++ PKGBUILD1 2011-12-14 22:21:59.553511157 +0530
@@ -28,6 +28,7 @@
patch -uNp1 -i "${srcdir}/${_pkgname}-${pkgver}_canvas_color.patch"

export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
+ export LIBS="${LIBS} -lpthread"
./configure \
--prefix=/usr \
--enable-debug \

Lucky commented on 2011-07-04 23:49

Thank you hleem for providing a new canvas_color.patch.
I update rtorrent-color, anyone want to adopt this package?

hleem commented on 2011-07-04 20:18

ashren! here is a new patch. check it please.

PKGBUILD:

pkgname=rtorrent-color
pkgver=0.8.9
pkgrel=2
pkgdesc="Ncurses BitTorrent client based on libTorrent with color patch."
arch=('i686' 'x86_64')
url="http://libtorrent.rakshasa.no"
install=$pkgname.install
license=('GPL')
depends=('libtorrent=>0.12.9' 'curl>=7.14.3' 'xmlrpc-c')
source=(http://libtorrent.rakshasa.no/downloads/rtorrent-$pkgver.tar.gz http://trerront.googlecode.com/files/rtorrent-0.8.9-canvas-fix.patch)
conflicts=('rtorrent')
provides=('rtorrent')

md5sums=('629247636cb1210663b52dadbd040a6c'
'5d9cbd7245bf516eea88869c37fb98fa')

build() {
cd "$srcdir/rtorrent-$pkgver"
patch -Np0 -i $srcdir/rtorrent-0.8.9-canvas-fix.patch
CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" \
./configure --prefix=/usr --disable-debug --with-xmlrpc-c || return 1
make || return 1
make DESTDIR="$pkgdir" install
}