Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by awm
Tue, 13 Oct 2026 02:40
Bug#1148135: Debian NEW review of yarf 3.24.22+ds-1: ACCEPTED
Author: awm
Date: Tue, 13 Oct 2026 02:40
Date: Tue, 13 Oct 2026 02:40
53 lines
4109 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads