Your message dated Thu, 18 Jun 2020 04:48:55 +0000
with message-id <[email protected]>
and subject line Bug#960564: fixed in usbauth 1.0.2-2
has caused the Debian Bug report #960564,
regarding usbauth: autopkgtest fails on Ubuntu
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.)


-- 
960564: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960564
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: usbauth
Version: 1.0.2-1
Severity: normal
Tags: patch

On Ubuntu, the "service dbus start" doesn't work.

| # service dbus start
| Failed to start dbus.service: Operation refused, unit dbus.service may be 
requested by dependency only (it is configured to refuse manual start/stop).
| See system logs and 'systemctl status dbus.service' for details.
| 
| # cat /lib/systemd/system/dbus.service
| [Unit]
| Description=D-Bus System Message Bus
| Documentation=man:dbus-daemon(1)
| Requires=dbus.socket
| # we don't properly stop D-Bus (see ExecStop=), thus disallow restart
| RefuseManualStart=yes
| 
| [Service]
| ExecStart=/usr/bin/dbus-daemon --system --address=systemd: --nofork 
--nopidfile --systemd-activation --syslog-only
| ExecReload=/usr/bin/dbus-send --print-reply --system --type=method_call 
--dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
| ExecStop=/bin/true
| KillMode=none
| OOMScoreAdjust=-900

What you can safely do is systemctl start dbus.socket, which will ensure
that DBus starts, and is running.

Stopping DBus is almost never a good idea, so the test probably
shouldn't do that. If it did, it should declare the isolation-container
restriction.

So, how about this patch:

diff -Nru usbauth-1.0.2/debian/tests/control usbauth-1.0.2/debian/tests/control
--- usbauth-1.0.2/debian/tests/control  2019-12-10 18:14:31.000000000 -0800
+++ usbauth-1.0.2/debian/tests/control  2020-05-13 17:22:36.000000000 -0700
@@ -1,3 +1,3 @@
 Tests: test
-Depends: @, libc-bin, usbauth-notifier, dbus
+Depends: dbus, libc-bin, systemd, usbauth-notifier, @
 Restrictions: needs-root, allow-stderr
diff -Nru usbauth-1.0.2/debian/tests/test usbauth-1.0.2/debian/tests/test
--- usbauth-1.0.2/debian/tests/test     2019-12-10 17:46:36.000000000 -0800
+++ usbauth-1.0.2/debian/tests/test     2020-05-13 17:22:10.000000000 -0700
@@ -8,9 +8,8 @@
 echo "run: Test"
 
 echo "allow all" | tee /etc/usbauth.conf
-service dbus start
+systemctl start dbus.socket
 usbauth init
-service dbus stop
 
 echo "run: Successful"
 exit 0

It works for me with the schroot, lxd, and qemu backends, so it should pass on
both Debian and Ubuntu's CI environments.

SR

--- End Message ---
--- Begin Message ---
Source: usbauth
Source-Version: 1.0.2-2
Done: =?utf-8?b?U1ogTGluICjmnpfkuIrmmbop?= <[email protected]>

We believe that the bug you reported is fixed in the latest version of
usbauth, 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.
SZ Lin (林上智) <[email protected]> (supplier of updated usbauth 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: SHA512

Format: 1.8
Date: Tue, 02 Jun 2020 10:56:42 +0800
Source: usbauth
Architecture: source
Version: 1.0.2-2
Distribution: unstable
Urgency: medium
Maintainer: Kun-Hung Tsai (蔡昆宏) <[email protected]>
Changed-By: SZ Lin (林上智) <[email protected]>
Closes: 960564
Changes:
 usbauth (1.0.2-2) unstable; urgency=medium
 .
   [ Alvin Chen ]
   * d/control:
     - Bump debhelper-compat version to 13
     - Bump Standards-Version to 4.5.0
   * d/rules:
     - Fix Lintian error
       remove -wl,--as-needed since the flag is set by default now.
   * d/tests/:
     - Add condition check to start/stop dbus only if it is not started.
       (Closes: #960564)
   * d/salsa-ci.yml:
     - add salsa-ci script
Checksums-Sha1:
 171dda4fd983e65045f4cc3b518671ca3032733f 2084 usbauth_1.0.2-2.dsc
 c6512afd2068a0220a1ad90aa105c4d9f44c59db 2904 usbauth_1.0.2-2.debian.tar.xz
 ae428edc960a5193bc4681aad9e2aab47f51d9a4 6024 usbauth_1.0.2-2_amd64.buildinfo
Checksums-Sha256:
 a15b280309ef5ec9d466397d5c6e1aa7fa0d9abd5f0604e753c12ed683bde0cf 2084 
usbauth_1.0.2-2.dsc
 db8aaa68ce9cb4c35e736b82481decdd31470adea78e954f9e0b27e974258101 2904 
usbauth_1.0.2-2.debian.tar.xz
 a7ba9957fcaefbc4562a33d96cb48fc0f4515c0b82e5b98744bba85b921e87bf 6024 
usbauth_1.0.2-2_amd64.buildinfo
Files:
 c46e3fd41e30d930ac7c4581aae35de9 2084 utils optional usbauth_1.0.2-2.dsc
 4e37ad5bd03fa8657f24f37547aac51e 2904 utils optional 
usbauth_1.0.2-2.debian.tar.xz
 9b3eddcd666f6c99ad67af29cb58f522 6024 utils optional 
usbauth_1.0.2-2_amd64.buildinfo

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

iQIzBAEBCgAdFiEEF4+DOLMUAeME/ES6qVmzipVh8/kFAl7q7+oACgkQqVmzipVh
8/m33g/+M42hZT7l3QIrkXUhhAy/zpVBohHWH+whT1W3xHTKvtA0zIpuoxPFfkZw
W5HC06rgpqF2PdSulTVNETskqgrUpALSsvRErBhv1bfqkcnwM0rw1bdqbHpHJlhx
c5IFhYGukrCIZ6zwCiBujpuz60owa+uk/xL03n2LHMDlCKDqU75MFlCYIMauPkEG
NF7NbOjrHLnRrCxTETgNQDUY/MfynbWECjZSYe+XRq37S4xkDlhp1UR7QQd+YAXA
wNkygUZgBVK/jeHtfsW974BnLq9w3+Fz9isakdH9X7sfHVM4FiwVKyefmhmRhlRm
L4naoZjsg1pSA3GXwHAH+pgr0RZ1Hlif7a/UjPdxpMIssgEPJqM2bGT5Wv7Uj1+F
4ZQ/zmWP3PDK1o2FDMdIDF5mfhT40QpVniJy5C+ehs35zTxwFr4kklZ7kLbqiEjU
VYuQ+orik4243wANa8Jc/A5ZL2EjKDvnfn9XF9Kxj6OhnCMweZDzCEaJefxqnqXr
mkG0u+LYpsSnNSNeU4uAmk78hGgXfLzZgRvjZYPJxL6Og0QOyQq7OQmkgpagXDjR
u07KI4wijhe/TpF3Mdnu/+uFfo33gklKebw3bs6ZtX81gu6VthpXvdPti4G2EPBk
F1L/Fljwi+StQUYw3WN11+abnyktRLqo6HscHmsR+hOpyb9qNhw=
=xahC
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to