Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages /
onionshare
Commits:
c851263e by Carl Smedstad at 2025-12-28T12:25:48+01:00
upgpkg: 2.6.3-4: Python 3.14 rebuild
- - - - -
4 changed files:
- .SRCINFO
- PKGBUILD
- REUSE.toml
- + onionshare-python-3.14-fix-multiprocessing.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = onionshare
pkgdesc = Share a file over Tor Hidden Services anonymously and securely
pkgver = 2.6.3
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/onionshare/onionshare
arch = any
license = GPL-3.0-or-later
@@ -38,9 +38,12 @@ pkgbase = onionshare
optdepends = python-nautilus: enable Nautilus right-click extension
source =
https://github.com/onionshare/onionshare/archive/v2.6.3/onionshare-2.6.3.tar.gz
source = onionshare-loosen-cffi-version-bounds.patch
+ source = onionshare-python-3.14-fix-multiprocessing.patch
sha512sums =
0ea925230617c303c47fd5558066f8dec58f5d2f920738a7351c83fa2655e7d9fd1433ee0c552d1e8affea6f18cb3d489696d640847129b4082f00fa7481f220
sha512sums =
6d4dbaa0ee7073ffae09fec95b7258f40886c87c4a7f85206111727f4cbc73cf6cb2b2c04ba5b5dcca88f8f72aadabe12368f5319fe929db761c6096c9ab614b
+ sha512sums =
3766a51d19b12adab68888e44444be23b0dc06c9dd4d7a291881be0d1d9a337b6f2f04135e43619a07956bfceb36f512d3e61a0f03cbe551bd9ef0c15fbefc24
b2sums =
9a6f75f1cf05de3bce9f7847f7cf4146550e45c102ae9f8b193f55825924fe2665925e33709a6137b6da743c4187204607cabdf5f8d559ab5ab044e01b2e22af
b2sums =
7fae57ae4d2afdcae287515770925ff040977be254ab8d5646b3b3b4cd89e5d645a655bfae507455beb3bca15c4a5d1ad6610d548b23a19f897d7c48cac97ede
+ b2sums =
8f2662b61599698b1b12522f330320bb284187c7607390a411dee490772d6c6f891093e718eebc2ff41d972b554319e4d96758841db6476f5ede1a4bd86d1b63
pkgname = onionshare
=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
pkgname=onionshare
pkgver=2.6.3
-pkgrel=3
+pkgrel=4
pkgdesc='Share a file over Tor Hidden Services anonymously and securely'
url='https://github.com/onionshare/onionshare'
arch=('any')
@@ -51,15 +51,19 @@ checkdepends=(
source=(
"${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
"${pkgname}-loosen-cffi-version-bounds.patch"
+ "${pkgname}-python-3.14-fix-multiprocessing.patch"
)
sha512sums=('0ea925230617c303c47fd5558066f8dec58f5d2f920738a7351c83fa2655e7d9fd1433ee0c552d1e8affea6f18cb3d489696d640847129b4082f00fa7481f220'
-
'6d4dbaa0ee7073ffae09fec95b7258f40886c87c4a7f85206111727f4cbc73cf6cb2b2c04ba5b5dcca88f8f72aadabe12368f5319fe929db761c6096c9ab614b')
+
'6d4dbaa0ee7073ffae09fec95b7258f40886c87c4a7f85206111727f4cbc73cf6cb2b2c04ba5b5dcca88f8f72aadabe12368f5319fe929db761c6096c9ab614b'
+
'3766a51d19b12adab68888e44444be23b0dc06c9dd4d7a291881be0d1d9a337b6f2f04135e43619a07956bfceb36f512d3e61a0f03cbe551bd9ef0c15fbefc24')
b2sums=('9a6f75f1cf05de3bce9f7847f7cf4146550e45c102ae9f8b193f55825924fe2665925e33709a6137b6da743c4187204607cabdf5f8d559ab5ab044e01b2e22af'
-
'7fae57ae4d2afdcae287515770925ff040977be254ab8d5646b3b3b4cd89e5d645a655bfae507455beb3bca15c4a5d1ad6610d548b23a19f897d7c48cac97ede')
+
'7fae57ae4d2afdcae287515770925ff040977be254ab8d5646b3b3b4cd89e5d645a655bfae507455beb3bca15c4a5d1ad6610d548b23a19f897d7c48cac97ede'
+
'8f2662b61599698b1b12522f330320bb284187c7607390a411dee490772d6c6f891093e718eebc2ff41d972b554319e4d96758841db6476f5ede1a4bd86d1b63')
prepare() {
sed -i '/^onionshare-cli = /d' ${pkgname}-${pkgver}/desktop/pyproject.toml
patch -Np1 -d ${pkgname}-${pkgver} <
${pkgname}-loosen-cffi-version-bounds.patch
+ patch -Np1 -d ${pkgname}-${pkgver} <
${pkgname}-python-3.14-fix-multiprocessing.patch
}
build() {
=====================================
REUSE.toml
=====================================
@@ -24,6 +24,7 @@ SPDX-License-Identifier = "0BSD"
[[annotations]]
path = [
"onionshare-loosen-cffi-version-bounds.patch",
+ "onionshare-python-3.14-fix-multiprocessing.patch",
]
SPDX-FileCopyrightText = "onionshare contributors"
SPDX-License-Identifier = "GPL-3.0-or-later"
=====================================
onionshare-python-3.14-fix-multiprocessing.patch
=====================================
@@ -0,0 +1,22 @@
+diff --unified --recursive --text --new-file
onionshare-2.6.3.orig/cli/tests/test_cli_web.py
onionshare-2.6.3/cli/tests/test_cli_web.py
+--- onionshare-2.6.3.orig/cli/tests/test_cli_web.py 2025-12-28
12:21:21.361677564 +0100
++++ onionshare-2.6.3/cli/tests/test_cli_web.py 2025-12-28 12:23:02.855318710
+0100
+@@ -13,7 +13,7 @@
+
+ import pytest
+ from contextlib import contextmanager
+-from multiprocessing import Process
++import multiprocessing
+ from urllib.request import urlopen, Request
+ from werkzeug.datastructures import Headers
+ from werkzeug.exceptions import RequestedRangeNotSatisfiable
+@@ -402,7 +402,8 @@
+ def run():
+ web.app.run(host="127.0.0.1", port=port, debug=False)
+
+- proc = Process(target=run)
++ # Use fork context explicitly for Python 3.14+ (forkserver cannot pickle
local functions)
++ proc = multiprocessing.get_context('fork').Process(target=run)
+ proc.start()
+
+ url = "http://127.0.0.1:{}".format(port)
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/onionshare/-/commit/c851263e372ff4e4268bbf8e12b623cff6c3470b
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/onionshare/-/commit/c851263e372ff4e4268bbf8e12b623cff6c3470b
You're receiving this email because of your account on gitlab.archlinux.org.