On Monday, March 17th, 2025 at 11:56 AM, Stuart Henderson 
<s...@spacehopper.org> wrote:

> On 2025/03/16 21:23, open...@systemfailure.net wrote:
> 
> > On 2025/03/14 14:13, Aaron Bieber aa...@bolddaemon.com wrote:
> > 
> > > Hi,
> > > 
> > > Here are updates to the Reticulum stack. Nomadnet runs fine for me.
> > > 
> > > I'll probably commit this today or tomorrow if I no one objects.
> > > 
> > > Cheers,
> > > Aaron
> > 
> > Hi, thanks for updating these ports.
> > 
> > py-rns-0.9.3 works fine, as far as I tested, but 'make test' fails: see the 
> > attached log file.
> > 
> > Moreover, it would be very useful to include a README for people wanting to 
> > use rnodeconf, since its usage on OpenBSD is not documented anywhere. Patch 
> > attached.
> > 
> > Best regards.
> 
> 
> Here's a tiny tweak to your Makefile diff (tabs not spaces), and fix
> tests if cython is present when they're run.

Thank you Stuart, 'make test' can now be run with your fix.

However, to make tests pass (at least most of them), I had to reintroduce 
another fix you submitted previously (the "pre-test" trick), that was forgotten 
by Aaron.

With the attached patch, all tests are passing except one - the one that was 
already failing. The port is running fine anyway.

Best regards.
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/py-rns/Makefile,v
diff -u -p -r1.2 Makefile
--- Makefile	15 Mar 2025 00:40:00 -0000	1.2
+++ Makefile	17 Mar 2025 16:38:07 -0000
@@ -3,6 +3,7 @@ COMMENT =		cryptography-based networking
 MODPY_DISTV =		0.9.3
 DISTNAME=		rns-${MODPY_DISTV}
 PKGNAME =		py-${DISTNAME}
+REVISION =		0
 
 CATEGORIES =		net devel
 
@@ -18,9 +19,14 @@ MODULES =		lang/python
 MODPY_PI =		Yes
 MODPY_PYBUILD =		setuptools
 
+# writes to $HOME if cython is installed
+PORTHOME =		${WRKDIR}
 MODPY_PYTEST_ARGS =	-v tests/all.py
 
 RUN_DEPENDS =		devel/py-serial \
 			security/py-cryptography
+
+pre-test:
+			ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/py-rns/pkg/PLIST,v
diff -u -p -r1.2 PLIST
--- pkg/PLIST	15 Mar 2025 00:40:00 -0000	1.2
+++ pkg/PLIST	17 Mar 2025 16:38:07 -0000
@@ -274,3 +274,4 @@ lib/python${MODPY_VERSION}/site-packages
 lib/python${MODPY_VERSION}/site-packages/rns-${MODPY_DISTV}.dist-info/WHEEL
 lib/python${MODPY_VERSION}/site-packages/rns-${MODPY_DISTV}.dist-info/entry_points.txt
 lib/python${MODPY_VERSION}/site-packages/rns-${MODPY_DISTV}.dist-info/top_level.txt
+share/doc/pkg-readmes/${PKGSTEM}
Index: pkg/README
===================================================================
RCS file: pkg/README
diff -N pkg/README
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ pkg/README	17 Mar 2025 16:38:07 -0000
@@ -0,0 +1,25 @@
++-----------------------------------------------------------------------
+| Running ${PKGSTEM} on OpenBSD
++-----------------------------------------------------------------------
+
+Connect to RNodes with rnodeconf
+================================
+
+The rnodeconf utility can control, configure and provision RNodes
+attached as USB serial devices.
+
+To access an RNode over USB, the user must be in the dialer group:
+
+	usermod -G dialer <user>
+
+The corresponding virtual device will most often be /dev/cuaU0. See
+cua(4) for explanations.
+
+For example, you could get info about your RNode by running:
+
+	rnodeconf --info /dev/cuaU0
+
+Please note that to create a new RNode with an nRF52-based device, like
+the RAK4631 or LilyGO T-Echo, rnodeconf requires the python
+adafruit-nrfutil package, which is not yet included in OpenBSD ports,
+but can be installed from PyPI.

Reply via email to