From d6540cbb06baf7bf1d0d93b07fccff658ddbb250 Mon Sep 17 00:00:00 2001 From: Paul Healy Date: Tue, 10 Mar 2026 12:20:00 +0000 Subject: [PATCH] media-sound/pasystray: fix init and destroy arguments Thanks Philipp Ludwig for the patch. Bug: https://bugs.gentoo.org/946656 Signed-off-by: Paul Healy Part-of: https://github.com/gentoo/gentoo/pull/45913 Closes: https://github.com/gentoo/gentoo/pull/45913 Signed-off-by: Sam James --- .../files/fix-init-destroy-arguments.patch | 16 ++++++++++++++++ media-sound/pasystray/pasystray-0.8.2.ebuild | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 media-sound/pasystray/files/fix-init-destroy-arguments.patch diff --git a/media-sound/pasystray/files/fix-init-destroy-arguments.patch b/media-sound/pasystray/files/fix-init-destroy-arguments.patch new file mode 100644 index 0000000000000..0e50e76c5f07e --- /dev/null +++ b/media-sound/pasystray/files/fix-init-destroy-arguments.patch @@ -0,0 +1,16 @@ +diff '--color=auto' -ur a/src/pasystray.h b/src/pasystray.h +--- a/src/pasystray.h 2023-02-10 22:11:00.000000000 +0100 ++++ b/src/pasystray.h 2026-01-02 13:43:52.730670950 +0100 +@@ -22,8 +22,10 @@ + #ifndef PASYSTRAY_PASYSTRAY_H + #define PASYSTRAY_PASYSTRAY_H + +-void init(); ++#include "menu_info.h" ++ ++void init(settings_t*); + void quit(); +-void destroy(); ++void destroy(settings_t*); + + #endif /* PASYSTRAY_PASYSTRAY_H */ diff --git a/media-sound/pasystray/pasystray-0.8.2.ebuild b/media-sound/pasystray/pasystray-0.8.2.ebuild index e510dfef99bdf..6df5604031ed5 100644 --- a/media-sound/pasystray/pasystray-0.8.2.ebuild +++ b/media-sound/pasystray/pasystray-0.8.2.ebuild @@ -30,6 +30,8 @@ BDEPEND=" virtual/pkgconfig " +PATCHES=( "${FILESDIR}/fix-init-destroy-arguments.patch" ) + src_prepare() { default eautoreconf