unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#55691] [PATCH] gnu: wpa-supplicant: Add DBus service file.
@ 2022-05-28 16:30 Roman Riabenko
  2022-06-05 21:17 ` bug#55691: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Roman Riabenko @ 2022-05-28 16:30 UTC (permalink / raw)
  To: 55691

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

Hello

This patch adds DBus service file for wpa-supplicant. I was
investigating a different issue when noticed that dbus-system-services-
builder warns that it is missing. I reconfigured my system with these
changes to test. It seems that WiFi stopped dropping connection as I
had been experiencing occasionally before, but it may be a coincidence.

Roman

[-- Attachment #2: 0001-gnu-wpa-supplicant-Add-DBus-service-file.patch --]
[-- Type: text/x-patch, Size: 2053 bytes --]

From 34f9918e53e4c540741dedb9dcd527eb59645a0b Mon Sep 17 00:00:00 2001
From: Roman Riabenko <roman@riabenko.com>
Date: Sat, 28 May 2022 18:36:48 +0300
Subject: [PATCH] gnu: wpa-supplicant: Add DBus service file.

* gnu/packages/admin.scm (wpa-supplicant): Add DBus service file
for wpa-supplicant for dbus-system-services-builder to find.
---
 gnu/packages/admin.scm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index af75dee697..b077aadb84 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -48,6 +48,7 @@
 ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
 ;;; Copyright © 2021 Artyom V. Poptsov <poptsov.artyom@gmail.com>
 ;;; Copyright © 2022 Wamm K. D. <jaft.r@outlook.com>
+;;; Copyright © 2022 Roman Riabenko <roman@riabenko.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2028,10 +2029,16 @@ (define-public wpa-supplicant
           (add-after 'install-documentation 'install-dbus-conf
             (lambda* (#:key outputs #:allow-other-keys)
               (let* ((out (assoc-ref outputs "out"))
-                     (dir (string-append out "/etc/dbus-1/system.d")))
-                (mkdir-p dir)
+                     (interfaces (string-append out "/etc/dbus-1/system.d"))
+                     (services (string-append out
+                                              "/share/dbus-1/system-services")))
+                (mkdir-p interfaces)
                 (copy-file "dbus/dbus-wpa_supplicant.conf"
-                           (string-append dir "/wpa_supplicant.conf")))
+                           (string-append interfaces "/wpa_supplicant.conf"))
+                (mkdir-p services)
+                (copy-file "dbus/fi.w1.wpa_supplicant1.service"
+                           (string-append services
+                                          "/fi.w1.wpa_supplicant1.service")))
               #t))))))))
 
 (define-public wpa-supplicant-gui

base-commit: 6e9d99f97f15347f44df0518faa5e3b8b9d5184e
-- 
2.36.1


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

* bug#55691: [PATCH] gnu: wpa-supplicant: Add DBus service file.
  2022-05-28 16:30 [bug#55691] [PATCH] gnu: wpa-supplicant: Add DBus service file Roman Riabenko
@ 2022-06-05 21:17 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-06-05 21:17 UTC (permalink / raw)
  To: Roman Riabenko; +Cc: 55691-done

Hi,

Roman Riabenko <roman@riabenko.com> skribis:

> This patch adds DBus service file for wpa-supplicant. I was
> investigating a different issue when noticed that dbus-system-services-
> builder warns that it is missing. I reconfigured my system with these
> changes to test. It seems that WiFi stopped dropping connection as I
> had been experiencing occasionally before, but it may be a coincidence.

Hmm it may be unrelated, but it’s a good idea anyway.

> From 34f9918e53e4c540741dedb9dcd527eb59645a0b Mon Sep 17 00:00:00 2001
> From: Roman Riabenko <roman@riabenko.com>
> Date: Sat, 28 May 2022 18:36:48 +0300
> Subject: [PATCH] gnu: wpa-supplicant: Add DBus service file.
>
> * gnu/packages/admin.scm (wpa-supplicant): Add DBus service file
> for wpa-supplicant for dbus-system-services-builder to find.

Applied, thanks!

Ludo’.




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

end of thread, other threads:[~2022-06-05 21:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-28 16:30 [bug#55691] [PATCH] gnu: wpa-supplicant: Add DBus service file Roman Riabenko
2022-06-05 21:17 ` bug#55691: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).