[packages/apache-mod_auth_xradius] Rel 7

arekm arekm at pld-linux.org
Tue May 12 19:14:23 CEST 2026


commit d9ad28e9c27eb188e92795e7de59fd8c1a7bc337
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue May 12 19:14:09 2026 +0200

    Rel 7

 apache-mod_auth_xradius.spec |  4 +++-
 mod_auth_xradius-gcc15.patch | 45 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 1 deletion(-)
---
diff --git a/apache-mod_auth_xradius.spec b/apache-mod_auth_xradius.spec
index c4cf99f..e589cb8 100644
--- a/apache-mod_auth_xradius.spec
+++ b/apache-mod_auth_xradius.spec
@@ -4,13 +4,14 @@
 Summary:	Apache module:
 Name:		apache-mod_%{mod_name}
 Version:	0.4.6
-Release:	6.1
+Release:	7
 License:	GPL
 Group:		Networking/Daemons/HTTP
 Source0:	http://www.outoforder.cc/downloads/mod_auth_xradius/mod_auth_xradius-%{version}.tar.bz2
 # Source0-md5:	eeecc96f15dec9fe0a9c78c0b022903d
 Source1:	%{name}.conf
 Patch0:		mod_auth_xradius-unixd.patch
+Patch1:		mod_auth_xradius-gcc15.patch
 URL:		http://www.outoforder.cc/projects/apache/mod_auth_xradius/
 BuildRequires:	%{apxs}
 BuildRequires:	apache-devel >= 2.2
@@ -36,6 +37,7 @@ mod_auth_xradius provides high performance authentication against RFC
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %configure
diff --git a/mod_auth_xradius-gcc15.patch b/mod_auth_xradius-gcc15.patch
new file mode 100644
index 0000000..6de43e7
--- /dev/null
+++ b/mod_auth_xradius-gcc15.patch
@@ -0,0 +1,45 @@
+Fix build with GCC 15: move MD5 macro definitions before #include "md5.h",
+add extern to auth_xradius_module declaration in header to prevent
+multiple definition errors with modern linkers (GCC 10+ defaults to
+-fno-common), and fix format string: use %zu for apr_size_t (size_t).
+
+--- mod_auth_xradius-0.4.6.orig/libradius/porting.h	2005-04-11 23:42:47.000000000 +0200
++++ mod_auth_xradius-0.4.6/libradius/porting.h	2026-05-12 00:49:16.049904335 +0200
+@@ -15,12 +15,12 @@
+ 
+ #else
+ 
+-#include "md5.h"
+ #define MD5_DIGEST_LENGTH 16
+ #define MD5Final    xrad_MD5Final
+ #define MD5Init     xrad_MD5Init
+ #define MD5Pad      xrad_MD5Pad
+ #define MD5Update   xrad_MD5Update
++#include "md5.h"
+ 
+ #endif
+ 
+
+--- mod_auth_xradius-0.4.6.orig/include/mod_auth_xradius.h.in	2005-04-28 09:30:43.000000000 +0200
++++ mod_auth_xradius-0.4.6/include/mod_auth_xradius.h.in	2026-05-12 00:49:16.050008598 +0200
+@@ -41,7 +41,7 @@
+  */
+ #define HAVE_APR_MEMCACHE    @have_apr_memcache@
+ 
+-module AP_MODULE_DECLARE_DATA auth_xradius_module;
++extern module AP_MODULE_DECLARE_DATA auth_xradius_module;
+ 
+ #define MOD_AUTH_XRADIUS_VERSION "@MOD_AUTH_XRADIUS_VERSION@"
+ 
+
+--- mod_auth_xradius-0.4.6.orig/src/xradius_cache.c	2005-04-27 08:49:25.000000000 +0200
++++ mod_auth_xradius-0.4.6/src/xradius_cache.c	2026-05-12 00:49:16.050112417 +0200
+@@ -196,7 +196,7 @@
+     if (dbmval.dsize < (sizeof(apr_time_t)+sizeof(char)) || dbmval.dptr == NULL) {
+         ap_log_error(APLOG_MARK, APLOG_NOTICE, rv,
+                      r->server,
+-                     "xradius: val size: '%d'",
++                     "xradius: val size: '%zu'",
+                      dbmval.dsize);        
+         return DECLINED;
+     }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_auth_xradius.git/commitdiff/d9ad28e9c27eb188e92795e7de59fd8c1a7bc337



More information about the pld-cvs-commit mailing list