From nobody Thu Apr 2 15:42:17 2026 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fmmLx3zF7z6YDKc for ; Thu, 02 Apr 2026 15:42:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fmmLx1RWPz42rr for ; Thu, 02 Apr 2026 15:42:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775144537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PIOrSYkQDgUTfxGt7+HL1GmRS1Ct5FeTiXInIoZXozw=; b=FpYuwgf7X5El9w3U0tRxfi1QpSGMDfOaJ534pgOcQBlM1qxF5lZQYM5F01MGHu+dlbi6pO EdS20A+oEwmEQQe+jSrrw4KAhqUvOY3cDQQLpuuQluWIzMdTzDWm+cUeyQ2S8cN9H4EutS eYD29EMqGNQnpAvVrVrHS8+SOHDWaw47mpNiJpG8phfZhN6eP3O/CYSmdEoNwAglKKb2Zl v7DKHtd5qsMxnPUJsWX7+lZb6JGs+HCSaurDUjaLfuv8aqovQV2lOFW65nw7kSg3xTBXop LwLMPSZD6YCog6AJFZHEeXBSf+EsP36ZgfkJswSmhznpHih1q9zK/kbgsV8QHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775144537; a=rsa-sha256; cv=none; b=hKr+NKFTKntCkiLlwMk96BUy5BJdqUH5LAEaG/YFdUAixVevBBFGBPwAW0Tvsf+dwtwZwv tr44piY9RRP5a2wgc0E/6wKHJXiiUSN6Aki+FJYAhU2tcyun4Xapo4a+U3/CVLIbdBkUoF AaKV2M7PzPWewWprMoT3ofrv6cW8zXzvVPzoUDD+5Kh2sQP+BAd8G3sB/90TEXfCLwAFj/ jjMWxQGhguV7PgQ6K9G7a5vogzMOhretNMWHcHOFTSKTAcdiMjdPR07o+29WoaUd3rPQoS pftM8irmTdl3PfWE5cMXhPfaXpVsxv99mouBqPjwgu25Y9XwEMDyI370GAXBkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775144537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PIOrSYkQDgUTfxGt7+HL1GmRS1Ct5FeTiXInIoZXozw=; b=RNPsMtsfrSVX7VPl3ZdtGoxn+UxOyAGtpXPoEm9qvXvQDXBHwD1RL5ipb52lHiuClSGrgW 5myDoHydYmtSOzx+mM/p2dyu/97+43hDfWtSUGXl1vioG6dLB5VPmokWD6LbdAuvjhxosP wlF9dCfjmtp0rMlBn/RIGSn3QX2NqQ/pu1FyB/Tt77joH9iGvjaVjYcEBazxuli4G0FmSN qRHRwVLnUTZsxYT2LLNU5nAfb0YYULgyVxjc3rmXOa+gZbKKPkYrzBnDwF2f2iy9QkfiD+ bvJuDuwCdS5n2Rxat2PwL09yegnpLWQQYezvLiF4c/NhMcaPCinSzh5er6zjqg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fmmLx0m89z16yq for ; Thu, 02 Apr 2026 15:42:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 407c6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 02 Apr 2026 15:42:17 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kai Knoblich Subject: git: 4d8cc6ac90ac - main - games/anki: Remove py-mypy-protobuf from BUILD_DEPENDS List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kai X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4d8cc6ac90ac148a35ab285c7e52d7687771a6fc Auto-Submitted: auto-generated Date: Thu, 02 Apr 2026 15:42:17 +0000 Message-Id: <69ce8e59.407c6.68813761@gitrepo.freebsd.org> The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=4d8cc6ac90ac148a35ab285c7e52d7687771a6fc commit 4d8cc6ac90ac148a35ab285c7e52d7687771a6fc Author: Kai Knoblich AuthorDate: 2026-04-02 15:41:41 +0000 Commit: Kai Knoblich CommitDate: 2026-04-02 15:41:41 +0000 games/anki: Remove py-mypy-protobuf from BUILD_DEPENDS * Prevent type checking (via mypy and related) which generates mypi stub files (= .pyi) from protobuf specs because is isn't required from a downstream perspective. * Bump PORTREVISION due changed package contents. --- games/anki/Makefile | 4 +-- .../anki/files/patch-build_configure_src_python.rs | 32 ++++++++++++++++++++-- games/anki/pkg-plist | 24 ---------------- 3 files changed, 31 insertions(+), 29 deletions(-) diff --git a/games/anki/Makefile b/games/anki/Makefile index 4766fecb9c14..307a3c6e9601 100644 --- a/games/anki/Makefile +++ b/games/anki/Makefile @@ -1,6 +1,6 @@ PORTNAME= anki DISTVERSION= 25.09.2 -PORTREVISION= 5 +PORTREVISION= 6 # Don't forget to update ${_MY_BUILDHASH} if DISTVERSION changes CATEGORIES= games education python MASTER_SITES= LOCAL/kai/:yarncache @@ -22,7 +22,6 @@ BUILD_DEPENDS= protoc:devel/protobuf \ yarn:www/yarn \ ${PYTHON_PKGNAMEPREFIX}black>0:devel/py-black@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}mypy-protobuf>=1.21:devel/py-mypy-protobuf@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} LIB_DEPENDS= libzstd.so:archivers/zstd RUN_DEPENDS= lame:audio/lame \ @@ -116,7 +115,6 @@ pre-configure: # Create paths for the Python pseudo venv and link some binaries to it. ${MKDIR} ${WRKSRC}/out/pyenv/bin ${LN} -s ${PYTHON_CMD} ${WRKSRC}/out/pyenv/bin/python - ${LN} -s ${LOCALBASE}/bin/protoc-gen-mypy ${WRKSRC}/out/pyenv/bin/protoc-gen-mypy # Overview of the build process # diff --git a/games/anki/files/patch-build_configure_src_python.rs b/games/anki/files/patch-build_configure_src_python.rs index af1d0427fe17..17c4331568c3 100644 --- a/games/anki/files/patch-build_configure_src_python.rs +++ b/games/anki/files/patch-build_configure_src_python.rs @@ -18,9 +18,37 @@ The environment variables UV_NO_BUILD_ISOLATION=1 and UV_OFFLINE=1 are also required to run "uv" in offline mode and to make use of the Python packages outside of the pseudo-venv. ---- build/configure/src/python.rs.orig 2025-07-07 16:49:54 UTC +-- + +Also don't do type checking (via mypy and related) downstream. +Mypy-protobuf generates mypy stub files from protobuf specs and should +therefore be stripped. + +Obtained from: + +https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/anki/strip-type-checking-deps.patch + +--- build/configure/src/python.rs.orig 2025-09-17 06:50:13 UTC +++ build/configure/src/python.rs -@@ -119,11 +119,19 @@ impl BuildAction for BuildWheel { +@@ -81,9 +81,7 @@ impl BuildAction for GenPythonProto { + impl BuildAction for GenPythonProto { + fn command(&self) -> &str { + "$protoc $ +- --plugin=protoc-gen-mypy=$protoc-gen-mypy $ + --python_out=$builddir/pylib $ +- --mypy_out=$builddir/pylib $ + -Iproto $in" + } + +@@ -101,7 +99,6 @@ impl BuildAction for GenPythonProto { + .collect(); + build.add_inputs("in", &self.proto_files); + build.add_inputs("protoc", inputs![":protoc_binary"]); +- build.add_inputs("protoc-gen-mypy", inputs![":pyenv:protoc-gen-mypy"]); + build.add_outputs("", python_outputs); + } + +@@ -119,11 +116,19 @@ impl BuildAction for BuildWheel { impl BuildAction for BuildWheel { fn command(&self) -> &str { diff --git a/games/anki/pkg-plist b/games/anki/pkg-plist index c8062f6e20d3..0d42adaa6e49 100644 --- a/games/anki/pkg-plist +++ b/games/anki/pkg-plist @@ -287,52 +287,37 @@ share/man/man1/anki.1.gz %%DATADIR%%/anki/_rsbridge.so %%DATADIR%%/anki/_vendor/stringcase.py %%DATADIR%%/anki/ankihub_pb2.py -%%DATADIR%%/anki/ankihub_pb2.pyi %%DATADIR%%/anki/ankidroid_pb2.py -%%DATADIR%%/anki/ankidroid_pb2.pyi %%DATADIR%%/anki/ankiweb_pb2.py -%%DATADIR%%/anki/ankiweb_pb2.pyi %%DATADIR%%/anki/backend_pb2.py -%%DATADIR%%/anki/backend_pb2.pyi %%DATADIR%%/anki/browser.py %%DATADIR%%/anki/buildinfo.py %%DATADIR%%/anki/card_rendering_pb2.py -%%DATADIR%%/anki/card_rendering_pb2.pyi %%DATADIR%%/anki/cards.py %%DATADIR%%/anki/cards_pb2.py -%%DATADIR%%/anki/cards_pb2.pyi %%DATADIR%%/anki/collection.py %%DATADIR%%/anki/collection_pb2.py -%%DATADIR%%/anki/collection_pb2.pyi %%DATADIR%%/anki/config.py %%DATADIR%%/anki/config_pb2.py -%%DATADIR%%/anki/config_pb2.pyi %%DATADIR%%/anki/consts.py %%DATADIR%%/anki/db.py %%DATADIR%%/anki/dbproxy.py %%DATADIR%%/anki/deck_config_pb2.py -%%DATADIR%%/anki/deck_config_pb2.pyi %%DATADIR%%/anki/decks.py %%DATADIR%%/anki/decks_pb2.py -%%DATADIR%%/anki/decks_pb2.pyi %%DATADIR%%/anki/errors.py %%DATADIR%%/anki/exporting.py %%DATADIR%%/anki/find.py %%DATADIR%%/anki/foreign_data/__init__.py %%DATADIR%%/anki/foreign_data/mnemosyne.py %%DATADIR%%/anki/frontend_pb2.py -%%DATADIR%%/anki/frontend_pb2.pyi %%DATADIR%%/anki/generic_pb2.py -%%DATADIR%%/anki/generic_pb2.pyi %%DATADIR%%/anki/hooks.py %%DATADIR%%/anki/hooks_gen.py %%DATADIR%%/anki/httpclient.py %%DATADIR%%/anki/i18n_pb2.py -%%DATADIR%%/anki/i18n_pb2.pyi %%DATADIR%%/anki/image_occlusion_pb2.py -%%DATADIR%%/anki/image_occlusion_pb2.pyi %%DATADIR%%/anki/import_export_pb2.py -%%DATADIR%%/anki/import_export_pb2.pyi %%DATADIR%%/anki/importing/__init__.py %%DATADIR%%/anki/importing/anki2.py %%DATADIR%%/anki/importing/apkg.py @@ -343,16 +328,12 @@ share/man/man1/anki.1.gz %%DATADIR%%/anki/lang.py %%DATADIR%%/anki/latex.py %%DATADIR%%/anki/links_pb2.py -%%DATADIR%%/anki/links_pb2.pyi %%DATADIR%%/anki/media.py %%DATADIR%%/anki/media_pb2.py -%%DATADIR%%/anki/media_pb2.pyi %%DATADIR%%/anki/models.py %%DATADIR%%/anki/notes.py %%DATADIR%%/anki/notes_pb2.py -%%DATADIR%%/anki/notes_pb2.pyi %%DATADIR%%/anki/notetypes_pb2.py -%%DATADIR%%/anki/notetypes_pb2.pyi %%DATADIR%%/anki/py.typed %%DATADIR%%/anki/rsbackend.py %%DATADIR%%/anki/scheduler/__init__.py @@ -361,23 +342,18 @@ share/man/man1/anki.1.gz %%DATADIR%%/anki/scheduler/legacy.py %%DATADIR%%/anki/scheduler/v3.py %%DATADIR%%/anki/scheduler_pb2.py -%%DATADIR%%/anki/scheduler_pb2.pyi %%DATADIR%%/anki/search_pb2.py -%%DATADIR%%/anki/search_pb2.pyi %%DATADIR%%/anki/sound.py %%DATADIR%%/anki/stats.py %%DATADIR%%/anki/stats_pb2.py -%%DATADIR%%/anki/stats_pb2.pyi %%DATADIR%%/anki/statsbg.py %%DATADIR%%/anki/stdmodels.py %%DATADIR%%/anki/storage.py %%DATADIR%%/anki/sync.py %%DATADIR%%/anki/sync_pb2.py -%%DATADIR%%/anki/sync_pb2.pyi %%DATADIR%%/anki/syncserver.py %%DATADIR%%/anki/tags.py %%DATADIR%%/anki/tags_pb2.py -%%DATADIR%%/anki/tags_pb2.pyi %%DATADIR%%/anki/template.py %%DATADIR%%/anki/types.py %%DATADIR%%/anki/utils.py