From ca114fc0c6a1ea7b23b28615d99afc04bd4c6252 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Wed, 15 Jun 2022 16:43:47 +0200 Subject: [PATCH] Added patch --- gui-wm/phosh/files/polkitagent.patch | 15 +++++++++++++++ gui-wm/phosh/phosh-0.20.0_beta1.ebuild | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 gui-wm/phosh/files/polkitagent.patch diff --git a/gui-wm/phosh/files/polkitagent.patch b/gui-wm/phosh/files/polkitagent.patch new file mode 100644 index 0000000..c9e120a --- /dev/null +++ b/gui-wm/phosh/files/polkitagent.patch @@ -0,0 +1,15 @@ +diff --git a/src/polkit-auth-agent.h b/src/polkit-auth-agent.h +index fe7e808..88b8a19 100644 +--- a/src/polkit-auth-agent.h ++++ b/src/polkit-auth-agent.h +@@ -19,7 +19,11 @@ G_BEGIN_DECLS + #if POLKIT_AGENT_MAJOR_VERSION == 0 && POLKIT_AGENT_MINOR_VERSION < 114 + G_DEFINE_AUTOPTR_CLEANUP_FUNC(PolkitSubject, g_object_unref) + #endif ++ ++/* libpolkitAgentListener lacks these */ ++#if POLKIT_AGENT_MAJOR_VERSION == 0 && POLKIT_AGENT_MINOR_VERSION < 120 + G_DEFINE_AUTOPTR_CLEANUP_FUNC(PolkitAgentListener, g_object_unref) ++#endif + + #define PHOSH_TYPE_POLKIT_AUTH_AGENT (phosh_polkit_auth_agent_get_type()) diff --git a/gui-wm/phosh/phosh-0.20.0_beta1.ebuild b/gui-wm/phosh/phosh-0.20.0_beta1.ebuild index c7ff301..667fd4f 100755 --- a/gui-wm/phosh/phosh-0.20.0_beta1.ebuild +++ b/gui-wm/phosh/phosh-0.20.0_beta1.ebuild @@ -52,6 +52,9 @@ src_prepare() { mv "${WORKDIR}"/libgnome-volume-control-"${LVC_COMMIT}" "${S}"/subprojects/gvc || die rm -r "${S}"/subprojects/libcall-ui || die mv "${WORKDIR}"/libcall-ui-"${LCU_COMMIT}" "${S}"/subprojects/libcall-ui || die + + local PATCHES=( + "${FILESDIR}"/polkitagent.patch } src_install() {