quassel-irssi: fix compilation error with new version of irssi
authorChristian Marangi <redacted>
Sun, 5 Nov 2023 19:56:55 +0000 (20:56 +0100)
committerJosef Schlehofer <redacted>
Tue, 7 Nov 2023 23:41:12 +0000 (00:41 +0100)
Add patch fixing compilation error with new version of irssi where the
renamed some functions.

Fixes: #22384
Signed-off-by: Christian Marangi <redacted>
net/quassel-irssi/Makefile
net/quassel-irssi/patches/100-Fix-compilation-error-with-new-version-of-irssi.patch [new file with mode: 0644]

index 8b850be05d7c14b8ce711f5ea9c4a082c4e57ea5..7374f69108dc92b19b9a45e952e29f7afab26eb2 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=quassel-irssi
 PKG_SOURCE_DATE:=2017-11-30
 PKG_SOURCE_VERSION:=079be662dde374a383646256108a4974c2bc7796
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/phhusson/quassel-irssi/tar.gz/$(PKG_SOURCE_VERSION)?
diff --git a/net/quassel-irssi/patches/100-Fix-compilation-error-with-new-version-of-irssi.patch b/net/quassel-irssi/patches/100-Fix-compilation-error-with-new-version-of-irssi.patch
new file mode 100644 (file)
index 0000000..bd12162
--- /dev/null
@@ -0,0 +1,48 @@
+From 61aaa345d3924905aa26023b351fb9502a74de63 Mon Sep 17 00:00:00 2001
+From: Christian Marangi <ansuelsmth@gmail.com>
+Date: Sun, 5 Nov 2023 20:50:31 +0100
+Subject: [PATCH 2/2] Fix compilation error with new version of irssi
+
+Fix compilation error with new version of irssi that changed some
+functions names.
+
+Caused by https://github.com/irssi/irssi/pull/1246
+
+Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
+---
+ core/quassel-net.c | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+--- a/core/quassel-net.c
++++ b/core/quassel-net.c
+@@ -105,8 +105,8 @@ static void sig_connected(Quassel_SERVER
+       }
+       r->readtag =
+-              g_input_add(net_sendbuffer_handle(r->handle),
+-                          G_INPUT_READ,
++              i_input_add(net_sendbuffer_handle(r->handle),
++                          I_INPUT_READ,
+                           (GInputFunction) quassel_parse_incoming, r);
+       quassel_init_packet(net_sendbuffer_handle(r->handle), r->ssl);
+@@ -166,8 +166,8 @@ static void quassel_net_final_setup(SERV
+       server->handle->handle = handle;
+       server->readtag =
+-              g_input_add(handle,
+-                          G_INPUT_READ,
++              i_input_add(handle,
++                          I_INPUT_READ,
+                           (GInputFunction) quassel_parse_incoming, server);
+ }
+@@ -185,7 +185,7 @@ static void quassel_net_ssl_callback(SER
+       if (error & 1) {
+               if (server->connect_tag != -1)
+                       g_source_remove(server->connect_tag);
+-              server->connect_tag = g_input_add(handle, error == 1 ? G_INPUT_READ : G_INPUT_WRITE,
++              server->connect_tag = i_input_add(handle, error == 1 ? I_INPUT_READ : I_INPUT_WRITE,
+                                                 (GInputFunction)
+                                                 quassel_net_ssl_callback,
+                                                 server);
git clone https://git.99rst.org/PROJECT