Your message dated Fri, 04 Sep 2020 22:33:28 +0000
with message-id <e1kekgu-0007yj...@fasolo.debian.org>
and subject line Bug#946711: fixed in bluez 5.54-1
has caused the Debian Bug report #946711,
regarding bluez: systemd readiness support uses bind(2) instead of connect(2)
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.)
--
946711: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946711
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: bluez
Version: 5.52-1
Severity: serious
Hi!
This package got a custom reimplementation of the libsystemd sd_notify
support in the experimental version, but it incorrectly uses bind(2)
instead of connect(2) on the notification socket, so when using a
non-abstract Unix socket, we get an “address already used” error from
bind(2). We are the client so using bind(2) is just wrong here. This
breaks with dpkg's start-stop-daemon which does not use abstract Unix
sockets.
I'm attaching a patch fixing this, which I've also sent upstream.
Thanks,
Guillem
From 407983890dc925e692fe21912b8ed82dcb0c96b4 Mon Sep 17 00:00:00 2001
From: Guillem Jover <guil...@hadrons.org>
Date: Sat, 14 Dec 2019 10:28:56 +0100
Subject: [PATCH BlueZ] shared/mainloop: Use connect() instead of bind() for
sd_notify
We are the client, so we should be using connect(2) instead of bind(2),
otherwise when using non-abstract Unix sockets we will get an error that
the address is already in use.
This breaks the notify support in dpkg's start-stop-daemon.
---
src/shared/mainloop-notify.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/shared/mainloop-notify.c b/src/shared/mainloop-notify.c
index 89a880006..1de714a0e 100644
--- a/src/shared/mainloop-notify.c
+++ b/src/shared/mainloop-notify.c
@@ -91,7 +91,7 @@ void mainloop_notify_init(void)
if (addr.sun_path[0] == '@')
addr.sun_path[0] = '\0';
- if (bind(notify_fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
+ if (connect(notify_fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
close(notify_fd);
notify_fd = -1;
return;
--
2.24.1.658.g99f4b37f93
--- End Message ---
--- Begin Message ---
Source: bluez
Source-Version: 5.54-1
Done: Nobuhiro Iwamatsu <iwama...@debian.org>
We believe that the bug you reported is fixed in the latest version of
bluez, 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 946...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Nobuhiro Iwamatsu <iwama...@debian.org> (supplier of updated bluez 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: SHA256
Format: 1.8
Date: Sun, 30 Aug 2020 06:48:15 +0900
Source: bluez
Architecture: source
Version: 5.54-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Bluetooth Maintainers <team+pkg-blueto...@tracker.debian.org>
Changed-By: Nobuhiro Iwamatsu <iwama...@debian.org>
Closes: 925369 946711 947084 954281 954282 959483 966564
Changes:
bluez (5.54-1) unstable; urgency=medium
.
* Update to 5.54. (Closes: #946711, #966564, #925369)
* Update d/libbluetooth3.symbols.
* Delete unnecessary patches.
* Add zsh completion file to bluez. (Closes: #954281)
Thanks to Laurent Bigonville <bi...@debian.org>.
* Omit bluez-cups on Ubuntu/i386. (Closes: #947084)
Thanks to Steve Langasek <steve.langa...@canonical.com>.
* Fix typo in d/bluez.bluetooth.default. (Closes: #959483)
Thanks to Vincent Lefevre <vinc...@vinc17.net>.
* Move daemon to /usr/libexec/bluetooth instead of /usr/lib/bluetooth.
(Closes: #954282)
Thanks to Laurent Bigonville <bi...@debian.org>.
Checksums-Sha1:
fd2454c12c48070935e40789a7069820075f7ef0 2604 bluez_5.54-1.dsc
c3bea9e9362441f1d59cac049c18a403619c7163 1661676 bluez_5.54.orig.tar.xz
9f75050c15b9839906d48d521ad74e4155f8fdd0 34332 bluez_5.54-1.debian.tar.xz
62438ab0bfe6766d5457de76d10d57cb997b402b 12041 bluez_5.54-1_amd64.buildinfo
Checksums-Sha256:
f36f1275ad0bfb0d1b32acc3bacf03f903cb692fe2c2f80f69ab3b285fbd313d 2604
bluez_5.54-1.dsc
5b9eba987a8018f4371261ffbc5061954d6102f06c2d0310ae759031107ed0f8 1661676
bluez_5.54.orig.tar.xz
28b99456bab76f96906eabdf116d4a06de10f95acebe7d1cb42365b79fc3e50a 34332
bluez_5.54-1.debian.tar.xz
d31d6fcb7a6d8339b5d4fb2354417a9612466f66ab6c47c1ee26c701b4f147ee 12041
bluez_5.54-1_amd64.buildinfo
Files:
98605c46da2ba2b0c75b8870d417da59 2604 admin optional bluez_5.54-1.dsc
b77a25522564374d389ede373b7db25d 1661676 admin optional bluez_5.54.orig.tar.xz
9f754ba9bb218b06c0be2ef2771d15af 34332 admin optional
bluez_5.54-1.debian.tar.xz
668a371f79f083220f7829425d94d67c 12041 admin optional
bluez_5.54-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEXmKe5SMhlzV7hM9DMiR/u0CtH6YFAl9SvjsACgkQMiR/u0Ct
H6ZnLg/+J6hKdi+ssRSXFhcy+3jKx0174zZqXm6fjKKovfMtRDU+UVYdyvmgxPOV
3fFYZJeHkpRwBhADBp9DG5ejJARiHWDbu1IZs2w1q9fAGzq+Kh7C50zgtt2wUQ+4
tm0aFJQwuctCb4bkjxrG3wtqQO2vtWrGR+HR6coi/ETsyTPB2HGu+p3wmrcoBlfH
pNz1y3XGOjfdaaqWV8xxwNntbNcH8Udbsgm4ynrVQdliGWXE/9mf1rGC5a3c70x6
tDDj4P1ii9QDLFsSauJFqE8RH69uPzOD7Egm9TNJUunZXROahiFSevE08VEewq5J
d8Wwa6j+iHJrr2SJ13eL6tS4+xUfuJz5Z3YufHFNhrcGR/LIK0AeFWk36ZY08NUF
TFvxTlVHqJWUW5UEeM2jtj2v1Valr7h7aoKTSLlQuNTvUtRbcVy0FqRVRrwgJFcl
kxK38+xdix2Lt68WalEBPvMOePgXiV6g+WpUpn0K6NCWgAx8qGbjuzWqfu3UF2WI
Dz63ovBF8lAg7VIyvYm0xLZDR96X2UdOKlQiNLY0T0pBl6TouHZ1W7cej+E7dB7Q
GxzpYD1mlDiE7+T7z6s5RKHcXYqW64nYKXdeyTF3i0raSh86tBwJXXUK2uxzRXYu
4HdCe2sPfMUMnYtkTYVAcpdDsxtR5TguWkNwgK4ihYonkC8VjTc=
=RgVx
-----END PGP SIGNATURE-----
--- End Message ---