Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2012 22:19:05 +1100
From:      Kubilay Kocak <koobs.freebsd@gmail.com>
To:        bug-followup@freebsd.org
Cc:        Ildar Hizbulin <hizel@vyborg.ru>, Ruslan Mahmatkhanov <cvs-src@yandex.ru>, freebsd-python@FreeBSD.org
Subject:   Re: ports/172851: [PATCH] sysutils/py-supervisor: update to 3.0b1 + OPTIONS + more
Message-ID:  <50813729.1030306@gmail.com>
In-Reply-To: <201210181220.q9ICK2nl063740@freefall.freebsd.org>
References:  <201210181220.q9ICK2nl063740@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------070209040103050804010109
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Updated patch against the latest py-supervisor commit attached:

- Update minimum required py-meld3 version
- Use TEST_DEPENDS for tinderbox builds
- Add OPTIONS for unit tests
- Add regression-test target

====[QA]====
portlint: WARN: possible use of absolute pathname
porttest: OK
unittest: Ran 718 tests in 2.883s - FAILED (failures=1)

     Note: Failure is due to host in DST (reported upstream)
     https://github.com/Supervisor/supervisor/issues/155

redports: https://redports.org/buildarchive/20121019081455-33633/

     Note: All redports builds include regression-test run - OK
============

--------------070209040103050804010109
Content-Type: text/plain; charset=windows-1252;
 name="py-supervisor.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="py-supervisor.patch"

===> Generating patch
===> Viewing diff with more
diff -ruN --exclude=CVS /usr/ports/sysutils/py-supervisor/Makefile ./Makefile
--- /usr/ports/sysutils/py-supervisor/Makefile	2012-10-18 21:05:15.000000000 +1100
+++ ./Makefile	2012-10-19 19:10:37.000000000 +1100
@@ -10,7 +10,19 @@
 MAINTAINER=	hizel@vyborg.ru
 COMMENT=	System to monitor and control a number of processes on UNIX-like OS
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}meld3>=0.6.4:${PORTSDIR}/www/py-meld3
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}meld3>=0.6.5:${PORTSDIR}/www/py-meld3
+TEST_DEPENDS:=	${RUN_DEPENDS} \
+		${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
+
+OPTIONS_DEFINE=	TESTS
+TESTS_DESC=	Install mock for running unit tests
+OPTIONSFILE?=	${PORT_DBDIR}/py-${PORTNAME}/options
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MTESTS}
+BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
+.endif
 
 PORTDOCS=	*.txt *.rst
 
@@ -37,4 +49,7 @@
 .endfor
 .endif
 
+regression-test: build
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/sysutils/py-supervisor/py-supervisor.patch ./py-supervisor.patch
--- /usr/ports/sysutils/py-supervisor/py-supervisor.patch	1970-01-01 10:00:00.000000000 +1000
+++ ./py-supervisor.patch	2012-10-19 22:12:31.000000000 +1100
@@ -0,0 +1 @@
+===> Generating patch
===> Done

--------------070209040103050804010109--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50813729.1030306>