Your message dated Fri, 17 Jan 2025 00:56:40 +0000
with message-id <e1tyafa-00fif2...@fasolo.debian.org>
and subject line Bug#1093002: fixed in rng-tools-debian 2.6
has caused the Debian Bug report #1093002,
regarding rng-tools-debian: systemd service fails instead of skipping
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 ow...@bugs.debian.org
immediately.)


-- 
1093002: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1093002
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: rng-tools-debian
Version: 2.5
Severity: grave

Dear Maintainers,

Thanks for adding a native systemd service!

I noticed that in an autopkgtest-build-qemu VM the service fails:

root@host:~# systemctl status --no-pager -l rng-tools-debian
× rng-tools-debian.service - Hardware RNG entropy gatherer daemon
(Debian variant)
     Loaded: loaded (/usr/lib/systemd/system/rng-tools-debian.service;
enabled; preset: enabled)
     Active: failed (Result: exit-code) since Tue 2025-01-14 12:58:55
UTC; 31s ago
 Invocation: 50bf1d4b6ec64387a27ea1a42c0be118
       Docs: man:rngd(8)
    Process: 441 ExecStart=/usr/share/rng-tools-debian/systemd-helper
start (code=exited, status=1/FAILURE)
   Mem peak: 1.7M
        CPU: 8ms

Jan 14 12:58:55 host systemd[1]: Starting rng-tools-debian.service -
Hardware RNG entropy gatherer daemon (Debian variant)...
Jan 14 12:58:55 host rng-tools-debian[450]: not starting: /dev/hwrng
is used by the kernel automatically
Jan 14 12:58:55 host systemd[1]: rng-tools-debian.service: Control
process exited, code=exited, status=1/FAILURE
Jan 14 12:58:55 host systemd[1]: rng-tools-debian.service: Failed with
result 'exit-code'.
Jan 14 12:58:55 host systemd[1]: Failed to start
rng-tools-debian.service - Hardware RNG entropy gatherer daemon
(Debian variant).

It looks like this is doing some checks, and intends to skip. But just
exiting means the service is recorded as failed, and this will likely
trip other tests, hence the severity to stop migrating to testing for
now.

There are several ways to do such checks natively _and_ resulting in a
service that is skipped, rather than failed.
You could run the script that does the check in an ExecCondition=
statement - if that fails, the service is marked as skipped.

https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#ExecCondition=

Or, you could have a special exit status that means the service is
marked as successful:

https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#SuccessExitStatus=

There might be other options as well, these are just the first that
came to mind.

--- End Message ---
--- Begin Message ---
Source: rng-tools-debian
Source-Version: 2.6
Done: Thorsten Glaser <t...@mirbsd.de>

We believe that the bug you reported is fixed in the latest version of
rng-tools-debian, 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 1093...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thorsten Glaser <t...@mirbsd.de> (supplier of updated rng-tools-debian 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

Format: 1.8
Date: Fri, 17 Jan 2025 01:04:37 +0100
Source: rng-tools-debian
Architecture: source
Version: 2.6
Distribution: unstable
Urgency: low
Maintainer: Thorsten Glaser <t...@mirbsd.de>
Changed-By: Thorsten Glaser <t...@mirbsd.de>
Closes: 1093002
Changes:
 rng-tools-debian (2.6) unstable; urgency=low
 .
   [ Sven Geuer ]
   * Rework d/rng-tools-debian.service and d/systemd-helper:
     - Switch service from Type=forking to Type=exec
     - Terminate the service cleanly in case it decides it cannot run
       (Closes: #1093002)
   * Rename systemd-helper to rngd-systemd-helper
     - Update d/rng-tools-debian.install and d/rng-tools-debian.service for
       referencing the renamed file
   * d/t/*: Adapt autopkgtests to the changes listed above
   * configure.ac: Bump version to 2.6
 .
   [ Thorsten Glaser ]
   * Update autopkgtests restrictions
   * Tell lintian
Checksums-Sha1:
 76617c6df0aaeaccf8e3a935866323711f87eaf5 1761 rng-tools-debian_2.6.dsc
 a1d9b54489c6306986ff4aaf5608f9a19f79f68d 56064 rng-tools-debian_2.6.tar.xz
Checksums-Sha256:
 1a4499b455db2b38904fafd03dd4d86ec65b0f5e3c2528e1d8464759c5fb8a2c 1761 
rng-tools-debian_2.6.dsc
 677f4fe861f1281b0bd029ef6905c9506988b2eb1b3a6cea2e8bd7c145cfe69a 56064 
rng-tools-debian_2.6.tar.xz
Files:
 4d469f925b7959aed0532c855338f35f 1761 utils optional rng-tools-debian_2.6.dsc
 78e8c08a67b6e6b0ef484d4ba4f2b143 56064 utils optional 
rng-tools-debian_2.6.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (MirBSD)

iQIcBAEBCQAGBQJniZ8lAAoJEHa1NLLpkAfg1FIP/2x/Baey4qI9U5zo2oln9KbJ
pR0VF35OdF94bGKEmstEDWxPui534DW6Q3MfK1UsIS1wAgUDvEKKAM0Sb1PQW0g2
/Rfqgqq4uNjRrlA8B13wP81LySNBA6ppD3R9gmF5QRFyB4G34QslcDhS2HzUFwFp
Pzs0/CxePDTAxqUF5Rc3m+UxrOs99uf0B8FOFwnDAAp8XcqQtk8SfWR+7L/qhVHl
62OplduiqByDFIAucXbQBCSgpCpuLMSzs4WgDDVNQczoilxtP9X4qsWeYIOrylNK
hea1TDsKQAyw/XA04EscnqvtZ3qZIqJJ5HAYtFT4H9eWlR7AJVGhurBOl1VkmMy4
QYjvnpSvt3ZX6eJQm3YfD3dCyPF0lArcapsFeB4qfU3qQJ+oEsKKjG93Jqkma4Ly
tKtQVRiq/G6g81DcTGGyrOgmEL/KySVTyHw+S1ukbJQJRfDSsIRH4UMNtYJFdi5i
FxIuJ+wE8uSmEUU/sYiCXOy4O/AWb17r0/jlh/h7f6UaHmgG5J85VRxbhhfTsBQA
6DOKZ15yvJTWJpa5n86AJFPHqC9f0+cUUtASxNL3zCIJUMyBuhLr1UTwlFRXyYFS
L2IJohyM2T3VTjZFN8BP2rcG0/lnCwNfdUDW5Y5clBDA5khAJOD/hSoDZD7yACP2
p3PaYpAXeczUQ9VEvhAB
=WjqH
-----END PGP SIGNATURE-----

Attachment: pgpmPnXrUfIaP.pgp
Description: PGP signature


--- End Message ---

Reply via email to