]> git.pld-linux.org Git - packages/NetworkManager.git/blobdiff - systemd-fallback.patch
- updated to 1.48.0
[packages/NetworkManager.git] / systemd-fallback.patch
index fb8c91307ed9e273d2abaa97fd39691b7893d261..e527239789771527f9c44aad34e13b806db2917a 100644 (file)
@@ -9,15 +9,15 @@
  else
        have_systemd_logind=no
  fi
  else
        have_systemd_logind=no
  fi
---- NetworkManager-1.28.0/src/core/nm-session-monitor.c.orig   2020-11-17 22:24:23.000000000 +0100
-+++ NetworkManager-1.28.0/src/core/nm-session-monitor.c        2020-12-07 17:27:16.046393625 +0100
+--- NetworkManager-1.34.0/src/core/nm-session-monitor.c.orig   2022-01-13 15:49:26.000000000 +0100
++++ NetworkManager-1.34.0/src/core/nm-session-monitor.c        2022-01-13 20:47:31.545775434 +0100
 @@ -18,6 +18,7 @@
  #endif
  
  #if SESSION_TRACKING_SYSTEMD
 @@ -18,6 +18,7 @@
  #endif
  
  #if SESSION_TRACKING_SYSTEMD
-+    #include <systemd/sd-daemon.h>
    #include <systemd/sd-login.h>
    #define LOGIND_NAME "systemd-logind"
++#include <systemd/sd-daemon.h>
+ #include <systemd/sd-login.h>
+ #define LOGIND_NAME "systemd-logind"
  #endif
 @@ -52,13 +53,11 @@ struct _NMSessionMonitor {
      } sd;
  #endif
 @@ -52,13 +53,11 @@ struct _NMSessionMonitor {
      } sd;
@@ -26,7 +26,7 @@
 -#if SESSION_TRACKING_CONSOLEKIT
      struct {
          GFileMonitor *monitor;
 -#if SESSION_TRACKING_CONSOLEKIT
      struct {
          GFileMonitor *monitor;
-         GHashTable *  cache;
+         GHashTable   *cache;
          time_t        timestamp;
      } ck;
 -#endif
          time_t        timestamp;
      } ck;
 -#endif
  
      G_OBJECT_CLASS(nm_session_monitor_parent_class)->finalize(object);
  }
  
      G_OBJECT_CLASS(nm_session_monitor_parent_class)->finalize(object);
  }
---- NetworkManager-1.28.0/src/core/nm-sleep-monitor.c.orig     2020-11-17 22:24:23.000000000 +0100
-+++ NetworkManager-1.28.0/src/core/nm-sleep-monitor.c  2020-12-07 21:18:39.301181579 +0100
-@@ -11,6 +11,10 @@
+--- NetworkManager-1.48.0/src/core/nm-power-monitor.c.orig     2024-05-31 13:23:57.000000000 +0200
++++ NetworkManager-1.48.0/src/core/nm-power-monitor.c  2024-06-01 08:21:35.884268446 +0200
+@@ -11,15 +11,19 @@
  #include <sys/stat.h>
  #include <gio/gunixfdlist.h>
  
  #include <sys/stat.h>
  #include <gio/gunixfdlist.h>
  
 +# include <systemd/sd-daemon.h>
 +#endif
 +
 +# include <systemd/sd-daemon.h>
 +#endif
 +
+ #include "libnm-glib-aux/nm-dbus-aux.h"
  #include "libnm-core-intern/nm-core-internal.h"
  #include "NetworkManagerUtils.h"
  
  #include "libnm-core-intern/nm-core-internal.h"
  #include "NetworkManagerUtils.h"
  
-@@ -24,9 +28,9 @@
+ #if defined(SUSPEND_RESUME_SYSTEMD) || defined(SUSPEND_RESUME_ELOGIND)
  
  
- #elif defined(SUSPEND_RESUME_SYSTEMD) || defined(SUSPEND_RESUME_ELOGIND)
--    #define SUSPEND_DBUS_NAME      "org.freedesktop.login1"
--    #define SUSPEND_DBUS_PATH      "/org/freedesktop/login1"
--    #define SUSPEND_DBUS_INTERFACE "org.freedesktop.login1.Manager"
-+    #define SD_SUSPEND_DBUS_NAME      "org.freedesktop.login1"
-+    #define SD_SUSPEND_DBUS_PATH      "/org/freedesktop/login1"
-+    #define SD_SUSPEND_DBUS_INTERFACE "org.freedesktop.login1.Manager"
-     #define USE_UPOWER             0
-     #if defined(SUSPEND_RESUME_SYSTEMD)
-         #define _NMLOG_PREFIX_NAME "sleep-monitor-sd"
-@@ -36,6 +40,17 @@
+-#define SUSPEND_DBUS_NAME      "org.freedesktop.login1"
+-#define SUSPEND_DBUS_PATH      "/org/freedesktop/login1"
+-#define SUSPEND_DBUS_INTERFACE "org.freedesktop.login1.Manager"
++#define SD_SUSPEND_DBUS_NAME      "org.freedesktop.login1"
++#define SD_SUSPEND_DBUS_PATH      "/org/freedesktop/login1"
++#define SD_SUSPEND_DBUS_INTERFACE "org.freedesktop.login1.Manager"
+ #if defined(SUSPEND_RESUME_SYSTEMD)
+ #define _NMLOG_PREFIX_NAME "power-monitor-sd"
+ #else
+@@ -28,6 +32,10 @@
  
  #elif defined(SUSPEND_RESUME_CONSOLEKIT)
  
  
  #elif defined(SUSPEND_RESUME_CONSOLEKIT)
  
-+    #define USE_UPOWER                      0
-+    #define _NMLOG_PREFIX_NAME              "sleep-monitor-ck"
-+
-+#else
-+
-+#error define one of SUSPEND_RESUME_SYSTEMD, SUSPEND_RESUME_ELOGIND, SUSPEND_RESUME_CONSOLEKIT, or SUSPEND_RESUME_UPOWER
-+
 +#endif
 +
 +#endif
 +
-+#if defined (SUSPEND_RESUME_SYSTEMD) || defined(SUSPEND_RESUME_CONSOLEKIT)
++#if defined (SUSPEND_RESUME_SYSTEMD) || defined (SUSPEND_RESUME_ELOGIND) || defined(SUSPEND_RESUME_CONSOLEKIT)
 + 
  /* ConsoleKit2 has added the same suspend/resume DBUS API that Systemd
   * uses. http://consolekit2.github.io/ConsoleKit2/#Manager.Inhibit
   */
 + 
  /* ConsoleKit2 has added the same suspend/resume DBUS API that Systemd
   * uses. http://consolekit2.github.io/ConsoleKit2/#Manager.Inhibit
   */
-@@ -43,12 +58,6 @@
-     #define SUSPEND_DBUS_NAME      "org.freedesktop.ConsoleKit"
-     #define SUSPEND_DBUS_PATH      "/org/freedesktop/ConsoleKit/Manager"
-     #define SUSPEND_DBUS_INTERFACE "org.freedesktop.ConsoleKit.Manager"
--    #define USE_UPOWER             0
--    #define _NMLOG_PREFIX_NAME     "sleep-monitor-ck"
--
--#else
--
--    #error define one of SUSPEND_RESUME_SYSTEMD, SUSPEND_RESUME_ELOGIND, SUSPEND_RESUME_CONSOLEKIT, or SUSPEND_RESUME_UPOWER
- #endif
-@@ -329,6 +338,20 @@ nm_sleep_monitor_init(NMSleepMonitor *se
+@@ -292,6 +300,20 @@ nm_power_monitor_init(NMPowerMonitor *se
  {
      self->inhibit_fd  = -1;
      self->cancellable = g_cancellable_new();
  {
      self->inhibit_fd  = -1;
      self->cancellable = g_cancellable_new();
This page took 0.032165 seconds and 4 git commands to generate.