On 2010/10/19 08:56, Jim Razmus wrote: > I recommend you submit your patch to the tentakel project. We _could_ > put it in the ports tree, but upstream is better in my opinion.
It's dead upstream, they recommend using gsh instead. These warnings mean "this port will be broken with a future update to python" - the problems should be fixed rather than just hiding the warnings. Tasmanian Devil wrote: > > Since the upgrade to Python 2.6 sysutils/tentakel shows these warnings > > above the usual output: > > > > /usr/local/lib/python2.6/site-packages/lekatnet/config.py:55: > > DeprecationWarning: The popen2 module is deprecated. Use the > > subprocess module. > > import popen2 > > /usr/local/lib/python2.6/site-packages/lekatnet/plugins/rsh.py:29: > > DeprecationWarning: the md5 module is deprecated; use hashlib instead > > import md5 Not sure how to adapt popen2, they are doing this: p = Popen3(cmd, capturestderr=True) Maybe someone with time can look at the notes in "pydoc2.6 subprocess" and work it out. For md5, since we don't have to worry about Python 2.4, we can just do this: Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/tentakel/Makefile,v retrieving revision 1.12 diff -u -p -r1.12 Makefile --- Makefile 19 Oct 2010 07:43:03 -0000 1.12 +++ Makefile 19 Oct 2010 13:15:41 -0000 @@ -3,7 +3,7 @@ COMMENT= distributed command execution DISTNAME= tentakel-357 -REVISION = 1 +REVISION = 2 CATEGORIES= sysutils MAINTAINER= Sebastian Stark <s...@todesplanet.de> HOMEPAGE= http://tentakel.biskalar.de/ Index: patches/patch-py_lekatnet_plugins_rsh_py =================================================================== RCS file: patches/patch-py_lekatnet_plugins_rsh_py diff -N patches/patch-py_lekatnet_plugins_rsh_py --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-py_lekatnet_plugins_rsh_py 19 Oct 2010 13:15:46 -0000 @@ -0,0 +1,12 @@ +$OpenBSD$ +--- py/lekatnet/plugins/rsh.py.orig Tue Oct 19 14:14:38 2010 ++++ py/lekatnet/plugins/rsh.py Tue Oct 19 14:14:48 2010 +@@ -26,7 +26,7 @@ from lekatnet.remote import registerRemoteCommandPlugi + from lekatnet.remote import RemoteCommand + import time + import random +-import md5 ++from hashlib import md5 + + class RSHRemoteCommand(RemoteCommand): + "RSH remote execution class"