diff options
author | gutteridge <gutteridge@pkgsrc.org> | 2020-03-01 19:47:22 +0000 |
---|---|---|
committer | gutteridge <gutteridge@pkgsrc.org> | 2020-03-01 19:47:22 +0000 |
commit | 32d0a76c24f736c11f5d5cef448ba46340cca988 (patch) | |
tree | 9f9ec738d0a2598d26c36860323337ea71d0834b /x11 | |
parent | 15c0b10e4f137414ebb5f40ebd0bc0948eb23af7 (diff) | |
download | pkgsrc-32d0a76c24f736c11f5d5cef448ba46340cca988.tar.gz |
xfce4-session: fix compilation on !Linux !*BSD
More work would be required should someone want suspension or
hibernation to function in this case, this is simply a build fix.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xfce4-session/Makefile | 3 | ||||
-rw-r--r-- | x11/xfce4-session/distinfo | 3 | ||||
-rw-r--r-- | x11/xfce4-session/patches/patch-xfce4-session_xfsm-shutdown-fallback.c | 44 |
3 files changed, 48 insertions, 2 deletions
diff --git a/x11/xfce4-session/Makefile b/x11/xfce4-session/Makefile index 8558da53077..e30d61b6c1d 100644 --- a/x11/xfce4-session/Makefile +++ b/x11/xfce4-session/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.80 2020/01/29 04:56:19 gutteridge Exp $ +# $NetBSD: Makefile,v 1.81 2020/03/01 19:47:22 gutteridge Exp $ .include "../../meta-pkgs/xfce4/Makefile.common" DISTNAME= xfce4-session-4.14.1 +PKGREVISION= 1 CATEGORIES= x11 MASTER_SITES+= https://archive.xfce.org/src/xfce/xfce4-session/4.14/ diff --git a/x11/xfce4-session/distinfo b/x11/xfce4-session/distinfo index a1d82acb845..98a3a309843 100644 --- a/x11/xfce4-session/distinfo +++ b/x11/xfce4-session/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.27 2020/01/29 04:45:19 gutteridge Exp $ +$NetBSD: distinfo,v 1.28 2020/03/01 19:47:22 gutteridge Exp $ SHA1 (xfce4-session-4.14.1.tar.bz2) = 1e44eb63a87fa797dbd80fc0a956ebc7a585c3cc RMD160 (xfce4-session-4.14.1.tar.bz2) = 896b9cc17947a1fa21b05c85c710266dc4e722fe @@ -10,4 +10,5 @@ SHA1 (patch-configure) = ef67202879c09f5c02700eac8dd451580c612db6 SHA1 (patch-libxfsm_xfsm-shutdown-common.h) = da51714e0924a0ab28f7da1b161659763dff81d2 SHA1 (patch-scripts_Makefile.in) = 042c3d9c632a57f9acfc8dab43aa6bca8ec69097 SHA1 (patch-settings_xfce4-session.xml) = 7e990e73d8dab022f3ebd2d4daa24ebc8dcf95a1 +SHA1 (patch-xfce4-session_xfsm-shutdown-fallback.c) = b57375c63b282624b9196b18ea59d98c63fdc326 SHA1 (patch-xfsm-shutdown-helper_main.c) = db2dc4a7ce729b72092fa2777fd178cb3b7be258 diff --git a/x11/xfce4-session/patches/patch-xfce4-session_xfsm-shutdown-fallback.c b/x11/xfce4-session/patches/patch-xfce4-session_xfsm-shutdown-fallback.c new file mode 100644 index 00000000000..98d982d319a --- /dev/null +++ b/x11/xfce4-session/patches/patch-xfce4-session_xfsm-shutdown-fallback.c @@ -0,0 +1,44 @@ +$NetBSD: patch-xfce4-session_xfsm-shutdown-fallback.c,v 1.1 2020/03/01 19:47:23 gutteridge Exp $ + +Fix compilation on OSes other than Linux and the *BSDs. + +--- xfce4-session/xfsm-shutdown-fallback.c.orig 2019-05-17 12:46:28.000000000 +0000 ++++ xfce4-session/xfsm-shutdown-fallback.c +@@ -371,7 +371,9 @@ xfsm_shutdown_fallback_try_action (XfsmS + GError **error) + { + const gchar *xfsm_helper_action; ++#ifdef __BACKEND_TYPE_BSD__ + const gchar *cmd __attribute__((unused)); ++#endif + gboolean ret = FALSE; + gint exit_status = 0; + #ifdef HAVE_POLKIT +@@ -390,21 +392,27 @@ xfsm_shutdown_fallback_try_action (XfsmS + break; + case XFSM_SHUTDOWN_SUSPEND: + xfsm_helper_action = "suspend"; ++#ifdef __BACKEND_TYPE_BSD__ + cmd = UP_BACKEND_SUSPEND_COMMAND; ++#endif + /* On suspend we try to lock the screen */ + if (!lock_screen (error)) + return FALSE; + break; + case XFSM_SHUTDOWN_HIBERNATE: + xfsm_helper_action = "hibernate"; ++#ifdef __BACKEND_TYPE_BSD__ + cmd = UP_BACKEND_HIBERNATE_COMMAND; ++#endif + /* On hibernate we try to lock the screen */ + if (!lock_screen (error)) + return FALSE; + break; + case XFSM_SHUTDOWN_HYBRID_SLEEP: + xfsm_helper_action = "hybrid-sleep"; ++#ifdef __BACKEND_TYPE_BSD__ + cmd = UP_BACKEND_HIBERNATE_COMMAND; ++#endif + /* On hybrid sleep we try to lock the screen */ + if (!lock_screen (error)) + return FALSE; |