From 4f16bcb43a0d50b5568c9ad0a16f93e913330dc2 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 7 Mar 2016 20:35:31 -0500 Subject: [PATCH] transmission: Update from 2.84 to 2.92 --- packages/transmission/build.sh | 2 +- packages/transmission/fdlimit.c.patch | 14 ---- .../libtransmission-fdlimit.c.patch | 11 +++ .../no_setlocale_in_variant_c.patch | 83 ------------------- 4 files changed, 12 insertions(+), 98 deletions(-) delete mode 100644 packages/transmission/fdlimit.c.patch create mode 100644 packages/transmission/libtransmission-fdlimit.c.patch delete mode 100644 packages/transmission/no_setlocale_in_variant_c.patch diff --git a/packages/transmission/build.sh b/packages/transmission/build.sh index 747c6e211..658988d08 100755 --- a/packages/transmission/build.sh +++ b/packages/transmission/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://www.transmissionbt.com/ TERMUX_PKG_DESCRIPTION="Easy, lean and powerful BitTorrent client" TERMUX_PKG_DEPENDS="curl, libevent, openssl" -TERMUX_PKG_VERSION=2.84 +TERMUX_PKG_VERSION=2.92 TERMUX_PKG_SRCURL=https://transmission.cachefly.net/transmission-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-gtk --enable-lightweight --cache-file=termux_configure.cache" diff --git a/packages/transmission/fdlimit.c.patch b/packages/transmission/fdlimit.c.patch deleted file mode 100644 index 608661ee0..000000000 --- a/packages/transmission/fdlimit.c.patch +++ /dev/null @@ -1,14 +0,0 @@ -fallocate64() is already defined in for android-21 - -diff -u -r ../transmission-2.84/libtransmission/fdlimit.c ./libtransmission/fdlimit.c ---- ../transmission-2.84/libtransmission/fdlimit.c 2014-07-01 13:08:59.298910687 -0400 -+++ ./libtransmission/fdlimit.c 2014-12-20 05:47:58.563577502 -0500 -@@ -22,7 +22,7 @@ - #include - #endif - --#ifdef HAVE_FALLOCATE64 -+#if defined HAVE_FALLOCATE64 && !(defined __ANDROID__) - /* FIXME can't find the right #include voodoo to pick up the declaration.. */ - extern int fallocate64 (int fd, int mode, uint64_t offset, uint64_t len); - #endif diff --git a/packages/transmission/libtransmission-fdlimit.c.patch b/packages/transmission/libtransmission-fdlimit.c.patch new file mode 100644 index 000000000..fcb927100 --- /dev/null +++ b/packages/transmission/libtransmission-fdlimit.c.patch @@ -0,0 +1,11 @@ +diff -u -r ../transmission-2.92/libtransmission/fdlimit.c ./libtransmission/fdlimit.c +--- ../transmission-2.92/libtransmission/fdlimit.c 2015-10-23 21:35:22.638234970 -0400 ++++ ./libtransmission/fdlimit.c 2016-03-07 20:32:58.075869242 -0500 +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + + #ifndef _WIN32 + #include /* getrlimit */ diff --git a/packages/transmission/no_setlocale_in_variant_c.patch b/packages/transmission/no_setlocale_in_variant_c.patch deleted file mode 100644 index ec97abd19..000000000 --- a/packages/transmission/no_setlocale_in_variant_c.patch +++ /dev/null @@ -1,83 +0,0 @@ -diff -u -r ../transmission-2.82/libtransmission/variant.c ./libtransmission/variant.c ---- ../transmission-2.82/libtransmission/variant.c 2013-08-09 04:45:40.000000000 +0200 -+++ ./libtransmission/variant.c 2014-02-10 17:30:57.000000000 +0100 -@@ -22,7 +22,9 @@ - #include - #endif - -+#ifndef __ANDROID__ - #include /* setlocale() */ -+#endif - #include /* write() */ - - #include -@@ -308,14 +310,20 @@ - if (!success && tr_variantIsString (v)) - { - char * endptr; -+#ifndef __ANDROID__ - char locale[128]; -+#endif - double d; - - /* the json spec requires a '.' decimal point regardless of locale */ -+#ifndef __ANDROID__ - tr_strlcpy (locale, setlocale (LC_NUMERIC, NULL), sizeof (locale)); - setlocale (LC_NUMERIC, "POSIX"); -+#endif - d = strtod (getStr (v), &endptr); -+#ifndef __ANDROID__ - setlocale (LC_NUMERIC, locale); -+#endif - - if ((success = (getStr (v) != endptr) && !*endptr)) - *setme = d; -@@ -1088,12 +1096,16 @@ - struct evbuffer * - tr_variantToBuf (const tr_variant * v, tr_variant_fmt fmt) - { -+#ifndef __ANDROID__ - char lc_numeric[128]; -+#endif - struct evbuffer * buf = evbuffer_new(); - -+#ifndef __ANDROID__ - /* parse with LC_NUMERIC="C" to ensure a "." decimal separator */ - tr_strlcpy (lc_numeric, setlocale (LC_NUMERIC, NULL), sizeof (lc_numeric)); - setlocale (LC_NUMERIC, "C"); -+#endif - - evbuffer_expand (buf, 4096); /* alloc a little memory to start off with */ - -@@ -1113,7 +1125,9 @@ - } - - /* restore the previous locale */ -+#ifndef __ANDROID__ - setlocale (LC_NUMERIC, lc_numeric); -+#endif - return buf; - } - -@@ -1272,9 +1286,11 @@ - int err; - char lc_numeric[128]; - -+#ifndef __ANDROID__ - /* parse with LC_NUMERIC="C" to ensure a "." decimal separator */ - tr_strlcpy (lc_numeric, setlocale (LC_NUMERIC, NULL), sizeof (lc_numeric)); - setlocale (LC_NUMERIC, "C"); -+#endif - - switch (fmt) - { -@@ -1288,7 +1304,9 @@ - break; - } - -+#ifndef __ANDROID__ - /* restore the previous locale */ - setlocale (LC_NUMERIC, lc_numeric); -+#endif - return err; - }