From 3c834d2a1255a0b7e100979a27251faf19f6f981 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Mon, 1 Jul 2019 08:29:00 +0700 Subject: [PATCH] cinnamon-settings-daemon: Add upstream patch. Signed-off-by: Willy Sudiarto Raharjo --- ...e3af333c34d19e288cd77a208440f0fe6820.patch | 28 +++++++++++++++++++ .../cinnamon-settings-daemon.SlackBuild | 1 + 2 files changed, 29 insertions(+) create mode 100644 cinnamon-settings-daemon/a3b1e3af333c34d19e288cd77a208440f0fe6820.patch diff --git a/cinnamon-settings-daemon/a3b1e3af333c34d19e288cd77a208440f0fe6820.patch b/cinnamon-settings-daemon/a3b1e3af333c34d19e288cd77a208440f0fe6820.patch new file mode 100644 index 0000000..8420c0e --- /dev/null +++ b/cinnamon-settings-daemon/a3b1e3af333c34d19e288cd77a208440f0fe6820.patch @@ -0,0 +1,28 @@ +From a3b1e3af333c34d19e288cd77a208440f0fe6820 Mon Sep 17 00:00:00 2001 +From: Michael Webster +Date: Sun, 30 Jun 2019 18:44:10 -0400 +Subject: [PATCH] csd-power-manager.c: Define UP_DEVICE_LEVEL_NONE for + ourselves if it's missing. UpDeviceLevel was new in 0.99.0. + +related commit in cinnamon: linuxmint/cinnamon@4d1da807ee6e73 + +Fixes #258 +--- + plugins/power/csd-power-manager.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/plugins/power/csd-power-manager.c b/plugins/power/csd-power-manager.c +index 9ca0852..fae6510 100644 +--- a/plugins/power/csd-power-manager.c ++++ b/plugins/power/csd-power-manager.c +@@ -4414,6 +4414,10 @@ csd_power_manager_finalize (GObject *object) + G_OBJECT_CLASS (csd_power_manager_parent_class)->finalize (object); + } + ++#if !UP_CHECK_VERSION(0,99,0) ++#define UP_DEVICE_LEVEL_NONE 1 ++#endif ++ + static GVariant * + device_to_variant_blob (UpDevice *device) + { diff --git a/cinnamon-settings-daemon/cinnamon-settings-daemon.SlackBuild b/cinnamon-settings-daemon/cinnamon-settings-daemon.SlackBuild index 078cb17..fe9fb41 100644 --- a/cinnamon-settings-daemon/cinnamon-settings-daemon.SlackBuild +++ b/cinnamon-settings-daemon/cinnamon-settings-daemon.SlackBuild @@ -72,6 +72,7 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; sed -i "s|UpDeviceLevel battery_level|UpDeviceClass battery_level|g" plugins/power/csd-power-manager.c +patch -p1 < $CWD/a3b1e3af333c34d19e288cd77a208440f0fe6820.patch CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \