From b665a0faba737f71b2441870391b1e72cd19fb278d505864daab6ca603971b37 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Wed, 22 Jan 2014 17:52:18 +0000 Subject: [PATCH 1/2] - added irssi-0.8.16_missing_prototype_warnings.patch: Fixes a compiler warning about missing prototype for SOCKSinit - added -DGLIB_DISABLE_DEPRECATION_WARNINGS to reduce the noise - added dante-devel as requires to irssi-devel so plugins can be compiled again OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=49 --- irssi.changes | 9 +++++++++ irssi.spec | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/irssi.changes b/irssi.changes index dcf3bd4..02296b2 100644 --- a/irssi.changes +++ b/irssi.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Jan 22 17:50:40 UTC 2014 - mrueckert@suse.de + +- added irssi-0.8.16_missing_prototype_warnings.patch: + Fixes a compiler warning about missing prototype for SOCKSinit +- added -DGLIB_DISABLE_DEPRECATION_WARNINGS to reduce the noise +- added dante-devel as requires to irssi-devel so plugins can be + compiled again + ------------------------------------------------------------------- Thu Sep 26 12:38:58 UTC 2013 - ddiss@suse.com diff --git a/irssi.spec b/irssi.spec index cd2083a..2f4c110 100644 --- a/irssi.spec +++ b/irssi.spec @@ -47,6 +47,8 @@ Source99: irssi-rpmlintrc Patch: irssi-0.8.15_ssl_proxy.patch # PATCH-FIX-OPENSUSE irssi-0.8.15-ssl-passphrase.patch bnc#842532 Patch1: irssi-0.8.15-ssl-passphrase.patch +# PATCH-FIX-OPENSUSE irssi-0.8.16_missing_prototype_warnings.patch +Patch2: irssi-0.8.16_missing_prototype_warnings.patch # Summary: Modular, Secure, and Well Designed IRC Client License: GPL-2.0+ @@ -77,6 +79,7 @@ Authors: %package devel Requires: %{pkg_name} = %{version} +Requires: dante-devel # Summary: Development package for irssi Group: Development/Languages/C and C++ @@ -95,6 +98,7 @@ Authors: %setup -q #patch %patch1 -p1 +%patch2 %build # cp curses.m4 acinclude.m4 @@ -103,7 +107,7 @@ Authors: %if 0%{?sles_version} == 9 export PKG_CONFIG_PATH="/opt/gnome/%{_lib}/pkgconfig:$PKG_CONFIG_PATH" %endif -export CFLAGS="%{optflags} -fno-strict-aliasing" +export CFLAGS="%{optflags} -fno-strict-aliasing -DGLIB_DISABLE_DEPRECATION_WARNINGS" %configure \ --enable-ipv6 \ --with-bot \ From 20c50eac763de488059212f056680055b4bb8d088d1ea0a52335a69cba839c53 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Mon, 3 Feb 2014 15:41:37 +0000 Subject: [PATCH 2/2] -forgot to add the patch OBS-URL: https://build.opensuse.org/package/show/server:irc/irssi?expand=0&rev=50 --- irssi-0.8.16_missing_prototype_warnings.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 irssi-0.8.16_missing_prototype_warnings.patch diff --git a/irssi-0.8.16_missing_prototype_warnings.patch b/irssi-0.8.16_missing_prototype_warnings.patch new file mode 100644 index 0000000..95da206 --- /dev/null +++ b/irssi-0.8.16_missing_prototype_warnings.patch @@ -0,0 +1,26 @@ +Index: src/fe-none/irssi.c +=================================================================== +--- src/fe-none/irssi.c.orig ++++ src/fe-none/irssi.c +@@ -24,6 +24,8 @@ + #include "args.h" + #include "signals.h" + #include "core.h" ++/* needed for SOCKSinit prototype */ ++#include "core/network.h" + + #ifdef HAVE_STATIC_PERL + void perl_core_init(void); +Index: src/fe-text/irssi.c +=================================================================== +--- src/fe-text/irssi.c.orig ++++ src/fe-text/irssi.c +@@ -25,6 +25,8 @@ + #include "signals.h" + #include "levels.h" + #include "core.h" ++/* needed for SOCKSinit prototype */ ++#include "core/network.h" + #include "settings.h" + #include "session.h" +