Skip to content

Commit

Permalink
irc/irssi-icb: Unbreak the build.
Browse files Browse the repository at this point in the history
Replace deprecated names to fix compilation for irssi 1.4.2.
  • Loading branch information
fraggerfox committed Aug 8, 2022
1 parent 75b5874 commit e801f3b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 1 addition & 3 deletions irc/irssi-icb/Makefile
@@ -1,6 +1,6 @@
PORTNAME= irssi-icb
PORTVERSION= 0.17
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= irc

MAINTAINER= fox@FreeBSD.org
Expand All @@ -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

Expand Down
15 changes: 15 additions & 0 deletions 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);
}

0 comments on commit e801f3b

Please sign in to comment.