On Tuesday, January 21th, 2025 at 9:54 PM, Aaron Bieber <aaron@bolddaemon.com> wrote:
> Hi!
>
> Here is a set of packages that bring Reticulum to the ports tree.
> Reticulum is a framework
> for building networks (think meshtastic but with way more capabilities).
>
> rns is the core of it all, it creates the base infrastructure.
> lxmf is used for creating chat-like messaging systems via rns
> nomadnet is a communication.. tool. It has chat, web browser like
> abilities (over rns) and
> a network viewer.
>
> More info here: https://reticulum.network/
>
> rnsd can run as a standalone daemon, so eventually I want to include a
> rc script for it.
> ATM I just use nomadnet which fires off rnsd magically.
>
> Any cluesticks? OKs?
>
> Cheers,
> Aaron
Thank you for bringing Reticulum to OpenBSD 👍
I was able to build all three ports on amd64 and perform some basic tests (I'm still just learning the basics of Reticulum).
However I changed MODPY_DISTV in your Makefiles to build newer versions of py-lxmf (0.6.1) and nomadnet (0.6.0). According to its changelog, the latest release of LXMF "significantly improves memory consumption on propagation nodes" (https://github.com/markqvist/LXMF/releases/tag/0.6.1).
For all three ports, 'make test' fails with the same error (I didn't investigate further):
===> py3-rns-0.9.1 depends on: py3-serial-* -> py3-serial-3.4p8
===> py3-rns-0.9.1 depends on: py3-cryptography-* -> py3-cryptography-44.0.0p0
===> py3-rns-0.9.1 depends on: py3-test-* -> py3-test-8.3.4p0
===> Regression tests for py3-rns-0.9.1
============================= test session starts ==============================
platform openbsd7 -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0
rootdir: /usr/ports/pobj/py-rns-0.9.1/rns-0.9.1
collected 0 items
============================ no tests ran in 0.08s =============================
*** Error 5 in . (/usr/ports/lang/python/python.port.mk:393 'do-test': @ cd /usr/ports/pobj/py-rns-0.9.1/rns-0.9.1 && /usr/bin/env -i CC=cc ...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3098 '/usr/ports/pobj/py-rns-0.9.1/.test_done': @cd /usr/ports/net/py-rns && exec...)
*** Error 2 in /usr/ports/net/py-rns (/usr/ports/infrastructure/mk/bsd.port.mk:2712 'test': @lock=py3-rns-0.9.1; export _LOCKS_HELD=" py3-r...)
BTW I had to install a LOT of packages to run 'make test'. I guess these packages should be added to TEST_DEPENDS in the Makefiles?
'make port-lib-depends-check' and portcheck were happy.
The programs I tested seem to run fine, however the first time I ran rnpath and rnprobe, they failed with this error message:
Fatal Python error: _enter_buffered_busy: could not acquire lock for <_io.BufferedWriter name='<stdout>'>
at interpreter shutdown, possibly due to daemon threads
Python runtime state: finalizing (tstate=0x00000b6b28ee52b0)
Current thread 0x00000b6b43d9d7f0 (most recent call first):
<no Python frame>
Extension modules: _cffi_backend (total: 1)
Abort trap (core dumped)
When I ran them again after that, they worked normally 🤔
Best regards.
No comments:
Post a Comment