pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/py-supervisor py-supervisor: updated to 4.1.0

branches:  trunk
changeset: 412243:d30f2be9bee1
user:      adam <>
date:      Mon Mar 02 20:33:30 2020 +0000

py-supervisor: updated to 4.1.0

- Fixed a bug on Python 3 only where logging to syslog did not work and
  would log the exception ``TypeError: a bytes-like object is required, not 'str'``
  to the main ``supervisord`` log file.

- Fixed a Python 3.8 compatibility issue caused by the removal of

- The ``meld3`` package is no longer a dependency.  A version of ``meld3``
  is now included within the ``supervisor`` package itself.

- Fixed a bug where ``supervisorctl tail <name> stdout`` would actually tail
  ``stderr``.  Note that ``tail <name>`` without the explicit ``stdout``
  correctly tailed ``stdout``.  The bug existed since 3.0a3 (released in

- Improved the warning message added in 4.0.3 so it is now emitted for
  both ``tail`` and ``tail -f``.

- CVE-2019-12105.  Documentation addition only, no code changes.  This CVE
  states that ``inet_http_server`` does not use authentication by default
  (`details <>`_).  Note that
  ``inet_http_server`` is not enabled by default, and is also not enabled
  in the example configuration output by ``echo_supervisord_conf``.  The
  behavior of the ``inet_http_server`` options have been correctly documented,
  and have not changed, since the feature was introduced in 2006.  A new
  `warning message <>`_
  was added to the documentation.

- Fixed an issue on Python 2 where running ``supervisorctl tail -f <name>``
  would fail with the message
  ``Cannot connect, error: <type 'exceptions.UnicodeEncodeError'>`` where it
  may have worked on Supervisor 3.x.  The issue was introduced in Supervisor
  4.0.0 due to new bytes/strings conversions necessary to add Python 3 support.
  For ``supervisorctl`` to correctly display logs with Unicode characters, the
  terminal encoding specified by the environment must support it.  If not, the
  ``UnicodeEncodeError`` may still occur on either Python 2 or 3.  A new
  warning message is now printed if a problematic terminal encoding is

- Fixed a bug where inline comments in the config file were not parsed
  correctly such that the comments were included as part of the values.
  This only occurred on Python 2, and only where the environment had an
  extra ``configparser`` module installed.  The bug was introduced in
  Supervisor 4.0.0 because of Python 2/3 compatibility code that expected
  a Python 2 environment to only have a ``ConfigParser`` module.

- Fixed an issue on Python 3 where an ``OSError: [Errno 29] Illegal seek``
  would occur if ``logfile`` in the ``[supervisord]`` section was set to
  a special file like ``/dev/stdout`` that was not seekable, even if
  ``logfile_maxbytes = 0`` was set to disable rotation.  The issue only
  affected the main log and not child logs.

- Support for Python 3 has been added.  On Python 3, Supervisor requires
  Python 3.4 or later.  Many thanks to Vinay Sajip, Scott Maxwell, Palm Kevin,
  Tres Seaver, Marc Abramowitz, Son Nguyen, Shane Hathaway, Evan Andrews,
  and Ethan Hann who all made major contributions to the Python 3 porting
  effort.  Thanks also to all contributors who submitted issue reports and
  patches towards this effort.

- Support for Python 2.4, 2.5, and 2.6 has been dropped.  On Python 2,
  Supervisor now requires Python 2.7.

- The ``supervisor`` package is no longer a namespace package.

- The behavior of the config file expansion ``%(here)s`` has changed.  In
  previous versions, a bug caused ``%(here)s`` to always expand to the
  directory of the root config file.  Now, when ``%(here)s`` is used inside
  a file included via ``[include]``, it will expand to the directory of
  that file.  Thanks to Alex Eftimie and Zoltan Toth-Czifra for the patches.

- The default value for the config file setting ``exitcodes=``, the expected
  exit codes of a program, has changed.  In previous versions, it was ``0,2``.
  This caused issues with Golang programs where ``panic()`` causes the exit
  code to be ``2``.  The default value for ``exitcodes`` is now ``0``.

- An undocumented feature where multiple ``supervisorctl`` commands could be
  combined on a single line separated by semicolons has been removed.

- ``supervisorctl`` will now set its exit code to a non-zero value when an
  error condition occurs.  Previous versions did not set the exit code for
  most error conditions so it was almost always 0.

- Added new ``stdout_syslog`` and ``stderr_syslog`` options to the config
  file.  These are boolean options that indicate whether process output will
  be sent to syslog.  Supervisor can now log to both files and syslog at the
  same time.  Specifying a log filename of ``syslog`` is still supported
  but deprecated.


 sysutils/py-supervisor/ALTERNATIVES |   4 ++
 sysutils/py-supervisor/Makefile     |  24 +++++++++-----
 sysutils/py-supervisor/PLIST        |  59 ++++++++++++++++++++++++++----------
 sysutils/py-supervisor/distinfo     |  10 +++---
 4 files changed, 67 insertions(+), 30 deletions(-)

diffs (191 lines):

diff -r 524e898e32d6 -r d30f2be9bee1 sysutils/py-supervisor/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/py-supervisor/ALTERNATIVES       Mon Mar 02 20:33:30 2020 +0000
@@ -0,0 +1,4 @@
+bin/echo_supervisord_conf @PREFIX@/bin/echo_supervisord_conf-@PYVERSSUFFIX@
+bin/pidproxy @PREFIX@/bin/pidproxy-@PYVERSSUFFIX@
+bin/supervisorctl @PREFIX@/bin/supervisorctl-@PYVERSSUFFIX@
+bin/supervisord @PREFIX@/bin/supervisord-@PYVERSSUFFIX@
diff -r 524e898e32d6 -r d30f2be9bee1 sysutils/py-supervisor/Makefile
--- a/sysutils/py-supervisor/Makefile   Mon Mar 02 17:07:58 2020 +0000
+++ b/sysutils/py-supervisor/Makefile   Mon Mar 02 20:33:30 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2019/01/08 09:42:26 adam Exp $
+# $NetBSD: Makefile,v 1.6 2020/03/02 20:33:30 adam Exp $
-DISTNAME=      supervisor-3.3.5
+DISTNAME=      supervisor-4.1.0
 CATEGORIES=    sysutils python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/supervisor/}
@@ -10,19 +10,25 @@
 COMMENT=       System for controlling process state under UNIX
 LICENSE=       original-bsd
-DEPENDS+=      ${PYPKGPREFIX}-meld3>=0.6.5:../../www/py-meld3
+.include "../../lang/python/"
+.if ${_PYTHON_VERSION} == 27
 TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
-# as of 3.3.1, explicitly only supports 2.x
 REPLACE_PYTHON+=       supervisor/scripts/*.py
 SUBST_CLASSES+=                python
+SUBST_STAGE.python=    pre-build
+SUBST_MESSAGE.python=  Fixing Python path.
+SUBST_FILES.python+=   supervisor/tests/fixtures/
+SUBST_FILES.python+=   supervisor/tests/fixtures/
 SUBST_SED.python+=     -e "s,<<PYTHON>>,${PYTHONBIN},"
-SUBST_FILES.python+=   supervisor/tests/fixtures/*.py
-SUBST_MESSAGE.python=  Fixing path to python.
-SUBST_STAGE.python=    pre-build
+.for bin in echo_supervisord_conf pidproxy supervisorctl supervisord
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
 .include "../../lang/python/"
 .include "../../lang/python/"
diff -r 524e898e32d6 -r d30f2be9bee1 sysutils/py-supervisor/PLIST
--- a/sysutils/py-supervisor/PLIST      Mon Mar 02 17:07:58 2020 +0000
+++ b/sysutils/py-supervisor/PLIST      Mon Mar 02 20:33:30 2020 +0000
@@ -1,20 +1,24 @@
-@comment $NetBSD: PLIST,v 1.1 2017/04/28 14:52:29 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/03/02 20:33:30 adam Exp $
@@ -66,18 +70,12 @@
@@ -124,6 +122,9 @@
@@ -131,9 +132,26 @@
@@ -149,12 +167,18 @@
@@ -182,6 +206,9 @@
diff -r 524e898e32d6 -r d30f2be9bee1 sysutils/py-supervisor/distinfo
--- a/sysutils/py-supervisor/distinfo   Mon Mar 02 17:07:58 2020 +0000
+++ b/sysutils/py-supervisor/distinfo   Mon Mar 02 20:33:30 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2019/01/08 09:42:26 adam Exp $
+$NetBSD: distinfo,v 1.6 2020/03/02 20:33:30 adam Exp $
-SHA1 (supervisor-3.3.5.tar.gz) = ac5c766e7446dbf2911bd080e11b6b93cf72738c
-RMD160 (supervisor-3.3.5.tar.gz) = 17a597a23d121f9c830a0104add78540d97e6a55
-SHA512 (supervisor-3.3.5.tar.gz) = 66c43d40c216e5c3120e083407c848295fa1e59d6d9da916a4bae5c37d4d13208c3bf7c0c8b8a5d570270eb44fac0b1bbcceddb2e84e4f3fc1b6241b43116af7
-Size (supervisor-3.3.5.tar.gz) = 421220 bytes
+SHA1 (supervisor-4.1.0.tar.gz) = 018a7250211f3a947f806be7fbe1ab6e9d639d35
+RMD160 (supervisor-4.1.0.tar.gz) = 1c3abbe97894c3ea946e48585736ae25f11ec69b
+SHA512 (supervisor-4.1.0.tar.gz) = 1ae343293707ebf33d0a0c0bda2c6cc78278e12737940a79e51b2365e7a20b07d9f5e50134ed2abbf8e7af1ebd8f1746002a159cde1cfc35e83fda0a77dae9c5
+Size (supervisor-4.1.0.tar.gz) = 459020 bytes

Home | Main Index | Thread Index | Old Index