[packages/apache-mod_perl] correct type usage to fix build with gcc 14
atler
atler at pld-linux.org
Sun Jul 27 23:35:15 CEST 2025
commit 46148542a8d1854651ef78748614048b1dc13b46
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Jul 27 23:33:43 2025 +0200
correct type usage to fix build with gcc 14
apache-mod_perl.spec | 2 ++
types.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
---
diff --git a/apache-mod_perl.spec b/apache-mod_perl.spec
index d6e6072..c70beb3 100644
--- a/apache-mod_perl.spec
+++ b/apache-mod_perl.spec
@@ -38,6 +38,7 @@ Source0: https://downloads.apache.org/perl/mod_perl-%{ver}.tar.gz
# Source0-md5: b107c587ae16c7a9a59c344c01359253
Source1: %{name}.conf
Patch0: %{name}-Makefile_PL.patch
+Patch1: types.patch
URL: https://perl.apache.org/
BuildRequires: apache-devel >= 2.0.55-1
BuildRequires: apr-util-devel >= 1:1.0.0
@@ -250,6 +251,7 @@ pomocnicze do testowania serwera Apache.
%prep
%setup -q -n mod_%{mod_name}-%{ver}
%patch -P0 -p1
+%patch -P1 -p1
%build
%{__perl} Makefile.PL \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..b36242c
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,11 @@
+--- mod_perl-2.0.13/src/modules/perl/modperl_common_util.c.orig 2023-10-21 11:47:13.000000000 +0200
++++ mod_perl-2.0.13/src/modules/perl/modperl_common_util.c 2025-07-27 23:26:29.655207813 +0200
+@@ -41,7 +41,7 @@
+
+ MP_INLINE static
+ int modperl_table_magic_copy(pTHX_ SV *sv, MAGIC *mg, SV *nsv,
+- const char *name, int namelen)
++ const char *name, I32 namelen)
+ {
+ /* prefetch the value whenever we're iterating over the keys */
+ MAGIC *tie_magic = mg_find(nsv, PERL_MAGIC_tiedelem);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_perl.git/commitdiff/46148542a8d1854651ef78748614048b1dc13b46
More information about the pld-cvs-commit
mailing list