public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: net-irc/srain/files/, net-irc/srain/
@ 2024-12-02 12:52 Takuya Wakazono
  0 siblings, 0 replies; only message in thread
From: Takuya Wakazono @ 2024-12-02 12:52 UTC (permalink / raw
  To: gentoo-commits

commit:     6a791ecd4d13c6acafe4cd985d688971b816712f
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Mon Dec  2 12:51:37 2024 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Mon Dec  2 12:51:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6a791ecd

net-irc/srain: fix build with GCC 15

Closes: https://bugs.gentoo.org/945702
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 net-irc/srain/files/srain-1.7.0-gcc15.patch | 37 +++++++++++++++++++++++++++++
 net-irc/srain/srain-1.7.0.ebuild            |  4 ++++
 2 files changed, 41 insertions(+)

diff --git a/net-irc/srain/files/srain-1.7.0-gcc15.patch b/net-irc/srain/files/srain-1.7.0-gcc15.patch
new file mode 100644
index 000000000..8e26fbf54
--- /dev/null
+++ b/net-irc/srain/files/srain-1.7.0-gcc15.patch
@@ -0,0 +1,37 @@
+https://bugs.gentoo.org/945702
+https://github.com/SrainApp/srain/pull/430
+Fix build with GCC 15.
+--- a/src/core/app.c
++++ b/src/core/app.c
+@@ -234,7 +234,7 @@ SrnRet srn_application_add_server(SrnApplication *app, const char *name){
+     SrnRet ret;
+     SrnServerConfig *srv_cfg;
+ 
+-    srv_cfg = srn_server_config_new(name);
++    srv_cfg = srn_server_config_new();
+     ret = srn_config_manager_read_server_config(app->cfg_mgr, srv_cfg, name);
+     if (!RET_IS_OK(ret)){
+         goto ERR;
+--- a/src/filter/filter2.h
++++ b/src/filter/filter2.h
+@@ -32,7 +32,7 @@ typedef struct _SrnMessageFilter SrnMessageFilter;
+ struct _SrnMessageFilter {
+     const char *name;
+     void (*init) (void);
+-    SrnRet (*filter) (const SrnMessage *msg);
++    bool (*filter) (const SrnMessage *msg);
+     void (*finalize) (void);
+ };
+ 
+--- a/src/inc/srain.h
++++ b/src/inc/srain.h
+@@ -22,7 +22,9 @@
+ #include <stdint.h>
+ #include <glib.h>
+ 
++#if defined __STDC_VERSION__ && __STDC_VERSION__ <= 201710L
+ typedef gboolean bool;
++#endif
+ 
+ /* General result value */
+ #define SRN_OK      0

diff --git a/net-irc/srain/srain-1.7.0.ebuild b/net-irc/srain/srain-1.7.0.ebuild
index 8e54c3df4..5f02203cb 100644
--- a/net-irc/srain/srain-1.7.0.ebuild
+++ b/net-irc/srain/srain-1.7.0.ebuild
@@ -36,6 +36,10 @@ BDEPEND="
 	${PYTHON_DEPS}
 "
 
+PATCHES=(
+	"${FILESDIR}/${P}-gcc15.patch"
+)
+
 python_check_deps() {
 	if use doc || use man; then
 		python_has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]"


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-02 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-02 12:52 [gentoo-commits] repo/proj/guru:dev commit in: net-irc/srain/files/, net-irc/srain/ Takuya Wakazono

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox