diff --git a/x11-packages/qbittorrent/0001-getrandom.patch b/x11-packages/qbittorrent/0001-getrandom.patch index b0a7905b77..d65f746ef8 100644 --- a/x11-packages/qbittorrent/0001-getrandom.patch +++ b/x11-packages/qbittorrent/0001-getrandom.patch @@ -1,6 +1,6 @@ --- a/src/base/utils/randomlayer_linux.cpp +++ b/src/base/utils/randomlayer_linux.cpp -@@ -34,6 +34,9 @@ +@@ -35,6 +35,9 @@ #include @@ -10,7 +10,19 @@ namespace { class RandomLayer -@@ -63,7 +66,11 @@ namespace +@@ -45,7 +48,11 @@ + + RandomLayer() + { ++#if defined(__ANDROID__) && __ANDROID_API__ < 28 ++ if (syscall(__NR_getrandom, nullptr, 0, 0) < 0) ++#else + if (::getrandom(nullptr, 0, 0) < 0) ++#endif + { + if (errno == ENOSYS) + { +@@ -93,7 +100,11 @@ for (int i = 0; i < RETRY_MAX; ++i) { result_type buf = 0; diff --git a/x11-packages/qbittorrent/build.sh b/x11-packages/qbittorrent/build.sh index 0c52f5488f..f76b37d20a 100644 --- a/x11-packages/qbittorrent/build.sh +++ b/x11-packages/qbittorrent/build.sh @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.qbittorrent.org/ TERMUX_PKG_DESCRIPTION="A Qt6 based BitTorrent client" TERMUX_PKG_LICENSE="GPL-2.0, GPL-3.0" TERMUX_PKG_MAINTAINER="Joshua Kahn @TomJo2000" -TERMUX_PKG_VERSION="5.1.0" +TERMUX_PKG_VERSION="5.1.1" TERMUX_PKG_SRCURL=https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=ac54cd8b3c6035cfcd684be5afd0eccc8c5fbbc3008a9b6f9ba42f6ef91105af +TERMUX_PKG_SHA256=09edaf7b0277c46f6653faed362e62d3daab5fdbeb3e15fb95493756e05e7a44 TERMUX_PKG_BUILD_DEPENDS="qt6-qtsvg, qt6-qttools, boost" TERMUX_PKG_DEPENDS="libc++, libtorrent-rasterbar, openssl, qt6-qtbase, zlib" TERMUX_PKG_RECOMMENDS="python"