all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#75390: least-authority-wrapper for bitlbee-service-type breaks Bonjour support
@ 2025-01-05 20:43 Ricardo Wurmus
  2025-01-08  9:07 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2025-01-05 20:43 UTC (permalink / raw)
  To: 75390; +Cc: ludo

The bitlbee-service-type uses the least-authority-wrapper to run bitlbee
in a container.  A side effect when using bitlbee-purple is that the
Bonjour protocol no longer works as bitlbee cannot connect to the local
mDNS server:

--8<---------------cut here---------------start------------->8---
<@rekado> account add bonjour rekado
<root> Account successfully added with tag bonjour
<@rekado> account on
<root> Trying to get all accounts connected...
<root> bonjour - Login error: Unable to establish connection with the local
       mDNS server.  Is it running?
<root> bonjour - Logging in: Signing off..
<root> bonjour - Logging in: Reconnecting in 5 seconds..
--8<---------------cut here---------------end--------------->8---

It works fine when running bitlbee manually.

The Bonjour protocol allows for serverless messaging, which is also used
by the Sugar desktop's Chat activity.

-- 
Ricardo




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#75390: least-authority-wrapper for bitlbee-service-type breaks Bonjour support
  2025-01-05 20:43 bug#75390: least-authority-wrapper for bitlbee-service-type breaks Bonjour support Ricardo Wurmus
@ 2025-01-08  9:07 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2025-01-08  9:07 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 75390

[-- Attachment #1: Type: text/plain, Size: 749 bytes --]

Hello!

Ricardo Wurmus <rekado@elephly.net> skribis:

> The bitlbee-service-type uses the least-authority-wrapper to run bitlbee
> in a container.  A side effect when using bitlbee-purple is that the
> Bonjour protocol no longer works as bitlbee cannot connect to the local
> mDNS server:
>
> <@rekado> account add bonjour rekado
> <root> Account successfully added with tag bonjour
> <@rekado> account on
> <root> Trying to get all accounts connected...
> <root> bonjour - Login error: Unable to establish connection with the local
>        mDNS server.  Is it running?
> <root> bonjour - Logging in: Signing off..
> <root> bonjour - Logging in: Reconnecting in 5 seconds..

I never used this feature, but I suspect the patch below should fix it:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 993 bytes --]

diff --git a/gnu/services/messaging.scm b/gnu/services/messaging.scm
index a914d0f89e..f796afbc82 100644
--- a/gnu/services/messaging.scm
+++ b/gnu/services/messaging.scm
@@ -850,6 +850,12 @@ (define bitlbee-shepherd-service
                                         (file-system-mapping
                                          (source "/run/current-system/locale")
                                          (target source))
+                                        (file-system-mapping ;for Avahi
+                                         (source "/var/run/dbus")
+                                         (target source))
+                                        (file-system-mapping
+                                         (source "/run/avahi-daemon")
+                                         (target source))
                                         (file-system-mapping
                                          (source conf)
                                          (target conf)))

[-- Attachment #3: Type: text/plain, Size: 395 bytes --]


Only problem is that things may go wrong if these directories don’t
exist.

So I think we should add a ‘bonjour?’ field in the config record, add
these mapping conditionally, and also add a Shepherd requirement on
‘avahi-daemon’.

> The Bonjour protocol allows for serverless messaging, which is also used
> by the Sugar desktop's Chat activity.

Interesting!

Ludo’.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-01-08  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-05 20:43 bug#75390: least-authority-wrapper for bitlbee-service-type breaks Bonjour support Ricardo Wurmus
2025-01-08  9:07 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.