Merge pull request #87286 from mweinelt/pr/nm

networkmanager: 1.22.10 → 1.26.0
This commit is contained in:
worldofpeace 2020-07-18 17:59:19 -04:00 committed by GitHub
commit b8aa90c5f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 32 deletions

View File

@ -10,11 +10,11 @@ let
pythonForDocs = python3.withPackages (pkgs: with pkgs; [ pygobject3 ]); pythonForDocs = python3.withPackages (pkgs: with pkgs; [ pygobject3 ]);
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "network-manager"; pname = "network-manager";
version = "1.22.10"; version = "1.26.0";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/NetworkManager/${stdenv.lib.versions.majorMinor version}/NetworkManager-${version}.tar.xz"; url = "mirror://gnome/sources/NetworkManager/${stdenv.lib.versions.majorMinor version}/NetworkManager-${version}.tar.xz";
sha256 = "0xyaizyp3yz6x3pladw3nvl3hf4n5g140zx9jnxfp9qvag0wqa9b"; sha256 = "0isdqwp58d7r92sqsk7l2vlqwy518n8b7c7z94jk9gc1bdmjf8sj";
}; };
outputs = [ "out" "dev" "devdoc" "man" "doc" ]; outputs = [ "out" "dev" "devdoc" "man" "doc" ];
@ -41,7 +41,6 @@ in stdenv.mkDerivation rec {
"-Dcrypto=gnutls" "-Dcrypto=gnutls"
"-Dsession_tracking=systemd" "-Dsession_tracking=systemd"
"-Dmodem_manager=true" "-Dmodem_manager=true"
"-Dpolkit_agent=true"
"-Dnmtui=true" "-Dnmtui=true"
"-Ddocs=true" "-Ddocs=true"
"-Dtests=no" "-Dtests=no"
@ -49,12 +48,14 @@ in stdenv.mkDerivation rec {
# Allow using iwd when configured to do so # Allow using iwd when configured to do so
"-Diwd=true" "-Diwd=true"
"-Dlibaudit=yes-disabled-by-default" "-Dlibaudit=yes-disabled-by-default"
# We don't use firewalld in NixOS
"-Dfirewalld_zone=false"
]; ];
patches = [ patches = [
(substituteAll { (substituteAll {
src = ./fix-paths.patch; src = ./fix-paths.patch;
inherit iputils kmod openconnect ethtool gnused systemd; inherit iputils kmod openconnect ethtool gnused systemd polkit;
inherit runtimeShell; inherit runtimeShell;
}) })

View File

@ -1,8 +1,8 @@
diff --git a/meson.build b/meson.build diff --git a/meson.build b/meson.build
index 0af69f35d..9ab239c8a 100644 index a2d925a7e..5a65cd2fe 100644
--- a/meson.build --- a/meson.build
+++ b/meson.build +++ b/meson.build
@@ -912,9 +912,9 @@ meson.add_install_script( @@ -959,9 +959,9 @@ meson.add_install_script(
join_paths('tools', 'meson-post-install.sh'), join_paths('tools', 'meson-post-install.sh'),
nm_datadir, nm_datadir,
nm_bindir, nm_bindir,

View File

@ -1,8 +1,21 @@
diff --git a/clients/common/nm-polkit-listener.c b/clients/common/nm-polkit-listener.c
index ace205e80..f19c1dea0 100644
--- a/clients/common/nm-polkit-listener.c
+++ b/clients/common/nm-polkit-listener.c
@@ -552,7 +552,7 @@ begin_authentication (AuthRequest *request)
{
int fd_flags;
const char *helper_argv[] = {
- POLKIT_PACKAGE_PREFIX "/lib/polkit-1/polkit-agent-helper-1",
+ "/run/wrappers/bin/polkit-agent-helper-1",
request->username,
NULL,
};
diff --git a/clients/common/nm-vpn-helpers.c b/clients/common/nm-vpn-helpers.c diff --git a/clients/common/nm-vpn-helpers.c b/clients/common/nm-vpn-helpers.c
index ffae5f553..ba1093e4d 100644 index 74ff52bb2..638857df4 100644
--- a/clients/common/nm-vpn-helpers.c --- a/clients/common/nm-vpn-helpers.c
+++ b/clients/common/nm-vpn-helpers.c +++ b/clients/common/nm-vpn-helpers.c
@@ -203,10 +203,7 @@ nm_vpn_openconnect_authenticate_helper (const char *host, @@ -213,10 +213,7 @@ nm_vpn_openconnect_authenticate_helper (const char *host,
NULL, NULL,
}; };
@ -40,35 +53,25 @@ index 91ebd9a36..5201a56c3 100644
ExecStart=@sbindir@/NetworkManager --no-daemon ExecStart=@sbindir@/NetworkManager --no-daemon
Restart=on-failure Restart=on-failure
diff --git a/libnm/meson.build b/libnm/meson.build diff --git a/libnm/meson.build b/libnm/meson.build
index 51ca46d2b..0c04cc216 100644 index d3991ab19..58f01c666 100644
--- a/libnm/meson.build --- a/libnm/meson.build
+++ b/libnm/meson.build +++ b/libnm/meson.build
@@ -261,7 +261,7 @@ if enable_introspection @@ -283,7 +283,6 @@ if enable_introspection
name, output: 'nm-settings-docs-gir.xml',
input: libnm_gir[0], command: [
output: name, generate_setting_docs_env,
- command: [generate_setting_docs_env, python.path(), generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'], - python.path(),
+ command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'], join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-gir.py'),
depends: libnm_gir, '--lib-path', meson.current_build_dir(),
) '--gir', '@INPUT@',
@@ -270,7 +270,7 @@ if enable_introspection
name,
input: [libnm_gir[0], nm_settings_docs_overrides],
output: name,
- command: [generate_setting_docs_env, python.path(), generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT0@', '--overrides', '@INPUT1@', '--output', '@OUTPUT@'],
+ command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT0@', '--overrides', '@INPUT1@', '--output', '@OUTPUT@'],
depends: libnm_gir,
)
endif
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index e7a4a059a..0a8f8b7c6 100644 index de09e4807..2755db165 100644
--- a/src/devices/nm-device.c --- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c +++ b/src/devices/nm-device.c
@@ -13179,14 +13179,14 @@ nm_device_start_ip_check (NMDevice *self) @@ -13705,14 +13705,14 @@ nm_device_start_ip_check (NMDevice *self)
gw = nm_ip4_config_best_default_route_get (priv->ip_config_4); gw = nm_ip4_config_best_default_route_get (priv->ip_config_4);
if (gw) { if (gw) {
nm_utils_inet4_ntop (NMP_OBJECT_CAST_IP4_ROUTE (gw)->gateway, buf); _nm_utils_inet4_ntop (NMP_OBJECT_CAST_IP4_ROUTE (gw)->gateway, buf);
- ping_binary = nm_utils_find_helper ("ping", "/usr/bin/ping", NULL); - ping_binary = nm_utils_find_helper ("ping", "/usr/bin/ping", NULL);
+ ping_binary = "@iputils@/bin/ping"; + ping_binary = "@iputils@/bin/ping";
log_domain = LOGD_IP4; log_domain = LOGD_IP4;
@ -76,14 +79,14 @@ index e7a4a059a..0a8f8b7c6 100644
} else if (priv->ip_config_6 && priv->ip_state_6 == NM_DEVICE_IP_STATE_DONE) { } else if (priv->ip_config_6 && priv->ip_state_6 == NM_DEVICE_IP_STATE_DONE) {
gw = nm_ip6_config_best_default_route_get (priv->ip_config_6); gw = nm_ip6_config_best_default_route_get (priv->ip_config_6);
if (gw) { if (gw) {
nm_utils_inet6_ntop (&NMP_OBJECT_CAST_IP6_ROUTE (gw)->gateway, buf); _nm_utils_inet6_ntop (&NMP_OBJECT_CAST_IP6_ROUTE (gw)->gateway, buf);
- ping_binary = nm_utils_find_helper ("ping6", "/usr/bin/ping6", NULL); - ping_binary = nm_utils_find_helper ("ping6", "/usr/bin/ping6", NULL);
+ ping_binary = "@iputils@/bin/ping"; + ping_binary = "@iputils@/bin/ping";
log_domain = LOGD_IP6; log_domain = LOGD_IP6;
} }
} }
diff --git a/src/nm-core-utils.c b/src/nm-core-utils.c diff --git a/src/nm-core-utils.c b/src/nm-core-utils.c
index fb92289f0..c91b27b09 100644 index 3950c3c3a..a9436d75a 100644
--- a/src/nm-core-utils.c --- a/src/nm-core-utils.c
+++ b/src/nm-core-utils.c +++ b/src/nm-core-utils.c
@@ -336,7 +336,7 @@ nm_utils_modprobe (GError **error, gboolean suppress_error_logging, const char * @@ -336,7 +336,7 @@ nm_utils_modprobe (GError **error, gboolean suppress_error_logging, const char *