guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: libvirt: Use absolute dnsmasq.


From: guix-commits
Subject: 01/02: gnu: libvirt: Use absolute dnsmasq.
Date: Mon, 29 Aug 2022 15:17:11 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit acbf2f9def5ce181fab09abec0978f1d2c1bcb33
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Thu Aug 18 10:11:36 2022 +0200

    gnu: libvirt: Use absolute dnsmasq.
    
    Fixes <https://bugs.gnu.org/57272>.
    Reported by Lars-Dominik Braun <lars@6xq.net>.
    
    * gnu/packages/virtualization.scm (libvirt)[arguments]: Substitute the
    absolute dnsmasq file name.  Disable one test.
    
    Co-authored-by: Marius Bakke <marius@gnu.org>
---
 gnu/packages/virtualization.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index d451b8529e..005421aaec 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -1311,9 +1311,16 @@ pretty simple, REST API.")
               (substitute* "scripts/meson-install-dirs.py"
                 (("destdir = .*")
                  "destdir = '/tmp'"))))
+          (add-after 'unpack 'use-absolute-dnsmasq
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let ((dnsmasq (search-input-file inputs "sbin/dnsmasq")))
+                (substitute* "src/util/virdnsmasq.c"
+                  (("#define DNSMASQ \"dnsmasq\"")
+                   (string-append "#define DNSMASQ \"" dnsmasq "\""))))))
           (add-before 'configure 'disable-broken-tests
             (lambda _
               (let ((tests (list "commandtest"         ; hangs idly
+                                 "networkxml2conftest" ; fails with absolute 
dnsmasq
                                  "qemuxml2argvtest"    ; fails
                                  "virnetsockettest"))) ; tries to network
                 (substitute* "tests/meson.build"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]