[packages/irssi] Rel 7. Up irssi-xmpp to 0.54; fix xmpp logins and idea module load
arekm
arekm at pld-linux.org
Thu Nov 19 22:21:07 CET 2026
commit ee6710ff7f51be89f70ba644270e6873710f5ccd
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 19 22:13:51 2026 +0100
Rel 7. Up irssi-xmpp to 0.54; fix xmpp logins and idea module load
irssi-xmpp put servers on the core lookup list with connect_time 0,
so the core connect timeout aborted every login within a second
(upstream 57c62278). The idea module lacked idea_abicheck() and irssi
refused to load it. Building --without xmpp works again.
irssi-idea-abicheck.patch | 14 ++++++++++
irssi-xmpp.patch | 29 --------------------
irssi.spec | 64 +++++++++++++++++++++++++------------------
types.patch | 11 --------
xmpp-connect-timeout.patch | 24 ++++++++++++++++
xmpp-i_list_find_string.patch | 37 +++++++++++++++++++++++++
6 files changed, 113 insertions(+), 66 deletions(-)
---
diff --git a/irssi.spec b/irssi.spec
index 9071e80..e0dd735 100644
--- a/irssi.spec
+++ b/irssi.spec
@@ -9,7 +9,7 @@
%define no_install_post_check_so 1
%define idea_ver 0.1.46
-%define xmpp_ver 0.53
+%define xmpp_ver 0.54
%define irssi_perl_version 20231003
Summary: Irssi is a IRC client
Summary(fr.UTF-8): Irssi est un client IRC
@@ -17,7 +17,7 @@ Summary(hu.UTF-8): Irssi egy IRC kliens
Summary(pl.UTF-8): Irssi - wygodny w użyciu klient IRC
Name: irssi
Version: 1.4.5
-Release: 6
+Release: 7
License: GPL
Group: Applications/Communications
Source0: https://github.com/irssi/irssi/releases/download/%{version}/%{name}-%{version}.tar.gz
@@ -28,8 +28,8 @@ Source2: %{name}.png
#Source3: http://real.irssi.org/files/plugins/idea/%{name}-idea-%{idea_ver}.tar.gz
Source3: %{name}-idea-%{idea_ver}.tar.gz
# Source3-md5: c326efe317b8f67593a3cd46d5557280
-Source4: http://cybione.org/~irssi-xmpp/files/irssi-xmpp-%{xmpp_ver}.tar.gz
-# Source4-md5: 8c9906e4efbd6f3c8bd8420f0ac8fd91
+Source4: https://github.com/cdidier/irssi-xmpp/archive/v%{xmpp_ver}/irssi-xmpp-%{xmpp_ver}.tar.gz
+# Source4-md5: 41b6576056dc8097c605d1114ec15688
Patch0: %{name}-dcc-send-limit.patch
Patch1: %{name}-home_etc.patch
Patch2: %{name}-idea-listlen.patch
@@ -40,7 +40,6 @@ Patch6: %{name}-color_support_for_gui_entry.patch
Patch7: %{name}-libs-nopoison.patch
Patch8: am.patch
Patch9: %{name}-idea-glib.patch
-Patch10: %{name}-xmpp.patch
Patch11: types.patch
Patch12: glib-log-domains-level.patch
Patch13: glib-log-no-debug.patch
@@ -49,28 +48,26 @@ Patch15: openssl3-deprecated-ec.patch
Patch16: chatnet-slash-unix-socket.patch
Patch17: gethostbyname-eai-noname.patch
Patch18: tls-verify-proxy-hostname.patch
+Patch19: xmpp-connect-timeout.patch
+Patch20: xmpp-i_list_find_string.patch
+Patch21: %{name}-idea-abicheck.patch
URL: http://www.irssi.org/
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: gettext-tools
-# for idea only
-BuildRequires: glib-devel
-BuildRequires: glib2-devel >= 2.24.0
+BuildRequires: glib2-devel >= 2.32.0
BuildRequires: libgcrypt-devel >= 1.2.0
BuildRequires: libotr-devel >= 4.1.0
BuildRequires: libtool
-BuildRequires: libutf8proc-devel
+BuildRequires: utf8proc-devel
%{?with_xmpp:BuildRequires: loudmouth-devel}
BuildRequires: ncurses-devel >= 5.0
BuildRequires: openssl-devel >= 0.9.7d
%{?with_perl:BuildRequires: perl-devel >= 1:5.8.4}
BuildRequires: pkgconfig
-BuildRequires: popt-devel
%{?with_perl:BuildRequires: rpm-perlprov}
BuildRequires: rpmbuild(macros) >= 1.315
-BuildRequires: sed >= 4.0
-Requires: glib2 >= 2.24.0
-Provides: perl(Irssi) = %{irssi_perl_version}
+Requires: glib2 >= 2.32.0
+%{?with_perl:Provides: perl(Irssi) = %{irssi_perl_version}}
Obsoletes: irssi-speech
Obsoletes: irssi-sql
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -97,7 +94,6 @@ Summary(hu.UTF-8): Irssi IDEA plugin
Summary(pl.UTF-8): Wtyczka do irssi do szyfrowania IDEA
Group: Applications/Communications
Requires: %{name} = %{version}-%{release}
-Requires: glib >= 1:1.2.10-13
%description plugin-idea
This package contains IDEA Crypt plugin for Irssi.
@@ -108,6 +104,7 @@ Ez a csomag tartalmazza az IDEA titkosítási plugint Irssi-hez.
%description plugin-idea -l pl.UTF-8
Ten pakiet zawiera wtyczkę do Irssi z szyfrowaniem IDEA.
+%if %{with xmpp}
%package plugin-xmpp
Summary: Irssi XMPP support plugin
Summary(pl.UTF-8): Wtyczka do irssi do obsługi XMPP
@@ -119,9 +116,10 @@ This package contains XMPP support plugin for Irssi.
%description plugin-xmpp -l pl.UTF-8
Ten pakiet zawiera wtyczkę do Irssi z obsługą XMPP.
+%endif
%prep
-%setup -q -a3 -a4
+%setup -q -a3 %{?with_xmpp:-a4}
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
@@ -134,21 +132,23 @@ Ten pakiet zawiera wtyczkę do Irssi z obsługą XMPP.
#%%patch -P6 -p0
%patch -P7 -p1
-echo 'AC_DEFUN([AM_PATH_GLIB],[:])' > glib1.m4
-
mv irssi-idea{-%{idea_ver},}
-mv irssi-xmpp{-%{xmpp_ver},}
+%if %{with xmpp}
+mv irssi-xmpp{-%{xmpp_ver},}
cd irssi-xmpp
%patch -P5 -p1
+%patch -P19 -p1
+%patch -P20 -p1
cd ..
+%endif
%if %{with dynamic}
%patch -P8 -p1
%endif
%patch -P9 -p0
-%patch -P10 -p0
%patch -P11 -p1
+%patch -P21 -p1
%patch -P12 -p1
%patch -P13 -p1
%patch -P14 -p1
@@ -157,9 +157,6 @@ cd ..
%patch -P17 -p1
%patch -P18 -p1
-# hack
-%{__sed} -i -e 's#\./libtool#%{_bindir}/libtool#g' 'configure.ac'
-
%{__rm} m4/libgcrypt.m4
%build
@@ -200,9 +197,10 @@ cd irssi-idea
%{__make}
cd ..
+%if %{with xmpp}
export IRSSI_INCLUDE=`pwd`
-cd irssi-xmpp
-%{__make}
+%{__make} -C irssi-xmpp
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -220,16 +218,21 @@ cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
%{__make} -C irssi-idea install \
DESTDIR=$RPM_BUILD_ROOT
+%if %{with xmpp}
%{__make} -C irssi-xmpp install \
PREFIX=%{_prefix} \
IRSSI_LIB=%{_libdir}/%{name} \
DESTDIR=$RPM_BUILD_ROOT
+# packaged as %doc
+rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}/irssi-xmpp
+%endif
# -devel?
%if %{with dynamic}
rm $RPM_BUILD_ROOT%{_libdir}/lib*.{so,la,a}
%endif
rm -r $RPM_BUILD_ROOT%{_includedir}/irssi
+rm $RPM_BUILD_ROOT%{_pkgconfigdir}/irssi-1.pc
# cleanup
rm $RPM_BUILD_ROOT%{_libdir}/irssi/modules/lib*.{la,a}
%if %{with perl}
@@ -259,6 +262,9 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/scripts
%{_datadir}/%{name}/help
+%if %{with xmpp}
+%exclude %{_datadir}/%{name}/help/{presence,roster,xmppconnect,xmppserver}
+%endif
%{_datadir}/%{name}/themes
%{_desktopdir}/irssi.desktop
%{_pixmapsdir}/irssi.png
@@ -287,9 +293,15 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/irssi/modules/libidea.so
+%if %{with xmpp}
%files plugin-xmpp
%defattr(644,root,root,755)
-%doc irssi-xmpp/{docs/*,NEWS,README,TODO}
+%doc irssi-xmpp/{docs/*,NEWS,README.md,TODO}
%attr(755,root,root) %{_libdir}/irssi/modules/libfe_xmpp.so
%attr(755,root,root) %{_libdir}/irssi/modules/libtext_xmpp.so
%attr(755,root,root) %{_libdir}/irssi/modules/libxmpp_core.so
+%{_datadir}/%{name}/help/presence
+%{_datadir}/%{name}/help/roster
+%{_datadir}/%{name}/help/xmppconnect
+%{_datadir}/%{name}/help/xmppserver
+%endif
diff --git a/irssi-idea-abicheck.patch b/irssi-idea-abicheck.patch
new file mode 100644
index 0000000..39c80c0
--- /dev/null
+++ b/irssi-idea-abicheck.patch
@@ -0,0 +1,14 @@
+irssi >= 0.8.18 refuses modules without <name>_abicheck():
+"idea/idea is ABI version 0 but Irssi is version 46, cannot load"
+
+--- irssi-1.4.5/irssi-idea/src/plugin.c.orig 2026-11-19 22:09:21.917321957 +0100
++++ irssi-1.4.5/irssi-idea/src/plugin.c 2026-11-19 22:09:21.924286595 +0100
+@@ -528,3 +528,8 @@
+
+ g_string_free(tmpstr, TRUE);
+ }
++
++void idea_abicheck(int *version)
++{
++ *version = IRSSI_ABI_VERSION;
++}
diff --git a/irssi-xmpp.patch b/irssi-xmpp.patch
deleted file mode 100644
index ef5e7d2..0000000
--- a/irssi-xmpp.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- irssi-xmpp.org/src/core/xmpp-servers.c 2016-03-18 15:07:32.000000000 +0100
-+++ irssi-xmpp/src/core/xmpp-servers.c 2017-01-19 23:07:40.567300383 +0100
-@@ -151,7 +151,7 @@
- server->connect_pid = -1;
-
- if (server->connrec->port <= 0)
-- server->connrec->port = (server->connrec->use_ssl) ?
-+ server->connrec->port = (server->connrec->use_tls) ?
- LM_CONNECTION_DEFAULT_PORT_SSL : LM_CONNECTION_DEFAULT_PORT;
-
- if (conn->real_jid == NULL)
-@@ -335,7 +335,7 @@
- g_free(host);
- } else
- signal_emit("server connecting", 1, server);
-- if (server->connrec->use_ssl)
-+ if (server->connrec->use_tls)
- signal_emit("xmpp server status", 2, server,
- "Using SSL encryption.");
- else if (lm_ssl_get_use_starttls(lm_connection_get_ssl(server->lmconn)))
-@@ -470,7 +470,7 @@
- return;
- error = NULL;
- err_msg = NULL;
-- if (server->connrec->use_ssl) {
-+ if (server->connrec->use_tls) {
- if (!set_ssl(server->lmconn, &error, server, FALSE)) {
- err_msg = "Cannot init ssl";
- goto err;
diff --git a/types.patch b/types.patch
index 272637c..252edb1 100644
--- a/types.patch
+++ b/types.patch
@@ -39,14 +39,3 @@
g_strfreev(list);
if (message)
---- irssi-1.4.5/irssi-xmpp/src/fe-common/xmpp-completion.c.orig 2016-03-18 15:07:32.000000000 +0100
-+++ irssi-1.4.5/irssi-xmpp/src/fe-common/xmpp-completion.c 2025-05-11 19:01:06.516714276 +0200
-@@ -287,7 +287,7 @@
- chat_type, XMPP_PROTOCOL_NAME)
- || *channel_setup->name != '#')
- && g_ascii_strncasecmp(channel_setup->name, word, len) == 0
-- && glist_find_string(list, channel_setup->name) == NULL)
-+ && i_list_find_string(list, channel_setup->name) == NULL)
- list = g_list_append(list,
- g_strdup(channel_setup->name));
- }
diff --git a/xmpp-connect-timeout.patch b/xmpp-connect-timeout.patch
new file mode 100644
index 0000000..4383ea6
--- /dev/null
+++ b/xmpp-connect-timeout.patch
@@ -0,0 +1,24 @@
+Without it the irssi core connect timeout (connect_time == 0) aborts XMPP
+logins, e.g. STARTTLS + password prompt: https://github.com/cdidier/irssi-xmpp/issues/43
+
+From 57c62278b97aeb999f3ca2e2b8a492f364405b61 Mon Sep 17 00:00:00 2001
+From: Ailin Nemui <ailin at z30a.localdomain>
+Date: Tue, 29 Jan 2019 21:37:05 +0100
+Subject: [PATCH] do not trigger the irssi core connect timeout prematurely
+
+---
+ src/core/xmpp-servers.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/core/xmpp-servers.c b/src/core/xmpp-servers.c
+index 8d0b62d..bbd09cb 100644
+--- a/src/core/xmpp-servers.c
++++ b/src/core/xmpp-servers.c
+@@ -489,6 +489,7 @@ xmpp_server_connect(XMPP_SERVER_REC *server)
+ }
+ lm_connection_set_disconnect_function(server->lmconn,
+ lm_close_cb, server, NULL);
++ server->connect_time = time(NULL);
+ lookup_servers = g_slist_append(lookup_servers, server);
+ signal_emit("server looking", 1, server);
+ server->timeout_tag = g_timeout_add(
diff --git a/xmpp-i_list_find_string.patch b/xmpp-i_list_find_string.patch
new file mode 100644
index 0000000..674ca1e
--- /dev/null
+++ b/xmpp-i_list_find_string.patch
@@ -0,0 +1,37 @@
+irssi 1.3 renamed glist_find_string() to i_list_find_string(); upstream PR
+https://github.com/cdidier/irssi-xmpp/pull/55
+
+commit 676acc67c387361f5656090bc1043f43cd0e850f
+Author: Ailin Nemui <ailin at d5401s.localdomain>
+Date: Thu Apr 8 21:36:24 2021 +0200
+
+ restore compatibility with fixed Irssi prefixes
+
+ this is for irssi/irssi#1246 and irssi/irssi#1264
+
+ Fixes build with Irssi 1.3
+
+diff --git a/src/fe-common/xmpp-completion.c b/src/fe-common/xmpp-completion.c
+index 4e562a1..b4cbf82 100644
+--- a/src/fe-common/xmpp-completion.c
++++ b/src/fe-common/xmpp-completion.c
+@@ -30,6 +30,10 @@
+ #include "rosters-tools.h"
+ #include "tools.h"
+
++#if !defined(IRSSI_ABI_VERSION) || IRSSI_ABI_VERSION < 33
++# define i_list_find_string glist_find_string
++#endif
++
+ static char *
+ quoted_if_space(const char *name, const char *res)
+ {
+@@ -287,7 +291,7 @@ get_channels(XMPP_SERVER_REC *server, const char *word)
+ chat_type, XMPP_PROTOCOL_NAME)
+ || *channel_setup->name != '#')
+ && g_ascii_strncasecmp(channel_setup->name, word, len) == 0
+- && glist_find_string(list, channel_setup->name) == NULL)
++ && i_list_find_string(list, channel_setup->name) == NULL)
+ list = g_list_append(list,
+ g_strdup(channel_setup->name));
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/irssi.git/commitdiff/ee6710ff7f51be89f70ba644270e6873710f5ccd
More information about the pld-cvs-commit
mailing list