Skip to content

Commit 96e7026

Browse files
fix(x11/libtorrent): builds for 32-bit targets
Works upon #29408
1 parent 023a0ee commit 96e7026

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

x11-packages/libktorrent/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="A BitTorrent protocol implementation"
33
TERMUX_PKG_LICENSE="GPL-2.0-or-later"
44
TERMUX_PKG_MAINTAINER="@termux"
55
TERMUX_PKG_VERSION="26.04.0"
6+
TERMUX_PKG_REVISION=1
67
TERMUX_PKG_SRCURL="https://download.kde.org/stable/release-service/${TERMUX_PKG_VERSION}/src/libktorrent-${TERMUX_PKG_VERSION}.tar.xz"
78
TERMUX_PKG_SHA256=4c7ef4b7416fcedf9d1ca8b759cae8ee0cd4254dca80e3978753399445dcf008
89
TERMUX_PKG_AUTO_UPDATE=true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/src/peer/utmetadata.cpp 01:43:29.339142276 +0530
2+
+++ b/src/peer/utmetadata.cpp 2026-04-20 01:44:04.420161389 +0530
3+
@@ -34,7 +34,7 @@
4+
return;
5+
}
6+
7+
- const auto tmp = QByteArrayView{packet, size}.sliced(2);
8+
+ const auto tmp = QByteArrayView{packet, static_cast<qsizetype>(size)}.sliced(2);
9+
try {
10+
BDecoder dec(tmp.data(), tmp.size(), false);
11+
const std::unique_ptr<BDictNode> dict = dec.decodeDict();

0 commit comments

Comments
 (0)