mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
xfce4-power-manager: downgrade to 1.6.6
This reverts commit d6adc35579
.
1.7.0 is a development release
This commit is contained in:
parent
4e640803c5
commit
7b82082ed9
3 changed files with 76 additions and 2 deletions
72
srcpkgs/xfce4-power-manager/patches/void.patch
Normal file
72
srcpkgs/xfce4-power-manager/patches/void.patch
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
--- src/xfpm-pm-helper.c.orig 2019-08-13 12:17:22.787621859 +0200
|
||||||
|
+++ src/xfpm-pm-helper.c 2019-08-13 12:18:31.946471555 +0200
|
||||||
|
@@ -69,11 +69,8 @@
|
||||||
|
#define UP_BACKEND_SUSPEND_COMMAND "/usr/sbin/acpiconf -s 3"
|
||||||
|
#define UP_BACKEND_HIBERNATE_COMMAND "/usr/sbin/acpiconf -s 4"
|
||||||
|
#endif
|
||||||
|
-#ifdef BACKEND_TYPE_LINUX
|
||||||
|
-#define UP_BACKEND_SUSPEND_COMMAND "/usr/sbin/pm-suspend"
|
||||||
|
-#define UP_BACKEND_HIBERNATE_COMMAND "/usr/sbin/pm-hibernate"
|
||||||
|
-#endif
|
||||||
|
-#ifdef BACKEND_TYPE_OPENBSD
|
||||||
|
+/* voidlinux and openbsd use zzz(8) */
|
||||||
|
+#if defined(BACKEND_TYPE_LINUX) || defined(BACKEND_TYPE_OPENBSD)
|
||||||
|
#define UP_BACKEND_SUSPEND_COMMAND "/usr/sbin/zzz"
|
||||||
|
#define UP_BACKEND_HIBERNATE_COMMAND "/usr/sbin/ZZZ"
|
||||||
|
#endif
|
||||||
|
--- src/xfpm-suspend.c.orig 2019-08-13 12:19:21.476080088 +0200
|
||||||
|
+++ src/xfpm-suspend.c 2019-08-13 12:20:59.699286887 +0200
|
||||||
|
@@ -101,35 +101,6 @@ freebsd_supports_sleep_state (const gcha
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#ifdef BACKEND_TYPE_LINUX
|
||||||
|
-static gboolean
|
||||||
|
-linux_supports_sleep_state (const gchar *state)
|
||||||
|
-{
|
||||||
|
- gboolean ret = FALSE;
|
||||||
|
- gchar *command;
|
||||||
|
- GError *error = NULL;
|
||||||
|
- gint exit_status;
|
||||||
|
-
|
||||||
|
- XFPM_DEBUG("entering");
|
||||||
|
-
|
||||||
|
- /* run script from pm-utils */
|
||||||
|
- command = g_strdup_printf ("/usr/bin/pm-is-supported --%s", state);
|
||||||
|
- g_debug ("executing command: %s", command);
|
||||||
|
- ret = g_spawn_command_line_sync (command, NULL, NULL, &exit_status, &error);
|
||||||
|
- if (!ret) {
|
||||||
|
- g_warning ("failed to run script: %s", error->message);
|
||||||
|
- g_error_free (error);
|
||||||
|
- goto out;
|
||||||
|
- }
|
||||||
|
- ret = (WIFEXITED(exit_status) && (WEXITSTATUS(exit_status) == EXIT_SUCCESS));
|
||||||
|
-
|
||||||
|
-out:
|
||||||
|
- g_free (command);
|
||||||
|
-
|
||||||
|
- return ret;
|
||||||
|
-}
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
xfpm_suspend_can_suspend (void)
|
||||||
|
@@ -139,7 +110,7 @@ xfpm_suspend_can_suspend (void)
|
||||||
|
return freebsd_supports_sleep_state ("S3");
|
||||||
|
#endif
|
||||||
|
#ifdef BACKEND_TYPE_LINUX
|
||||||
|
- return linux_supports_sleep_state ("suspend");
|
||||||
|
+ return TRUE;
|
||||||
|
#endif
|
||||||
|
#ifdef BACKEND_TYPE_OPENBSD
|
||||||
|
return TRUE;
|
||||||
|
@@ -156,7 +127,7 @@ xfpm_suspend_can_hibernate (void)
|
||||||
|
return freebsd_supports_sleep_state ("S4");
|
||||||
|
#endif
|
||||||
|
#ifdef BACKEND_TYPE_LINUX
|
||||||
|
- return linux_supports_sleep_state ("hibernate");
|
||||||
|
+ return TRUE;
|
||||||
|
#endif
|
||||||
|
#ifdef BACKEND_TYPE_OPENBSD
|
||||||
|
return TRUE;
|
|
@ -1,6 +1,7 @@
|
||||||
# Template file for 'xfce4-power-manager'
|
# Template file for 'xfce4-power-manager'
|
||||||
pkgname=xfce4-power-manager
|
pkgname=xfce4-power-manager
|
||||||
version=1.7.0
|
reverts=1.7.0_1
|
||||||
|
version=1.6.6
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
configure_args="--disable-static"
|
||||||
|
@ -12,4 +13,4 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://xfce.org/"
|
homepage="https://xfce.org/"
|
||||||
distfiles="https://archive.xfce.org/src/xfce/$pkgname/${version%.*}/$pkgname-$version.tar.bz2"
|
distfiles="https://archive.xfce.org/src/xfce/$pkgname/${version%.*}/$pkgname-$version.tar.bz2"
|
||||||
checksum=45368ccf70f5a87ba9c8b732e2462ecbc0184550e7cc54a58cbeb74086e7124b
|
checksum=1b7bf0d3e8af69b10f7b6a518451e01fc7888e0d9d360bc33f6c89179bb6080b
|
||||||
|
|
1
srcpkgs/xfce4-power-manager/update
Normal file
1
srcpkgs/xfce4-power-manager/update
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ignore="*.*[13579].*"
|
Loading…
Add table
Reference in a new issue