Your message dated Sun, 23 Jul 2023 09:00:16 +0000
with message-id <[email protected]>
and subject line Bug#918143: fixed in python-daemon 3.0.1-1
has caused the Debian Bug report #918143,
regarding python3-daemon: DaemonRunner.__init__ failing with Python3 when 
opening stderr
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
918143: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918143
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-daemon
Version: 2.1.2-2
Severity: important
Tags: upstream patch

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

Packaging zfs-snap-manager.  Uses DaemonRunner to fork into background.
Problem with openning stderr in DaemonRunner.__init__ . With Python3
buffering argument to open() should be set to 1 for line buffering.

This class fails to work with Python3, rendering this package mostly
unusable. 


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.12-amd64-mag (SMP w/8 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_NZ:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-daemon depends on:
ii  python3                3.7.1-3
ii  python3-lockfile       1:0.12.2-2
ii  python3-pkg-resources  40.6.2-1

python3-daemon recommends no packages.

python3-daemon suggests no packages.

-- no debconf information
Index: python-daemon-2.1.2/daemon/runner.py
===================================================================
--- python-daemon-2.1.2.orig/daemon/runner.py
+++ python-daemon-2.1.2/daemon/runner.py
@@ -37,6 +37,9 @@ from .daemon import (basestring, unicode
 from .daemon import DaemonContext
 from .daemon import _chain_exception_from_existing_exception_context
 
+# Sort out buffering constant for open()
+BUFFERING = (1 if sys.version_info.major >= 3 else 0)
+
 
 class DaemonRunnerError(Exception):
     """ Abstract base class for errors from DaemonRunner. """
@@ -110,7 +113,7 @@ class DaemonRunner:
         self.daemon_context.stdin = open(app.stdin_path, 'rt')
         self.daemon_context.stdout = open(app.stdout_path, 'w+t')
         self.daemon_context.stderr = open(
-                app.stderr_path, 'w+t', buffering=0)
+                app.stderr_path, 'w+t', buffering=BUFFERING)
 
         self.pidfile = None
         if app.pidfile_path is not None:

--- End Message ---
--- Begin Message ---
Source: python-daemon
Source-Version: 3.0.1-1
Done: Ben Finney <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-daemon, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ben Finney <[email protected]> (supplier of updated python-daemon package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 22 Jul 2023 11:56:52 +1000
Source: python-daemon
Binary: python-daemon-doc python3-daemon
Architecture: source all
Version: 3.0.1-1
Distribution: unstable
Urgency: medium
Maintainer: Ben Finney <[email protected]>
Changed-By: Ben Finney <[email protected]>
Description:
 python-daemon-doc - library for making a Unix daemon process — documentation
 python3-daemon - library for making a Unix daemon process — Python 3
Closes: 918143
Changes:
 python-daemon (3.0.1-1) unstable; urgency=medium
 .
   * The “Marco Tondat” release.
   * New upstream version.
     Highlights since previous release:
     * Speed up calculation, at daemon start, of file descriptor ranges.
     * Remove the obsolete `runner` module.
       Closes: bug#918143.
     * Migrate package version handling to use Setuptools API.
     * Remove build options deprecated by PyPA.
   * Build using upstream PEP-518 specification.
   * Refresh patches for upstream changes.
   * Install upstream example files in a documentation package.
Checksums-Sha1:
 980a86a5f7b86dbd367a52f047aaa73dcc9840db 2216 python-daemon_3.0.1-1.dsc
 c81fdf7985b6117bbddbcc6cef38819819f5107e 81337 python-daemon_3.0.1.orig.tar.gz
 61a90265f1f003867ef19b0ebc501951c58e94e0 31396 
python-daemon_3.0.1-1.debian.tar.xz
 8fc2b7d43261c35ccd0d5a3588cb1b033a0f5bba 13592 
python-daemon-doc_3.0.1-1_all.deb
 e7c61449e503a7cd787c33f9c31dd9b92fd0f7bd 9397 
python-daemon_3.0.1-1_amd64.buildinfo
 5680dc88532285da9a452084bd0341f8cf4cf0c7 22476 python3-daemon_3.0.1-1_all.deb
Checksums-Sha256:
 a6130176b96796c3edefb1ca37b04980cb6785a8d1b2d5d5b8ce9cfe35d43631 2216 
python-daemon_3.0.1-1.dsc
 6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5 81337 
python-daemon_3.0.1.orig.tar.gz
 19628deff7182b8c0d3e11688fd2e45cb8ca442a73eb6b9392df25ed492ff7f0 31396 
python-daemon_3.0.1-1.debian.tar.xz
 efa4e4f7df98af33725adc683bec90b4d6b87fb24e5baf19bb0368414d0bb3c0 13592 
python-daemon-doc_3.0.1-1_all.deb
 fe6189fdb90e7933298e2f9fcc3b21afb46cb57b83e4733723994ff43500133a 9397 
python-daemon_3.0.1-1_amd64.buildinfo
 b94ed17ea2315b55bbc0c3710b10115335ef2ad379d0f8e5cd5524fa58b98e96 22476 
python3-daemon_3.0.1-1_all.deb
Files:
 95a305a30291c28a1b8edc96f875980a 2216 python optional python-daemon_3.0.1-1.dsc
 4c369b8c6d3de956d8f9dfb2c872c284 81337 python optional 
python-daemon_3.0.1.orig.tar.gz
 8fbbc1cc8a3d2f61dde05d18be2cae95 31396 python optional 
python-daemon_3.0.1-1.debian.tar.xz
 a1360a620052f2c0bc6745cd48e5cd6e 13592 doc optional 
python-daemon-doc_3.0.1-1_all.deb
 f4ca4657c187d0189df1651e470a9f40 9397 python optional 
python-daemon_3.0.1-1_amd64.buildinfo
 202b149f578a81e26ebf103e1d3c18b0 22476 python optional 
python3-daemon_3.0.1-1_all.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEYVng8p4vpBLgeVxz+bRqrIRCDIIFAmS7SS0ACgkQ+bRqrIRC
DIIaIBAAiPTfsACpmi7BRBtNWv1X9dCIlfmvdrBzhHnD/vy1PIsWMIrzopyyLJ2Y
UWJWfyASeoiPKICN0xKB09LCBQg5x7yvxEdHakchYJz9EFJRcTRseI78hgWW/FOB
C/SGqhQec3eJSVEaTe5w/HTbbOvCsvvBalaA9TM7LBqq3qOexvOudkpyvulJzunv
a8iUporR8zQ4SEFLUna86y5ohIlQLgMQ7FeNEfV7eMcvgFnUY/MLjKLcqlgYSzrc
nrarXAQhg115RjhFPRonYGV4J9IDltD/xpJ/6gZ/c2erKRUxHBN3PvdvPl97Roea
f6BJYYHPegrz1m5bNW3zYdll4qOaYSkvYqmP3Ox1HdtBNEXFpDxiYEbM53F4ktXC
nIaRaLBkipjBzKbnD1Rcpt04aVRN35fd4zzvHwHE9A13oAM2a/IIvqVh0hu2hPjc
Hocv0BG7KAKRICe3kpjXFAO3PZy7Ra3mH/wamUOhk4UczJFnES5oBmCY7iFAmTNk
a+GlbErPCvcN/d/vvBlAZStHh8OZJRYmX5s83fKt/vupMDJYBuDnTexzIW1qHnnB
Pal4yM97iwhd2C9SD+5Bhblg8v7LE45GHR3bsdcrLQkNnsPGzLEHXGELsjXkJDBo
TU90HZc8qWESL6iVm98P03DDhhLQEiUhX2TtfWiOH++H1l7WigE=
=ZpzS
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to