[packages/libapreq2] correct type usage to fix build with gcc 14
atler
atler at pld-linux.org
Mon Jul 28 12:00:23 CEST 2025
commit 8b4acd7fe5532eea02513717cefc9ff259134774
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jul 28 11:59:26 2025 +0200
correct type usage to fix build with gcc 14
libapreq2.spec | 2 ++
types.patch | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+)
---
diff --git a/libapreq2.spec b/libapreq2.spec
index 8dd7dc8..18017b0 100644
--- a/libapreq2.spec
+++ b/libapreq2.spec
@@ -16,6 +16,7 @@ Source0: https://www.apache.org/dist/httpd/libapreq/%{name}-%{version}.tar.gz
# Source0-md5: 41cd2091aa5b5560858566a74b1346f2
Source1: apache-mod_apreq2.conf
Patch0: am.patch
+Patch1: types.patch
URL: https://httpd.apache.org/apreq/
BuildRequires: %{apxs}
BuildRequires: apache-base >= 2.0.46
@@ -106,6 +107,7 @@ Moduł mod_apreq2 do serwera Apache.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%{__libtoolize}
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..9a8050a
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,20 @@
+--- libapreq2-2.17/glue/perl/xsbuilder/apreq_xs_tables.h.orig 2022-08-18 11:18:20.000000000 +0200
++++ libapreq2-2.17/glue/perl/xsbuilder/apreq_xs_tables.h 2025-07-28 11:50:53.698464188 +0200
+@@ -42,7 +42,7 @@
+ */
+
+ static int apreq_xs_cookie_table_magic_copy(pTHX_ SV *sv, MAGIC *mg, SV *nsv,
+- const char *name, int namelen)
++ const char *name, I32 namelen)
+ {
+ /* Prefetch the value whenever the table iterator is > 0 */
+ MAGIC *tie_magic = mg_find(nsv, PERL_MAGIC_tiedelem);
+@@ -151,7 +151,7 @@
+ */
+
+ static int apreq_xs_param_table_magic_copy(pTHX_ SV *sv, MAGIC *mg, SV *nsv,
+- const char *name, int namelen)
++ const char *name, I32 namelen)
+ {
+ /* Prefetch the value whenever the table iterator is > 0 */
+ MAGIC *tie_magic = mg_find(nsv, PERL_MAGIC_tiedelem);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libapreq2.git/commitdiff/8b4acd7fe5532eea02513717cefc9ff259134774
More information about the pld-cvs-commit
mailing list