tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
networkmanager: 1.42.8 -> 1.44.0
Maxine Aubrey
2 years ago
bcae9ce2
d55e56f8
+43
-33
3 changed files
expand all
collapse all
unified
split
pkgs
tools
networking
networkmanager
default.nix
fix-install-paths.patch
fix-paths.patch
+4
-3
pkgs/tools/networking/networkmanager/default.nix
···
57
57
in
58
58
stdenv.mkDerivation rec {
59
59
pname = "networkmanager";
60
60
-
version = "1.42.8";
60
60
+
version = "1.44.0";
61
61
62
62
src = fetchurl {
63
63
url = "mirror://gnome/sources/NetworkManager/${lib.versions.majorMinor version}/NetworkManager-${version}.tar.xz";
64
64
-
sha256 = "sha256-AzfnWD0uxa3iui6MYl0vCe7M2h0ig27imqcpJdOZw1M=";
64
64
+
sha256 = "sha256-7coJY30YL4BrOxLYxWI9e629c8zKGuY74g0vKYd5+58=";
65
65
};
66
66
67
67
outputs = [ "out" "dev" "devdoc" "man" "doc" ];
···
80
80
"-Dkernel_firmware_dir=/run/current-system/firmware"
81
81
82
82
# Platform
83
83
+
"-Dmodprobe=${kmod}/bin/modprobe"
83
84
"-Dsession_tracking=systemd"
84
85
"-Dlibaudit=yes-disabled-by-default"
85
86
"-Dpolkit_agent_helper_1=/run/wrappers/bin/polkit-agent-helper-1"
···
118
119
patches = [
119
120
(substituteAll {
120
121
src = ./fix-paths.patch;
121
121
-
inherit iputils kmod openconnect ethtool gnused systemd;
122
122
+
inherit iputils openconnect ethtool gnused systemd;
122
123
inherit runtimeShell;
123
124
})
124
125
+2
-2
pkgs/tools/networking/networkmanager/fix-install-paths.patch
···
1
1
diff --git a/meson.build b/meson.build
2
2
-
index 6813e52ac1..ecdb78ca54 100644
2
2
+
index f71c9fd4aa..deddf28816 100644
3
3
--- a/meson.build
4
4
+++ b/meson.build
5
5
-
@@ -999,9 +999,9 @@ meson.add_install_script(
5
5
+
@@ -1022,9 +1022,9 @@ meson.add_install_script(
6
6
join_paths('tools', 'meson-post-install.sh'),
7
7
nm_datadir,
8
8
nm_bindir,
+37
-28
pkgs/tools/networking/networkmanager/fix-paths.patch
···
11
11
12
12
LABEL="nm_drivers_end"
13
13
diff --git a/data/NetworkManager.service.in b/data/NetworkManager.service.in
14
14
-
index e23b3a5282..c7246a3b61 100644
14
14
+
index f09ae86ceb..b2ecb405ef 100644
15
15
--- a/data/NetworkManager.service.in
16
16
+++ b/data/NetworkManager.service.in
17
17
-
@@ -8,7 +8,7 @@ Before=network.target @DISTRO_NETWORK_SERVICE@
17
17
+
@@ -9,7 +9,7 @@ BindsTo=dbus.service
18
18
[Service]
19
19
Type=dbus
20
20
BusName=org.freedesktop.NetworkManager
···
24
24
ExecStart=@sbindir@/NetworkManager --no-daemon
25
25
Restart=on-failure
26
26
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c
27
27
-
index 3565c04d59..52c58fec24 100644
27
27
+
index 2038e2f205..90bf9fa28b 100644
28
28
--- a/src/core/devices/nm-device.c
29
29
+++ b/src/core/devices/nm-device.c
30
30
-
@@ -14005,14 +14005,14 @@ nm_device_start_ip_check(NMDevice *self)
30
30
+
@@ -14275,14 +14275,14 @@ nm_device_start_ip_check(NMDevice *self)
31
31
gw = nm_l3_config_data_get_best_default_route(l3cd, AF_INET);
32
32
if (gw) {
33
33
nm_inet4_ntop(NMP_OBJECT_CAST_IP4_ROUTE(gw)->gateway, buf);
···
45
45
}
46
46
}
47
47
diff --git a/src/libnm-client-impl/meson.build b/src/libnm-client-impl/meson.build
48
48
-
index 143126c51a..a7143443ec 100644
48
48
+
index fb879dca47..13cc2867e1 100644
49
49
--- a/src/libnm-client-impl/meson.build
50
50
+++ b/src/libnm-client-impl/meson.build
51
51
-
@@ -172,7 +172,6 @@ if enable_introspection
51
51
+
@@ -173,7 +173,6 @@ if enable_introspection
52
52
input: libnm_core_settings_sources,
53
53
output: 'nm-propery-infos-' + info + '.xml',
54
54
command: [
···
56
56
join_paths(meson.source_root(), 'tools', 'generate-docs-nm-property-infos.py'),
57
57
info,
58
58
'@OUTPUT@',
59
59
-
@@ -229,7 +228,6 @@ if enable_introspection
59
59
+
@@ -230,7 +229,6 @@ if enable_introspection
60
60
'env',
61
61
'GI_TYPELIB_PATH=' + gi_typelib_path,
62
62
'LD_LIBRARY_PATH=' + ld_library_path,
···
64
64
join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-gir.py'),
65
65
'--lib-path', meson.current_build_dir(),
66
66
'--gir', '@INPUT@',
67
67
-
diff --git a/src/libnm-platform/nm-platform-utils.c b/src/libnm-platform/nm-platform-utils.c
68
68
-
index bebc53a851..93710455d5 100644
69
69
-
--- a/src/libnm-platform/nm-platform-utils.c
70
70
-
+++ b/src/libnm-platform/nm-platform-utils.c
71
71
-
@@ -2209,7 +2209,7 @@ nmp_utils_modprobe(GError **error, gboolean suppress_error_logging, const char *
72
72
-
73
73
-
/* construct the argument list */
74
74
-
argv = g_ptr_array_sized_new(4);
75
75
-
- g_ptr_array_add(argv, "/sbin/modprobe");
76
76
-
+ g_ptr_array_add(argv, "@kmod@/bin/modprobe");
77
77
-
g_ptr_array_add(argv, "--use-blacklist");
78
78
-
g_ptr_array_add(argv, (char *) arg1);
79
79
-
80
67
diff --git a/src/libnmc-base/nm-vpn-helpers.c b/src/libnmc-base/nm-vpn-helpers.c
81
81
-
index 476fbe518e..2641dbf637 100644
68
68
+
index cbe76f5f1c..8515f94994 100644
82
69
--- a/src/libnmc-base/nm-vpn-helpers.c
83
70
+++ b/src/libnmc-base/nm-vpn-helpers.c
84
84
-
@@ -198,25 +198,8 @@ nm_vpn_openconnect_authenticate_helper(const char *host,
85
85
-
gs_free const char **output_v = NULL;
71
71
+
@@ -284,15 +284,6 @@ nm_vpn_openconnect_authenticate_helper(NMSettingVpn *s_vpn, GPtrArray *secrets,
86
72
const char *const *iter;
87
73
const char *path;
74
74
+
const char *opt;
88
75
- const char *const DEFAULT_PATHS[] = {
89
76
- "/sbin/",
90
77
- "/usr/sbin/",
···
94
81
- "/usr/local/bin/",
95
82
- NULL,
96
83
- };
84
84
+
const char *oc_argv[(12 + 2 * G_N_ELEMENTS(oc_property_args))];
85
85
+
const char *gw;
86
86
+
int port;
87
87
+
@@ -311,15 +302,7 @@ nm_vpn_openconnect_authenticate_helper(NMSettingVpn *s_vpn, GPtrArray *secrets,
88
88
+
89
89
+
port = extract_url_port(gw);
97
90
98
91
- path = nm_utils_file_search_in_paths("openconnect",
99
92
- "/usr/sbin/openconnect",
···
106
99
- return FALSE;
107
100
+ path = "@openconnect@/bin/openconnect";
108
101
109
109
-
if (!g_spawn_sync(NULL,
110
110
-
(char **) NM_MAKE_STRV(path, "--authenticate", host),
102
102
+
oc_argv[oc_argc++] = path;
103
103
+
oc_argv[oc_argc++] = "--authenticate";
111
104
diff --git a/src/libnmc-setting/meson.build b/src/libnmc-setting/meson.build
112
112
-
index cf8a21fc80..61b992a50e 100644
105
105
+
index cf8a21fc80..61d8e140e2 100644
113
106
--- a/src/libnmc-setting/meson.build
114
107
+++ b/src/libnmc-setting/meson.build
115
108
@@ -7,7 +7,6 @@ if enable_docs
···
120
113
join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-merge.py'),
121
114
'@OUTPUT@',
122
115
nm_property_infos_xml['nmcli'],
116
116
+
@@ -20,7 +19,6 @@ if enable_docs
117
117
+
input: settings_docs_input_xml,
118
118
+
output: 'settings-docs.h',
119
119
+
command: [
120
120
+
- python.path(),
121
121
+
join_paths(meson.source_root(), 'tools', 'generate-docs-settings-docs.py'),
122
122
+
'--output', '@OUTPUT@',
123
123
+
'--xml', '@INPUT@'
123
124
diff --git a/src/tests/client/meson.build b/src/tests/client/meson.build
124
124
-
index 6dc0f2a2c8..0a32977a59 100644
125
125
+
index 8c36e40559..cfb6649a21 100644
125
126
--- a/src/tests/client/meson.build
126
127
+++ b/src/tests/client/meson.build
127
128
@@ -6,7 +6,6 @@ test(
···
130
131
source_root,
131
132
- python.path(),
132
133
'--',
134
134
+
'TestNmcli',
133
135
],
134
134
-
env: [
136
136
+
@@ -23,7 +22,6 @@ if enable_nm_cloud_setup
137
137
+
args: [
138
138
+
build_root,
139
139
+
source_root,
140
140
+
- python.path(),
141
141
+
'--',
142
142
+
'TestNmCloudSetup',
143
143
+
],