git: e801f3bd001c - main - irc/irssi-icb: Unbreak the build.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Aug 2022 07:39:47 UTC
The branch main has been updated by fox:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e801f3bd001ce644fb5fc3b2212245d43656b080
commit e801f3bd001ce644fb5fc3b2212245d43656b080
Author: Santhosh Raju <fox@FreeBSD.org>
AuthorDate: 2022-08-08 07:28:26 +0000
Commit: Santhosh Raju <fox@FreeBSD.org>
CommitDate: 2022-08-08 07:34:58 +0000
irc/irssi-icb: Unbreak the build.
Replace deprecated names to fix compilation for irssi 1.4.2.
---
irc/irssi-icb/Makefile | 4 +---
irc/irssi-icb/files/patch-src_core_icb-protocol.c | 15 +++++++++++++++
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/irc/irssi-icb/Makefile b/irc/irssi-icb/Makefile
index dd0542cfbbd9..4ebdeafc344f 100644
--- a/irc/irssi-icb/Makefile
+++ b/irc/irssi-icb/Makefile
@@ -1,6 +1,6 @@
PORTNAME= irssi-icb
PORTVERSION= 0.17
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= irc
MAINTAINER= fox@FreeBSD.org
@@ -9,8 +9,6 @@ COMMENT= Irssi plugin for connecting to ICB network
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-BROKEN= does not build: error: use of undeclared identifier 'G_INPUT_READ'
-
BUILD_DEPENDS= ${LOCALBASE}/include/irssi/src/common.h:irc/irssi
RUN_DEPENDS= irssi:irc/irssi
diff --git a/irc/irssi-icb/files/patch-src_core_icb-protocol.c b/irc/irssi-icb/files/patch-src_core_icb-protocol.c
new file mode 100644
index 000000000000..a3e3a3bde149
--- /dev/null
+++ b/irc/irssi-icb/files/patch-src_core_icb-protocol.c
@@ -0,0 +1,15 @@
+Fixes compilation with irssi 1.4.2
+
+--- src/core/icb-protocol.c.orig 2022-08-08 07:03:52 UTC
++++ src/core/icb-protocol.c
+@@ -340,8 +340,8 @@ static void sig_server_connected(ICB_SERVER_REC *serve
+ return;
+
+ server->readtag =
+- g_input_add(net_sendbuffer_handle(server->handle),
+- G_INPUT_READ,
++ i_input_add(net_sendbuffer_handle(server->handle),
++ I_INPUT_READ,
+ (GInputFunction) icb_parse_incoming, server);
+ }
+