commit:     d5bde60aca1e5821685c1488d88edf16228eea84
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 12 10:42:03 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 12 10:42:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5bde60a

net-irc/irssi: fix build w/ Perl 5.36

Closes: https://bugs.gentoo.org/851522
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-irc/irssi/files/irssi-1.4.1-no-werror-decl.patch | 14 ++++++++++++++
 net-irc/irssi/irssi-1.4.1.ebuild                     |  4 ++++
 2 files changed, 18 insertions(+)

diff --git a/net-irc/irssi/files/irssi-1.4.1-no-werror-decl.patch 
b/net-irc/irssi/files/irssi-1.4.1-no-werror-decl.patch
new file mode 100644
index 000000000000..83b03680cd44
--- /dev/null
+++ b/net-irc/irssi/files/irssi-1.4.1-no-werror-decl.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/851522
+https://github.com/Perl/perl5/issues/19382
+--- a/meson.build
++++ b/meson.build
+@@ -553,9 +553,6 @@ configure_file(output : 'irssi-config.h',
+ # CFLAGS #
+ ##########
+ 
+-#### warnings ####
+-add_project_arguments(cc.get_supported_arguments('-Werror=declaration-after-statement'),
 language : 'c')
+-
+ #### personality ####
+ add_project_arguments(cc.get_supported_arguments('-fno-strict-aliasing'), 
language : 'c')
+ if get_option('buildtype').contains('debug')

diff --git a/net-irc/irssi/irssi-1.4.1.ebuild b/net-irc/irssi/irssi-1.4.1.ebuild
index a943775df18e..b16a43f2e55d 100644
--- a/net-irc/irssi/irssi-1.4.1.ebuild
+++ b/net-irc/irssi/irssi-1.4.1.ebuild
@@ -39,6 +39,10 @@ BDEPEND="dev-lang/perl
        virtual/pkgconfig"
 RDEPEND+=" selinux? ( sec-policy/selinux-irc )"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.4.1-no-werror-decl.patch
+)
+
 src_configure() {
        local emesonargs=(
                -Ddocdir="${EPREFIX}"/usr/share/doc/${PF}

Reply via email to