Merge updates from master

This commit is contained in:
Repository mirror & CI
2025-06-17 12:54:05 +00:00
15 changed files with 206 additions and 21 deletions

View File

@@ -1 +1,2 @@
DIST gdbgui-0.15.2.0.gh.tar.gz 4950845 BLAKE2B ffdce1923aead7d5cf202aa6954bbedcfa55cb27351b7635dd9636a8b398e4d9d8baa1c59789ba47e80ae581fa6510cae2017d0639cc7f9137d8ce5e0324172b SHA512 b1aef477f87b04016f594fe38581b646a0179bf9fd2441c6af3a534a817fc0b43a89f22016e252dffca775ab2b6a4e9cd7962f6f347be9295aee0af798a033b3
DIST gdbgui-0.15.2.0.tar.gz 1292007 BLAKE2B 32adaef906d0fa94de76d7009c3a0c37e9596403b8a10b3b75b798627141627d7d7196399d61b4252512c6707a2ac8ec71958bb22432155ef8d11b3681aa89c2 SHA512 e678494efe6ef3a1e65dc167b0620cffd219a9fa3c2dcf5c127229042bb9e0f3a7ccba0cbf5c70689bb4ec1ec3f3c36be75a2b6024ea615758928205e584ecb8

View File

@@ -0,0 +1,31 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1
DESCRIPTION="Browser-based frontend to gdb"
HOMEPAGE="https://www.gdbgui.com/ https://github.com/cs01/gdbgui"
SRC_URI="https://github.com/cs01/gdbgui/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
dev-python/bidict[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
dev-python/flask-compress[${PYTHON_USEDEP}]
dev-python/flask-socketio[${PYTHON_USEDEP}]
dev-python/pygdbmi[${PYTHON_USEDEP}]
dev-python/pygments[${PYTHON_USEDEP}]
dev-python/python-engineio[${PYTHON_USEDEP}]
"
RDEPEND="${DEPEND}"
distutils_enable_tests pytest

View File

@@ -1 +1 @@
DIST daff-1.3.46.tar.gz 149820 BLAKE2B e79083fbdbbb975d0f81f5c932a58788925e0376e82c6c284e39596319e4498375e6e548a3ee8a9b383b1e38b0564fcd3247eb51f03519cb779899b21f29de35 SHA512 b43b6c737fd68663fd15366d8024f5190bc35e52ce6b8f3d64f8c538c544c21a1e9cdb691e4673eed4958be37cbf9590863a1029fec7d08062156adaaf28103f
DIST daff-1.4.2.tar.gz 148251 BLAKE2B 020ff58bdb5003dc715441a1debb9b384f53652da6dffa7df039b26dc7aa1e22012fa75ba3310f810835632df7e3e9b3cd202deb348f2e404c6e5b3db661b472 SHA512 6b096db5688b261a6a81c9e341a9697ffbe91aba5e02c1244fd97e4a7645349486676203e8c6a4e5b694644e96baea896b9c295b25287e5e93bcd194bbc98e90

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
PYTHON_COMPAT=( python3_{11..14} pypy3 )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi

View File

@@ -1 +1,2 @@
DIST proton-vpn-api-core-0.42.4-remove-anonymous-bug-report.patch 26623 BLAKE2B a85b772a159ddf2f06a8d1c8d0cfba087c19ce65ad336800ec1deb1f0677084e8146fc27f2709920247accc8282ca1105488dbbd883d03d2f4896a20e6253846 SHA512 030378fa1a1a5ec30cd70045354a3a1ba73b06c99f3a68c2b94de5c30a9452e23a865fdafea42006f5c43ffd4de74b9634a855894bde9969229aa4bf0c7cca3c
DIST proton-vpn-api-core-0.42.4.tar.gz 107830 BLAKE2B 6db40531de7c7128f9f7b9de3e405b18adcf68dbae604ad86df336c43eaf204842f64c7d0b2adecd4b0ee8b1aadac49125544d6f7413cd28b6a5631944f266ed SHA512 06106116e1c114d1a7115fcb3246fdb13eb545ec938224d6fb3f268300589ce324116590ee63237078898e1b5a34b5038512586dd040f38ea7c38f3ff13db423

View File

@@ -10,7 +10,12 @@ inherit distutils-r1
DESCRIPTION="Proton AG VPN Core API"
HOMEPAGE="https://github.com/ProtonVPN/python-proton-vpn-api-core"
SRC_URI="https://github.com/ProtonVPN/python-proton-vpn-api-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="
https://github.com/ProtonVPN/python-proton-vpn-api-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/beatussum/gentoo-tarballs/releases/download/latest/${P}-remove-anonymous-bug-report.patch
"
S="${WORKDIR}/python-${P}"
LICENSE="GPL-3+"
SLOT="0"
@@ -25,9 +30,10 @@ RDEPEND="
dev-python/distro[${PYTHON_USEDEP}]
dev-python/proton-core[${PYTHON_USEDEP}]
dev-python/pynacl[${PYTHON_USEDEP}]
dev-python/sentry-sdk[${PYTHON_USEDEP}]
"
PATCHES=( "${DISTDIR}/${P}-remove-anonymous-bug-report.patch" )
distutils_enable_sphinx docs
distutils_enable_tests pytest
@@ -42,7 +48,7 @@ python_test() {
local EPYTEST_IGNORE=(
tests/connection
tests/core/refresher
tests/core/test_{connection,settings,usage}.py
tests/core/test_{connection,settings}.py
)
XDG_RUNTIME_DIR="${T}/python_test" epytest

View File

@@ -2,10 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>beatussum@protonmail.com</email>
<name>Mattéo RossillolLaruelle</name>
</maintainer>
<!-- maintainer-needed -->
<stabilize-allarches/>

View File

@@ -1 +1 @@
DIST templated-dictionary-1.5.gh.tar.gz 16163 BLAKE2B 8ec345576df2ce60f1837ee33275659da36805c4947c1d7d0d530ef74117e2926312c2f1e965dab1fbf7b20737be6511c91edb4948265d40e9b1c5adb5885933 SHA512 4bc82fb43b77574f0c28c02b3da871f51a3c1bb1f6b9377b9e064dce32edbfffc189e7eae700862ae528709640a45727d5a153447e35b3e92551f9e36cb0e073
DIST templated-dictionary-1.6.gh.tar.gz 16311 BLAKE2B 5130dc76fd2852ff1ef682f3dd01df67f2f7fbc22df48fdda4f4c87b001dafeb17e49b7362d436c7f84f91f8e47691cdf377607d442ca1247169d0d4040cc5b8 SHA512 06f231d01ab7b34a433b90ea9108ce049445afdcbc37e413647f4d7565cece7f14b28ba2ac7d8352348cf989ae58ab4587d7b74670cb3b19bfbfcd18f0623757

View File

@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1

View File

@@ -1,4 +1,4 @@
# Copyright 2024 Gentoo Authors
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -34,7 +34,7 @@ RDEPEND="
dev-qt/qtbase:6[concurrent,dbus,gui,network,sql,widgets]
dev-qt/qtimageformats:6
dev-qt/qtsvg:6
media-libs/taglib
media-libs/taglib:=
media-video/ffmpeg:=
alsa? ( media-libs/alsa-lib )
archive? ( app-arch/libarchive:= )

View File

@@ -1,4 +1,4 @@
DIST supersonic-0.15.1-vendor.tar.xz 7992464 BLAKE2B 67d43aac4b3c4744745bdf0bb4aa1192deb485611c3aea04a73cd496cf4f8975e44c69b570e96301245ff14f8be28a3c58e232b7416675914e1b6fe3646c111c SHA512 5ab811a6d315ca3f067e0dc5d1412f824e7ae191af6320ac3dbf980f497ce9404185f1c17f8beca08058153074d61264d4d2f45772fcb44395096897416477b6
DIST supersonic-0.15.1.tar.gz 63703443 BLAKE2B 9eac0acede388a25ee17dda180916f8df5307a33f7146b538c47a91fec79d7facd3d797f70abdf10a83e30448aee7c5ea31060d1f87149ff529afb9727fa6014 SHA512 ed120166bf28f4c0fa92ba27b26da8f320621d73bb85f155c37d8451864e2eee3185097545acfb6a6d826a7ebb1a6fc42be32cbac5046e03208aa7e0b4139731
DIST supersonic-0.15.2-vendor.tar.xz 7994488 BLAKE2B e3ccd31a64f4a8fc455fb3a0dabfe021c8c226b748000e95bf177bbcb858e15a8d1881afecd663e69e699974e09d50c6a4b69addaef7f06d785a02ce79bdffe6 SHA512 55d7189bc336529a4252424020cd3f56b309e56ef942a53cdd796ee1cb988fa842b0c28d3c870f9718c1fdcaf8429a6c1ccd226874f81be7f24f419c160c2341
DIST supersonic-0.15.2.tar.gz 63707624 BLAKE2B 2cf7ea639e61b653e0077d1fddd769ec757ce5cae37bc30802026b9445e0857b7e311536613f49220bb4449c11c7b328e7e3f9419de1eb981b817a0b198f8581 SHA512 f208a03bc63a912465d98a5e0707801c2370c5cd543315888b9485148b6af1580bab2e97866bea00ffa08f38d7cec041b0c8c02f1ba812c4665ef860a511c564
DIST supersonic-0.16.0-vendor.tar.xz 7990432 BLAKE2B aeb95215eea70e41c08f535938969da1c99a383cbad1d45808c86dfc196f75185d8155ea873386bdcefc8dea7bc94979b37485d8aee89af740a61efb2f6fa0e6 SHA512 c8fddbb07d326447c60de75656efe9baaba648e188af964204585cb0385c739a382055fe6908d2ab59639cfee6e57dff998fb64731ead6102b8b3d6584db1325
DIST supersonic-0.16.0.tar.gz 63710329 BLAKE2B 1b22f17e2823c6e703fc8a07951723324103db77f22f0158d19c06b18739fbf81047a9a18a2e4526b88bb00a74977a3b0d736761f849564380261fdc9cd462a9 SHA512 e759025e4ba3c17ef78a0deaec92069af0e5e6b2794920427fba062386466784a6593bed714af6b48f0a73a49d296b711eb619f85fd2b88200a623dc587af268

View File

@@ -0,0 +1,149 @@
From 065d288c8e8f01a18362c27c7f2ff69dfcda9038 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matt=C3=A9o=20Rossillol=E2=80=91=E2=80=91Laruelle?=
<beatussum@protonmail.com>
Date: Tue, 17 Jun 2025 10:27:24 +0200
Subject: [PATCH] remove anonymous bug report
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This feature depends on dev-python/sentry-sdk, a package that was removed from
the main tree due to its difficulty in being packaged correctly.
Signed-off-by: Mattéo RossillolLaruelle <beatussum@protonmail.com>
---
proton/vpn/app/gtk/controller.py | 8 ----
proton/vpn/app/gtk/utils/exception_handler.py | 4 --
.../menu/settings/general_settings.py | 14 -------
tests/unit/utils/test_exception_handler.py | 37 +------------------
4 files changed, 1 insertion(+), 62 deletions(-)
diff --git a/proton/vpn/app/gtk/controller.py b/proton/vpn/app/gtk/controller.py
index 50b2b7d..0ccbdf7 100644
--- a/proton/vpn/app/gtk/controller.py
+++ b/proton/vpn/app/gtk/controller.py
@@ -370,14 +370,6 @@ class Controller: # pylint: disable=too-many-public-methods, too-many-instance-
key=lambda protocol: protocol.cls.ui_protocol
)
- def send_error_to_proton(self,
- error: BaseException |
- tuple[Optional[Type[BaseException]],
- Optional[BaseException],
- Optional[TracebackType]]):
- """Sends the error to Sentry."""
- self._api.usage_reporting.report_error(error)
-
def run_subprocess(self, commands: list, shell: bool = False) -> Future:
"""Run asynchronously subprocess command so it does not block UI."""
return self.executor.submit(
diff --git a/proton/vpn/app/gtk/utils/exception_handler.py b/proton/vpn/app/gtk/utils/exception_handler.py
index 55bf536..18ae4c6 100644
--- a/proton/vpn/app/gtk/utils/exception_handler.py
+++ b/proton/vpn/app/gtk/utils/exception_handler.py
@@ -260,10 +260,6 @@ class ExceptionHandler:
exc_info=(exc_type, exc_value, exc_traceback)
)
- if self.controller:
- self.controller.send_error_to_proton(
- (exc_type, exc_value, exc_traceback))
-
def __enter__(self):
self.enable()
return self
diff --git a/proton/vpn/app/gtk/widgets/headerbar/menu/settings/general_settings.py b/proton/vpn/app/gtk/widgets/headerbar/menu/settings/general_settings.py
index 27723cd..46ec4dc 100644
--- a/proton/vpn/app/gtk/widgets/headerbar/menu/settings/general_settings.py
+++ b/proton/vpn/app/gtk/widgets/headerbar/menu/settings/general_settings.py
@@ -88,10 +88,6 @@ class GeneralSettings(BaseCategoryContainer): # pylint: disable=too-many-instan
START_APP_MINIMIZED_LABEL = "Start app minimized"
START_APP_MINIMIZED_DESCRIPTION = "When enabled, the app starts minimized "\
"to the tray."
- ANONYMOUS_CRASH_REPORTS_LABEL = "Share anonymous crash reports"
- ANONYMOUS_CRASH_REPORTS_DESCRIPTION = "Crash reports help us fix bugs, detect firewalls, "\
- "and avoid VPN blocks.\n\nThese statistics do not contain your IP address, and they "\
- "cannot be used to identify you. We'll never share them with third parties."
def __init__(
self, controller: Controller,
@@ -110,7 +106,6 @@ class GeneralSettings(BaseCategoryContainer): # pylint: disable=too-many-instan
self.build_start_app_minimized()
self.build_tray_pinned_servers()
- self.build_anonymous_crash_reports()
self.build_beta_upgrade()
def build_connect_at_app_startup(self):
@@ -145,15 +140,6 @@ class GeneralSettings(BaseCategoryContainer): # pylint: disable=too-many-instan
controller=self._controller, tray_indicator=self._tray_indicator
), False, False, 0)
- def build_anonymous_crash_reports(self):
- """Builds and adds the `anonymous_crash_reports` setting to the widget."""
- self.pack_start(ToggleWidget(
- controller=self._controller,
- title=self.ANONYMOUS_CRASH_REPORTS_LABEL,
- description=self.ANONYMOUS_CRASH_REPORTS_DESCRIPTION,
- setting_name="settings.anonymous_crash_reports"
- ), False, False, 0)
-
def build_beta_upgrade(self):
"""Builds and adds the `Early Access` setting to the widget."""
early_access = EarlyAccessWidget(self._controller)
diff --git a/tests/unit/utils/test_exception_handler.py b/tests/unit/utils/test_exception_handler.py
index d925d86..74d35ec 100644
--- a/tests/unit/utils/test_exception_handler.py
+++ b/tests/unit/utils/test_exception_handler.py
@@ -150,41 +150,6 @@ def test_handle_exceptions_that_should_be_raised_again(exception_type):
exc_traceback=None
)
-@pytest.mark.parametrize(
- "exception,error_title,error_message", [
- (Exception("Unexpected error"), ExceptionHandler.GENERIC_ERROR_TITLE, ExceptionHandler.GENERIC_ERROR_MESSAGE),
- ]
-)
-def test_handle_exceptions_reporting_remotely(
- exception, error_title, error_message
-):
- send_error = SimpleNamespace(invoked=False)
-
- def send_error_to_proton(error):
- exc_type, exc_value, exc_traceback = error
-
- # Make sure we're sent the correct information
- assert exc_type is Exception
- assert isinstance(exc_value, Exception)
-
- # Make sure we were actually invoked
- send_error.invoked = True
-
- controller = Mock()
- controller.send_error_to_proton = send_error_to_proton
-
- main_widget_mock = Mock()
- exception_handler = ExceptionHandler(main_widget=main_widget_mock,
- controller=controller)
-
- exception_handler.handle_exception(
- exc_type=type(exception),
- exc_value=exception,
- exc_traceback=None
- )
-
- assert send_error.invoked, "send_error_to_proton not invoked"
-
def test_handle_exception_logs_user_out_and_shows_missing_scope_dialog_on_proton_api_missing_scope_error():
main_widget_mock = Mock(MainWidget)
exception_handler = ExceptionHandler(main_widget=main_widget_mock)
@@ -214,4 +179,4 @@ def test_handle_exception_logs_user_out_and_shows_missing_scope_dialog_on_proton
)
main_widget_mock.logout.assert_called_once()
- main_widget_mock.notifications.show_error_dialog.assert_called_once()
\ No newline at end of file
+ main_widget_mock.notifications.show_error_dialog.assert_called_once()
--
2.49.0

View File

@@ -34,7 +34,10 @@ RDEPEND="
')
"
PATCHES=( "${FILESDIR}/${P}-remove-call-to-apt.patch" )
PATCHES=(
"${FILESDIR}/${P}-remove-anonymous-bug-report.patch"
"${FILESDIR}/${P}-remove-call-to-apt.patch"
)
src_install() {
distutils-r1_src_install

View File

@@ -1,10 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>davidroman96@gmail.com</email>
<name>David Roman</name>
</maintainer>
<!-- maintainer-needed -->
<upstream>
<remote-id type="github">markusressel/fan2go</remote-id>
<bugs-to>https://github.com/markusressel/fan2go/issues</bugs-to>