From: Edd Barrett Subject: NEW: net/offpunk To: ports@openbsd.org Date: Wed, 9 Sep 2026 22:38:52 +0100 Hi all, Here's a preliminary port of offpunk. pkg/DESCR: ``` Offpunk allows you to browse the Web, Gemini, Gopher and subscribe to RSS feeds without leaving your terminal and while being offline. ``` All appears to be working fine apart from the tests: ``` _________________ ERROR collecting tests/geminiclient_test.py __________________ tests/geminiclient_test.py:2: in from offpunk import GeminiClient offpunk.py:21: in import ansicat ansicat.py:15: in import netcache netcache.py:20: in import offutils offutils.py:141: in output = run(CMDS["less"] + " --version") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ offutils.py:76: in run result = subprocess.run( ../../../lib/python3.14/subprocess.py:578: in run raise CalledProcessError(retcode, process.args, E subprocess.CalledProcessError: Command 'less --version' returned non-zero exit status 1. ``` Their code plans on scraping a version number from the forst line of the output of `less --version`. It won't find one on OpenBSD, but it should fall back on safe defaults. ``` $ less --version less (OpenBSD) (POSIX regular expressions) Copyright (C) 1984-2012 Mark Nudelman Modified for use with illumos by Garrett D'Amore. Copyright 2014 Garrett D'Amore less comes with NO WARRANTY, to the extent permitted by law. For information about the terms of redistribution, see the file named README in the less distribution. Homepage: https://www.greenwoodsoftware.com/less $ echo $? 0 ``` Running the tests outside of the ports tree (i.e. cloning the sources, `uv sync`, `uv add --dev pytest-mock`, `uv run pytest`) and the tests all pass. Suggests this is something to do with the ports infra, but it's beating me. Any ideas? -- Best Regards Edd Barrett https://www.theunixzoo.co.uk