GNU bug report logs - #78330
[PATCH] services: dnsmasq: Install dbus config.

Previous Next

Package: guix-patches;

Reported by: Sergey Trofimov <sarg <at> sarg.org.ru>

Date: Fri, 9 May 2025 07:38:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Sergey Trofimov <sarg <at> sarg.org.ru>
Subject: bug#78330: closed (Re: [bug#78330] [PATCH] services: dnsmasq:
 Install dbus config.)
Date: Mon, 02 Jun 2025 10:00:05 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#78330: [PATCH] services: dnsmasq: Install dbus config.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 78330 <at> debbugs.gnu.org.

-- 
78330: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78330
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: Sergey Trofimov <sarg <at> sarg.org.ru>
Cc: 78330-done <at> debbugs.gnu.org, Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: Re: [bug#78330] [PATCH] services: dnsmasq: Install dbus config.
Date: Mon, 02 Jun 2025 10:55:52 +0200
Sergey Trofimov <sarg <at> sarg.org.ru> writes:

> While DBUS service is enabled in dnsmasq, it does not work without installing
> a config file to the system.
>
> * gnu/packages/dns.scm (dnsmasq): Install dbus config.
> * gnu/services/dns.scm (dnsmasq): Extend dbus-root-service-type.
>
> Change-Id: I5187f65e1f2892eb10fb95e6f51955559f64dbef

Applied, thanks!

[Message part 3 (message/rfc822, inline)]
From: Sergey Trofimov <sarg <at> sarg.org.ru>
To: guix-patches <at> gnu.org
Cc: Sergey Trofimov <sarg <at> sarg.org.ru>
Subject: [PATCH] services: dnsmasq: Install dbus config.
Date: Fri,  9 May 2025 09:36:47 +0200
While DBUS service is enabled in dnsmasq, it does not work without installing
a config file to the system.

* gnu/packages/dns.scm (dnsmasq): Install dbus config.
* gnu/services/dns.scm (dnsmasq): Extend dbus-root-service-type.

Change-Id: I5187f65e1f2892eb10fb95e6f51955559f64dbef
---
 gnu/packages/dns.scm | 8 +++++++-
 gnu/services/dns.scm | 3 +++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm
index 3d780019a0..af25ef7370 100644
--- a/gnu/packages/dns.scm
+++ b/gnu/packages/dns.scm
@@ -310,7 +310,13 @@ (define-public dnsmasq
      (list dbus))
     (arguments
      `(#:phases
-       (modify-phases %standard-phases (delete 'configure))
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (add-after 'install 'install-dbus
+           (lambda _
+             (install-file "dbus/dnsmasq.conf"
+                           (string-append %output "/etc/dbus-1/system.d")))))
+
        #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
                           (string-append "CC=" ,(cc-for-target))
                           (string-append "PKG_CONFIG=" ,(pkg-config-for-target))
diff --git a/gnu/services/dns.scm b/gnu/services/dns.scm
index 05291eb65d..1c9c8fcfe4 100644
--- a/gnu/services/dns.scm
+++ b/gnu/services/dns.scm
@@ -23,6 +23,7 @@
 (define-module (gnu services dns)
   #:use-module (gnu services)
   #:use-module (gnu services configuration)
+  #:use-module (gnu services dbus)
   #:use-module (gnu services shepherd)
   #:use-module (gnu system shadow)
   #:use-module (gnu packages admin)
@@ -909,6 +910,8 @@ (define dnsmasq-service-type
    (extensions
     (list (service-extension shepherd-root-service-type
                              (compose list dnsmasq-shepherd-service))
+          (service-extension dbus-root-service-type
+                             (compose list dnsmasq-configuration-package))
           (service-extension activation-service-type
                              dnsmasq-activation)))
    (default-value (dnsmasq-configuration))

base-commit: 2e1ead7c8b449b58d571d8f16c1586b675c13ab4
-- 
2.49.0




This bug report was last modified 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.