Hello,

Here's an update for net/py3-rns (patch attached). Version 0.9.2 is a 
maintenance release, fixing several bugs: 
https://github.com/markqvist/Reticulum/releases/tag/0.9.2

I included a very simple patch for 'make test' to run (since 'make test' was 
calling 'python' instead of 'python3'). All tests are passing except one (error 
message also attached). I'm not able yet to understand why, but oddly enough 
this test case fails on -current and passes on -stable. The port seems to run 
fine anyway, both on -current and -stable (tested on amd64).

Regards.
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/py-rns/Makefile,v
diff -u -p -r1.1.1.1 Makefile
--- Makefile	28 Jan 2025 01:42:10 -0000	1.1.1.1
+++ Makefile	20 Feb 2025 21:24:20 -0000
@@ -1,6 +1,6 @@
 COMMENT =		cryptography-based networking stack
 
-MODPY_DISTV =		0.9.1
+MODPY_DISTV =		0.9.2
 DISTNAME=		rns-${MODPY_DISTV}
 PKGNAME =		py-${DISTNAME}
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/py-rns/distinfo,v
diff -u -p -r1.1.1.1 distinfo
--- distinfo	28 Jan 2025 01:42:10 -0000	1.1.1.1
+++ distinfo	20 Feb 2025 21:24:20 -0000
@@ -1,2 +1,2 @@
-SHA256 (rns-0.9.1.tar.gz) = bs7KkVeexb7Uoe6OniNIx06/bkerRlMLuu6HsYhnKx4=
-SIZE (rns-0.9.1.tar.gz) = 17555908
+SHA256 (rns-0.9.2.tar.gz) = mOK1ESQq3kjLqCtUJzDzCS62rKxVE5tFkuhUKwACVvo=
+SIZE (rns-0.9.2.tar.gz) = 17556262
Index: patches/patch-test_fix_python_command
===================================================================
RCS file: patches/patch-test_fix_python_command
diff -N patches/patch-test_fix_python_command
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-test_fix_python_command	20 Feb 2025 21:24:20 -0000
@@ -0,0 +1,13 @@
+Fix python command run for tests
+Index: tests/link.py
+--- tests/link.py.orig
++++ tests/link.py
+@@ -27,7 +27,7 @@ fixed_keys = [
+ BUFFER_TEST_TARGET = 32000
+ 
+ def targets_job(caller):
+-    cmd = "python -c \"from tests.link import targets; targets()\""
++    cmd = "python3 -c \"from tests.link import targets; targets()\""
+     print("Opening subprocess for "+str(cmd)+"...", RNS.LOG_VERBOSE)
+     ppath = os.getcwd()
+ 
=================================== FAILURES ===================================
__________________ TestChannel.test_send_receive_message_test __________________

self = <tests.channel.TestChannel testMethod=test_send_receive_message_test>

    def test_send_receive_message_test(self):
        print("Channel test send and receive message")
        message = MessageTest()

        def check(rx_message: MessageBase):
            self.assertIsInstance(rx_message, message.__class__)
            self.assertEqual(message.id, rx_message.id)
            self.assertEqual(message.data, rx_message.data)
            self.assertNotEqual(message.not_serialized, 
rx_message.not_serialized)

>       self.eat_own_dog_food(message, check)

tests/channel.py:384:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/channel.py:339: in eat_own_dog_food
    self.assertEqual(1, envelope.tries)
E   AssertionError: 1 != 2
----------------------------- Captured stdout call -----------------------------

Channel test send and receive message
=========================== short test summary info ============================
FAILED tests/all.py::TestChannel::test_send_receive_message_test - AssertionE...
=================== 1 failed, 32 passed, 1 skipped in 53.66s ===================
*** Error 1 in . (/usr/ports/lang/python/python.port.mk:397 'do-test': @ cd 
/usr/ports/pobj/py-rns-0.9.2/rns-0.9.2 && /usr/bin/env -i CC=cc ...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3098 
'/usr/ports/pobj/py-rns-0.9.2/.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.2;  
export _LOCKS_HELD=" py3-r...)

Reply via email to