[packages/hexchat] bump c standard to c99 in perl plugin

atler atler at pld-linux.org
Thu Aug 13 18:56:37 CEST 2026


commit 36a695b5e1389605dc2f17e392164bba9850b3de
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Aug 13 18:50:27 2026 +0200

    bump c standard to c99 in perl plugin
    
    perl 5.44.0 ships header files having inline functions using c99 (or
    above) features (declarations in for loop) while project still sticks to
    gnu89

 hexchat.spec     |  2 ++
 perl-c_std.patch | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/hexchat.spec b/hexchat.spec
index 93d833b..a0f05fe 100644
--- a/hexchat.spec
+++ b/hexchat.spec
@@ -8,6 +8,7 @@ Group:		X11/Applications/Networking
 Source0:	https://dl.hexchat.net/hexchat/%{name}-%{version}.tar.xz
 # Source0-md5:	0af269d719c2c047310d44804bb31fdb
 Patch0:		disable-werror.patch
+Patch1:		perl-c_std.patch
 URL:		https://hexchat.github.io
 BuildRequires:	dbus-glib-devel
 BuildRequires:	glib2-devel >= 1:2.34.0
@@ -61,6 +62,7 @@ Ten pakiet zawiera pliki programistyczne HexChata.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %meson \
diff --git a/perl-c_std.patch b/perl-c_std.patch
new file mode 100644
index 0000000..3984a43
--- /dev/null
+++ b/perl-c_std.patch
@@ -0,0 +1,11 @@
+--- hexchat-2.16.1/plugins/perl/meson.build.orig	2022-02-12 19:30:55.881055000 +0100
++++ hexchat-2.16.1/plugins/perl/meson.build	2026-08-13 18:48:20.379673393 +0200
+@@ -13,7 +13,7 @@
+   command: [generate_perl_header, '@OUTPUT@', '@INPUT@']
+ )
+ 
+-perl_cflags = []
++perl_cflags = ['-std=c99']
+ irc_perl_module = []
+ 
+ if get_option('with-perl-legacy-api')
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hexchat.git/commitdiff/36a695b5e1389605dc2f17e392164bba9850b3de



More information about the pld-cvs-commit mailing list