network-manager: give path to pppd executable
This fixes an issue I have faced when trying to connect to the internet via wwan gsm modem. (cherry picked from commit 0775adc599f4706e3ff020e700b5f8f69578b6b1) Closes https://github.com/NixOS/nixpkgs/pull/19812
This commit is contained in:
parent
bdc4397303
commit
2756711652
13
pkgs/tools/networking/network-manager/PppdPath.patch
Normal file
13
pkgs/tools/networking/network-manager/PppdPath.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/ppp-manager/nm-ppp-manager.c b/src/ppp-manager/nm-ppp-manager.c
|
||||||
|
index 89a7add..ae99eb4 100644
|
||||||
|
--- a/src/ppp-manager/nm-ppp-manager.c
|
||||||
|
+++ b/src/ppp-manager/nm-ppp-manager.c
|
||||||
|
@@ -843,7 +843,7 @@ create_pppd_cmd_line (NMPPPManager *self,
|
||||||
|
|
||||||
|
g_return_val_if_fail (setting != NULL, NULL);
|
||||||
|
|
||||||
|
- pppd_binary = nm_utils_find_helper ("pppd", NULL, err);
|
||||||
|
+ pppd_binary = nm_utils_find_helper ("pppd", PPPD_PATH, err);
|
||||||
|
if (!pppd_binary)
|
||||||
|
return NULL;
|
||||||
|
|
@ -56,6 +56,8 @@ stdenv.mkDerivation rec {
|
|||||||
"--with-libsoup=yes"
|
"--with-libsoup=yes"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
patches = [ ./PppdPath.patch ];
|
||||||
|
|
||||||
buildInputs = [ systemd libgudev libnl libuuid polkit ppp libndp
|
buildInputs = [ systemd libgudev libnl libuuid polkit ppp libndp
|
||||||
bluez5 dnsmasq gobjectIntrospection modemmanager readline newt libsoup ];
|
bluez5 dnsmasq gobjectIntrospection modemmanager readline newt libsoup ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user