commit:     b28ab1cec66081d2f177f4d9e7990a524a22005a
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Sun May 11 19:04:44 2025 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Sun May 11 19:12:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b28ab1ce

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 <AT> gentoo.org>

 .../purple-libnotify-plus-2.99.1-fno-common.patch  | 26 ++++++++++++++++++++--
 ...uild => purple-libnotify-plus-2.99.1-r1.ebuild} |  2 +-
 2 files changed, 25 insertions(+), 3 deletions(-)

diff --git 
a/x11-plugins/purple-libnotify-plus/files/purple-libnotify-plus-2.99.1-fno-common.patch
 
b/x11-plugins/purple-libnotify-plus/files/purple-libnotify-plus-2.99.1-fno-common.patch
index 12d2cdda8de6..f6d2d01209ac 100644
--- 
a/x11-plugins/purple-libnotify-plus/files/purple-libnotify-plus-2.99.1-fno-common.patch
+++ 
b/x11-plugins/purple-libnotify-plus/files/purple-libnotify-plus-2.99.1-fno-common.patch
@@ -1,11 +1,33 @@
+# https://bugs.gentoo.org/955791
+# https://bugs.gentoo.org/717422
+# From: Bill Prendergast <[email protected]>
+
 --- 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)

diff --git 
a/x11-plugins/purple-libnotify-plus/purple-libnotify-plus-2.99.1.ebuild 
b/x11-plugins/purple-libnotify-plus/purple-libnotify-plus-2.99.1-r1.ebuild
similarity index 94%
rename from 
x11-plugins/purple-libnotify-plus/purple-libnotify-plus-2.99.1.ebuild
rename to 
x11-plugins/purple-libnotify-plus/purple-libnotify-plus-2.99.1-r1.ebuild
index 04b255be574f..e1494e1a6b3e 100644
--- a/x11-plugins/purple-libnotify-plus/purple-libnotify-plus-2.99.1.ebuild
+++ b/x11-plugins/purple-libnotify-plus/purple-libnotify-plus-2.99.1-r1.ebuild
@@ -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

Reply via email to