ports/160435: [PATCH] sysutils/py-supervisor: eliminate py-elementtree dependency

Ruslan Mahmatkhanov cvs-src at yandex.ru
Sat Sep 3 19:50:07 UTC 2011


>Number:         160435
>Category:       ports
>Synopsis:       [PATCH] sysutils/py-supervisor: eliminate py-elementtree dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 03 19:50:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Mahmatkhanov
>Release:        9.0-BETA1
>Organization:
>Environment:
9.0-BETA1 i386
>Description:
This port actually don't use py-elementtree, this dep is needed only for www/py-meld3. You can grep for it and will found that the only functional mention of this is in setup.py:

"""
if sys.version_info[:2] < (2, 5):
    # for meld3 (it's a distutils package)
    requires.append('elementtree')
"""

So we can safely remove this two dependencies from this port:
- devel/py-elementtree
- devel/py-celementtree

But this needs to bump USE_PYTHON to 2.5+ (Python 2.4 is EOL anyway).
There is also ports/160304, that updates www/py-meld3 to latest version, that can work with python's elementtree too. 

elementtree is a part of python since 2.5, so this dependency isn't needed after we bump USE_PYTHON to 2.5+. See: http://docs.python.org/library/xml.etree.elementtree.html

While here fix some whitespace bugs in pkg-descr.

tag: dropelementtree
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruNa py-supervisor.orig/Makefile py-supervisor/Makefile
--- py-supervisor.orig/Makefile	2011-04-06 15:35:17.000000000 +0400
+++ py-supervisor/Makefile	2011-09-03 23:34:08.000000000 +0400
@@ -7,6 +7,7 @@
 
 PORTNAME=	supervisor
 PORTVERSION=	3.0a10
+PORTREVISION=	1
 CATEGORIES=	sysutils python
 MASTER_SITES=	http://dist.supervisord.org/ \
 		CHEESESHOP
@@ -15,11 +16,9 @@
 MAINTAINER=	hizel at vyborg.ru
 COMMENT=	System to monitor and control a number of processes on UNIX-like OS
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}elementtree>=1.2.6:${PORTSDIR}/devel/py-elementtree \
-		${PYTHON_PKGNAMEPREFIX}meld3>=0.6.4:${PORTSDIR}/www/py-meld3 \
-		${PYTHON_PKGNAMEPREFIX}cElementTree>=1.0.5:${PORTSDIR}/devel/py-celementtree
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}meld3>=0.6.4:${PORTSDIR}/www/py-meld3
 
-USE_PYTHON=	2.4+
+USE_PYTHON=	2.5+
 USE_PYDISTUTILS=	easy_install
 PIDDIR?=	/var/run/supervisor
 
diff -ruNa py-supervisor.orig/pkg-descr py-supervisor/pkg-descr
--- py-supervisor.orig/pkg-descr	2010-02-06 21:45:36.000000000 +0300
+++ py-supervisor/pkg-descr	2011-09-03 23:33:48.000000000 +0400
@@ -1,13 +1,12 @@
-Supervisor is a client/server system that allows its users 
-to monitor and control a number of processes on UNIX-like 
+Supervisor is a client/server system that allows its users
+to monitor and control a number of processes on UNIX-like
 operating systems.
 
-It shares some of the same goals of programs like launchd, 
-daemontools, and runit. Unlike some of these programs, it is 
-not meant to be run as a substitute for init as "process id 1". 
-Instead it is meant to be used to control processes related to 
-a project or a customer, and is meant to start like any 
+It shares some of the same goals of programs like launchd,
+daemontools, and runit. Unlike some of these programs, it is
+not meant to be run as a substitute for init as "process id 1".
+Instead it is meant to be used to control processes related to
+a project or a customer, and is meant to start like any
 other program at boot time.
 
-
 WWW: http://supervisord.org/


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list