x11-plugins/purple-libnotify-plus: Update gcc-11 patch

The old patch did not fix the code correctly, so update it to enable the
plugin to work. Thanks to Bill Prendergast for providing the patch.

Fixes: 8a296ea717812962ffe8a8aef243e3e8c34646d6
Closes: https://bugs.gentoo.org/955791
Bug: https://bugs.gentoo.org/717422
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
This commit is contained in:
Jakov Smolić 2025-05-11 21:04:44 +02:00
parent d2dd1d1ea6
commit b28ab1cec6
No known key found for this signature in database
GPG Key ID: 82295E1EFAE3208F
2 changed files with 25 additions and 3 deletions

View File

@ -1,11 +1,33 @@
# https://bugs.gentoo.org/955791
# https://bugs.gentoo.org/717422
# From: Bill Prendergast <dek.devel@baisenvar.info>
--- a/src/purple-libnotify+-common.h
+++ b/src/purple-libnotify+-common.h
@@ -27,7 +27,7 @@
@@ -27,13 +27,14 @@
extern PurplePlugin *notify_plus;
-struct
+extern struct
+struct notify_plus_data_
{
gboolean modify_notification;
gboolean use_svg;
gboolean overlay_icon;
gboolean set_transcient;
gboolean actions;
-} notify_plus_data;
+};
+extern struct notify_plus_data_ notify_plus_data;
#endif /* __PURPLE_LIBNOTIFY_PLUS_COMMON_H__ */
--- a/src/purple-libnotify+.c
+++ b/src/purple-libnotify+.c
@@ -30,6 +30,7 @@
#include "purple-libnotify+-frames.h"
PurplePlugin *notify_plus = NULL;
+struct notify_plus_data_ notify_plus_data;
static void
_purple_notify_plus_signed_on(PurpleBuddy *buddy, PurplePlugin *plugin)

View File

@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7