Article View: linux.debian.bugs.dist
Article #4519Bug#1154001: trixie-pu: package brltty/6.7-3.1+deb13u5
From: Samuel Thibault
Date: Sat, 14 Nov 2026 21:30
Date: Sat, 14 Nov 2026 21:30
107 lines
5894 bytes
5894 bytes
--xM0+TfJxNfMOCsb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: brltty@packages.debian.org
Control: affects -1 + src:brltty
User: release.debian.org@packages.debian.org
Usertags: pu
Hello,
I have uploaded brltty 6.7-3.1+deb13u5 for trixie.
[ Reason ]
This is actually a follow-up for 6.7-3.1+deb13u4 supposed to fix
Bug#1087173
It was reported in Bug#1087173 that in some network configuration cases
(ipv6 packets getting dropped instead of ipv6 being disabled), the mere
presence of the xbrlapi package makes X sessions startup get stuck for
two minutes. The underlying issue is that xbrlapi tries to connect to
an existing brltty through localhost, but in that configuration case,
the connect() call waits for 2m before timing out instead of immediately
returning ECONNREFUSED.
6.7-3.1+deb13u4 was supposed to fix it, but it was apparently
mis-tested... 6.7-3.1+deb13u5 fixes the 6.7-3.1+deb13u4 fix, as
discussed in Bug#1153378
[ Impact ]
Some people report this long login delay. They have to remove the
xbrlapi package to avoid the issue.
[ Tests ]
This was tested manually.
[ Risks ]
The code is very simple.
[ Checklist ]
[X] *all* changes are documented in the d/changelog
[X] I reviewed all changes and I approve them
[X] attach debdiff against the package in (old)stable
[X] the issue is verified as fixed in unstable
[ Changes ]
This fixes the adresse within struct sockaddr_in6 to get the address to
be compared
--xM0+TfJxNfMOCsb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch
diff -Nru brltty-6.7/debian/changelog brltty-6.7/debian/changelog
--- brltty-6.7/debian/changelog 2026-09-19 14:27:54.000000000 +0200
+++ brltty-6.7/debian/changelog 2026-11-14 21:59:38.000000000 +0100
@@ -1,3 +1,10 @@
+brltty (6.7-3.1+deb13u5) trixie; urgency=medium
+
+ * patches/git-localhost-timeout2: Fix connections to localhost for IPv6
+ (Closes: Bug#1153378)
+
+ -- Samuel Thibault <sthibault@debian.org> Sat, 14 Nov 2026 21:59:38 +0100
+
brltty (6.7-3.1+deb13u4) trixie; urgency=medium
* patches/git-localhost-timeout: Make connections to localhost timeout after
diff -Nru brltty-6.7/debian/patches/git-localhost-timeout2 brltty-6.7/debian/patches/git-localhost-timeout2
--- brltty-6.7/debian/patches/git-localhost-timeout2 1970-01-01 01:00:00.000000000 +0100
+++ brltty-6.7/debian/patches/git-localhost-timeout2 2026-11-14 21:59:38.000000000 +0100
@@ -0,0 +1,23 @@
+commit b3c93ca73cf82558c9a0735c8b525af58861aee7
+Author: Komorebi Aware <komorebi.aware@gmail.com>
+Date: Sat Nov 7 21:48:45 2026 +0100
+
+ Compare the IPv6 address field when applying the localhost timeout
+
+ The existing guard compares the sockaddr_in6 header to an in6_addr, so it
+ does not recognize ::1 and never sets the short timeout for IPv6 loopback.
+ Compare sin6_addr instead, preserving the IPv4 test and the existing timeout.
+
+diff --git a/Programs/brlapi_client.c b/Programs/brlapi_client.c
+index e0dca7ee8..b9745dac5 100644
+--- a/Programs/brlapi_client.c
++++ b/Programs/brlapi_client.c
+@@ -935,7 +935,7 @@ static int tryHost(brlapi_handle_t *handle, const char *hostAndPort) {
+ && (ntohl(((struct sockaddr_in *)cur->ai_addr)->sin_addr.s_addr) & IN_CLASSA_NET)
+ == (INADDR_LOOPBACK & IN_CLASSA_NET))
+ || (cur->ai_family == AF_INET6
+- && !memcmp(cur->ai_addr, &ip6_localhost, sizeof(ip6_localhost)))) {
++ && !memcmp(&((struct sockaddr_in6 *)cur->ai_addr)->sin6_addr, &ip6_localhost, sizeof(ip6_localhost)))) {
+ /* Local connection, it should be fast, otherwise it means we have a
+ * firewall blocking us, and then better not wait unnecessarily. */
+ struct timeval tv = { .tv_usec = 100000 };
diff -Nru brltty-6.7/debian/patches/series brltty-6.7/debian/patches/series
--- brltty-6.7/debian/patches/series 2026-09-19 14:27:29.000000000 +0200
+++ brltty-6.7/debian/patches/series 2026-11-14 21:59:38.000000000 +0100
@@ -9,3 +9,4 @@
noverbose-usbfs
systemd-vtnr
git-localhost-timeout
+git-localhost-timeout2
--xM0+TfJxNfMOCsb5--
Technical Details
Message-ID:
<NZttT-bUyx-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Samuel Thibault <sthibault@debian.org> Newsgroups: linux.debian.bugs.dist,linux.debian.devel.release Subject: Bug#1154001: trixie-pu: package brltty/6.7-3.1+deb13u5 Date: Sat, 14 Nov 2026 22:30:01 +0100 Message-ID: <NZttT-bUyx-3@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Nov 14 21:27:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Samuel Thibault <sthibault@debian.org>, 1154001@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: brltty@packages.debian.org, debian-release@lists.debian.org X-Debian-Pr-Message: report 1154001 X-Debian-Pr-Package: release.debian.org X-Debian-Pr-Keywords: trixie MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="xM0+TfJxNfMOCsb5" Content-Disposition: inline X-Reportbug-Version: 13.2.0+nmu1 Organization: I am not organized X-Debian-User: sthibault X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002626 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 107 Sender: robomod@news.nic.it X-Original-Date: Sat, 14 Nov 2026 22:25:14 +0100 X-Original-Message-ID: <avjRuscAkyjVdW6j@end>