summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-23 16:01:17 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-23 17:10:00 -0400
commite682932636f1f35733872d69edc9bf9d9813c03a (patch)
tree306d479a9c836492b63dcdb9eaa35a7b26f6dd77
parent87d3f71bb5b07fdd69a1efe5ce72174741d86bc3 (diff)
downloadguix-e682932636f1f35733872d69edc9bf9d9813c03a.tar.gz
gnu: network-manager: Patch modprobe file name.
Partially fixes <https://issues.guix.gnu.org/62409>.

* gnu/packages/gnome.scm (network-manager)
[arguments]: Add patch-modprobe-path phase.
[inputs]: Add kmod.
-rw-r--r--gnu/packages/gnome.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index dc005e09b6..aa8525b100 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8544,6 +8544,14 @@ users.")
                                                          "/sbin/dhclient")))
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-modprobe-path
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* "src/libnm-platform/nm-platform-utils.c"
+                ;; The modprobe command location is not configurable (see:
+                ;; https://gitlab.freedesktop.org/NetworkManager/
+                ;; NetworkManager/-/issues/1257).
+                (("/sbin/modprobe")
+                 (search-input-file inputs "bin/modprobe")))))
           (add-after 'unpack 'patch-dlopen-call-to-libjansson.so
             (lambda* (#:key inputs #:allow-other-keys)
               (substitute* "src/libnm-glib-aux/nm-json-aux.c"
@@ -8623,6 +8631,7 @@ users.")
            isc-dhcp
            iwd                          ;wpa_supplicant alternative
            jansson
+           kmod
            libgcrypt
            libgudev
            libndp