Browse Source

transmission: add a better patch

Waldemar Brodkorb 9 years ago
parent
commit
babb4b8ed4

+ 1 - 1
package/transmission/Makefile

@@ -11,7 +11,7 @@ PKG_DESCR:=		torrent client
 PKG_SECTION:=		app/p2p
 PKG_DEPENDS:=		libressl libevent libcurl
 PKG_BUILDDEP:=		libressl libevent curl
-PKG_NEEDS:=		threads
+PKG_NEEDS:=		threads c++
 PKG_URL:=		http://www.transmissionbt.com
 PKG_SITES:=		http://download.transmissionbt.com/files/
 

+ 26 - 0
package/transmission/patches/0001-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch

@@ -0,0 +1,26 @@
+From e6f8e571c2014602d9edd68e1e58d38fed59c2b4 Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@uclibc-ng.org>
+Date: Sun, 16 Oct 2016 17:33:23 +0200
+Subject: [PATCH] uClibc-ng since 1.0.18 has sys/quota.h synced with GNU libc
+
+Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
+---
+ libtransmission/platform-quota.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libtransmission/platform-quota.c b/libtransmission/platform-quota.c
+index 58c518a..e14ec1b 100644
+--- a/libtransmission/platform-quota.c
++++ b/libtransmission/platform-quota.c
+@@ -284,7 +284,7 @@ getquota (const char * device)
+       spaceused = (int64_t) dq.dqb_curblocks >> 1;
+ #elif defined(__APPLE__)
+       spaceused = (int64_t) dq.dqb_curbytes;
+-#elif defined(__UCLIBC__)
++#elif defined (__UCLIBC__) && !TR_UCLIBC_CHECK_VERSION (1, 0, 17)
+       spaceused = (int64_t) btodb(dq.dqb_curblocks);
+ #elif defined(__sun) || (defined(_LINUX_QUOTA_VERSION) && _LINUX_QUOTA_VERSION < 2)
+       spaceused = (int64_t) dq.dqb_curblocks >> 1;
+-- 
+2.7.4 (Apple Git-66)
+

+ 0 - 11
package/transmission/patches/patch-libtransmission_platform-quota_c

@@ -1,11 +0,0 @@
---- transmission-2.92.orig/libtransmission/platform-quota.c	2015-03-27 13:44:20.469243994 +0100
-+++ transmission-2.92/libtransmission/platform-quota.c	2016-09-30 19:08:06.279386697 +0200
-@@ -285,8 +285,6 @@ getquota (const char * device)
-       spaceused = (int64_t) dq.dqb_curblocks >> 1;
- #elif defined(__APPLE__)
-       spaceused = (int64_t) dq.dqb_curbytes;
--#elif defined(__UCLIBC__)
--      spaceused = (int64_t) btodb(dq.dqb_curblocks);
- #elif defined(__sun) || (defined(_LINUX_QUOTA_VERSION) && _LINUX_QUOTA_VERSION < 2)
-       spaceused = (int64_t) dq.dqb_curblocks >> 1;
- #else