From: "Ludovic Courtès" <ludo@gnu.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: 75390@debbugs.gnu.org
Subject: bug#75390: least-authority-wrapper for bitlbee-service-type breaks Bonjour support
Date: Wed, 08 Jan 2025 10:07:18 +0100 [thread overview]
Message-ID: <87ikqpwu61.fsf@gnu.org> (raw)
In-Reply-To: <878qrpgfeh.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 05 Jan 2025 21:43:50 +0100")
[-- 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’.
prev parent reply other threads:[~2025-01-08 9:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ikqpwu61.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=75390@debbugs.gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.