🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #647

Bug#1148135: Debian NEW review of yarf 3.24.22+ds-1: ACCEPTED

#647
From: awm
Date: Tue, 13 Oct 2026 02:40
53 lines
4109 bytes
This is an automated message from the Debian DFSG, Licensing & New
Packages Team.

The Debian NEW review of yarf 3.24.22+ds-1 has been completed.

Decision: ACCEPTED
Reviewer: Andrew McMillan

Review comment:

Hi,

A couple of issues you should perhaps look at...

1. [important] [packaging] Cursor-detection keyword is broken: the ONNX model it loads was excluded from the source and is not documented

 - Files: `yarf/rf_libraries/libraries/image/cursor_detector.py`, `debian/copyright`, `debian/README.Debian`
 - Evidence: `_MODEL_PATH = Path(__file__).parent / "yolo26_mouse_detector.onnx"` followed by `self._session = ort.InferenceSession(str(_MODEL_PATH))`; `Files-Excluded: */yarf/rf_libraries/libraries/image/yolo26_mouse_detector.onnx`; README.Debian documents only the RapidOCR→Tesseract swap.
 - Problem: The repack excludes the YOLO ONNX weights (presumably for license/provenance reasons), but no file in the tree is left at `yolo26_mouse_detector.onnx`, and `CursorDetector.__init__` unconditionally asks onnxruntime to open it. Using the shipped 'Find Cursor Position' keyword therefore raises FileNotFoundError at runtime instead of degrading gracefully, and nothing in README.Debian or the manpage tells the user this feature is absent.
 - Fix: Either ship the model if its license permits (and add a stanza for it), or make CursorDetector handle the missing file (return None / raise a clear error) and explicitly document the absent model and the broken keyword in README.Debian.

2. [minor] [packaging] Installed module version (3.24.21) does not match the package version (3.24.22+ds)

 - Files: `debian/patches/0001-Set-project-version.patch`
 - Evidence: The patch sets `version = "3.24.21"` in pyproject.toml while debian/changelog and the .dsc are `3.24.22+ds-1`.
 - Problem: The wheel's metadata is built from that version, and main.py computes `YARF_VERSION = version.parse(metadata.version("yarf"))`, so `yarf` will report 3.24.21 and the `yarf:version:` tags in suites compare against the wrong number. A user (or tooling) checking versions gets a value inconsistent with the installed package version.
 - Fix: Set the version in patch 0001 to `3.24.22` to match the source package version (or state plainly that 3.24.21 is deliberate and why).


Thanks!

Full review details: https://dfsg-new-queue.debian.org/reviews/yarf
Technical Details
Message-ID: <NNAAO-5buX-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NEjzb-8fg-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: <awm@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1148135: Debian NEW review of yarf 3.24.22+ds-1: ACCEPTED
Date: Tue, 13 Oct 2026 04:40:02 +0200
Message-ID: <NNAAO-5buX-7@gated-at.bofh.it>
References: <NEjzb-8fg-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Oct 13 02:33:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.203
Reply-To: <awm@debian.org>, 1148135@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: wnpp@debian.org
X-Debian-Pr-Message: followup 1148135
X-Debian-Pr-Package: wnpp
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996484
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
List-Archive: https://lists.debian.org/msgid-search/debian-bugs-dist
Approved: robomod@news.nic.it
Lines: 53
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: <1148135@bugs.debian.org>
X-Original-Date: Tue, 13 Oct 2026 02:31:32 +0000
X-Original-Message-ID: <cxCv6VLG7SK.A.FgyK.khZzqB@bendel>
X-Original-References: <178964843682.81135.15109403404175642845.reportbug@debian>