mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
Merge pull request #71011 from worldofpeace/nm-1.20.4
networkmanager: 1.20.2 -> 1.20.4
This commit is contained in:
commit
41bfe6ff7b
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, dbus, nettle
|
||||
{ stdenv, fetchurl, pkgconfig, dbus, nettle, fetchpatch
|
||||
, libidn, libnetfilter_conntrack }:
|
||||
|
||||
with stdenv.lib;
|
||||
@ -19,6 +19,15 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1fv3g8vikj3sn37x1j6qsywn09w1jipvlv34j3q5qrljbrwa5ayd";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with nettle 3.5
|
||||
(fetchpatch {
|
||||
name = "nettle-3.5.patch";
|
||||
url = "thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=patch;h=ab73a746a0d6fcac2e682c5548eeb87fb9c9c82e";
|
||||
sha256 = "1hnixij3jp1p6zc3bx2dr92yyf9jp1ahhl9hiiq7bkbhbrw6mbic";
|
||||
})
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray=("COPTS=${copts}")
|
||||
'';
|
||||
|
@ -10,11 +10,11 @@ let
|
||||
pythonForDocs = python3.withPackages (pkgs: with pkgs; [ pygobject3 ]);
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "network-manager";
|
||||
version = "1.20.2";
|
||||
version = "1.20.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/NetworkManager/${stdenv.lib.versions.majorMinor version}/NetworkManager-${version}.tar.xz";
|
||||
sha256 = "115cgz448vypc7c592lqqjd7lp2kzdczhjk4ran6qls65hzkfkji";
|
||||
sha256 = "0k4i6m8acp48vl6l13267wv6kfkmzfjq2mraaa5m9n82wyvkimx3";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" "man" "doc" ];
|
||||
@ -51,15 +51,6 @@ in stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
patches = [
|
||||
# 1.20.2 added a decorators.sh script but they forgot to distribute it (breaking the build)
|
||||
# as it was to fix things with gtk-doc 1.32 we can safely revert it.
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.freedesktop.org/NetworkManager/NetworkManager/commit/2d941dc95a1d94d023ac8f98df2f344dbb1d223e.patch";
|
||||
sha256 = "1mvbajddwd6diwk6dgjg5p65i6852gx6b9p3949rs63d2i6yzg21";
|
||||
excludes = [ "tools/decorators.sh" ];
|
||||
revert = true;
|
||||
})
|
||||
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
inherit iputils kmod openconnect ethtool gnused dbus;
|
||||
|
@ -39,11 +39,33 @@ index 2f442bf23..c3e797bf4 100644
|
||||
#ExecReload=/bin/kill -HUP $MAINPID
|
||||
ExecStart=@sbindir@/NetworkManager --no-daemon
|
||||
Restart=on-failure
|
||||
diff --git a/libnm/meson.build b/libnm/meson.build
|
||||
index 710ef181d..3aa182dd4 100644
|
||||
--- a/libnm/meson.build
|
||||
+++ b/libnm/meson.build
|
||||
@@ -280,7 +280,7 @@ if enable_introspection
|
||||
name,
|
||||
input: libnm_gir[0],
|
||||
output: name,
|
||||
- command: [generate_setting_docs_env, python.path(), generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'],
|
||||
+ command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--output', '@OUTPUT@'],
|
||||
depends: libnm_gir,
|
||||
)
|
||||
|
||||
@@ -289,7 +289,7 @@ if enable_introspection
|
||||
name,
|
||||
input: libnm_gir[0],
|
||||
output: name,
|
||||
- command: [generate_setting_docs_env, python.path(), generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--overrides', nm_settings_docs_overrides, '--output', '@OUTPUT@'],
|
||||
+ command: [generate_setting_docs_env, generate_setting_docs, '--lib-path', meson.current_build_dir(), '--gir', '@INPUT@', '--overrides', nm_settings_docs_overrides, '--output', '@OUTPUT@'],
|
||||
depends: libnm_gir,
|
||||
)
|
||||
endif
|
||||
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
|
||||
index 823cf48a5..cda16e48d 100644
|
||||
index 67e23b8f9..b0ce52711 100644
|
||||
--- a/src/devices/nm-device.c
|
||||
+++ b/src/devices/nm-device.c
|
||||
@@ -12822,14 +12822,14 @@ nm_device_start_ip_check (NMDevice *self)
|
||||
@@ -12840,14 +12840,14 @@ nm_device_start_ip_check (NMDevice *self)
|
||||
gw = nm_ip4_config_best_default_route_get (priv->ip_config_4);
|
||||
if (gw) {
|
||||
nm_utils_inet4_ntop (NMP_OBJECT_CAST_IP4_ROUTE (gw)->gateway, buf);
|
||||
|
Loading…
Reference in New Issue
Block a user