commit:     04cfb64931a456066458f208a56dc49d6c35c086
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  5 23:30:17 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Oct  6 00:33:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04cfb649

www-apache/mod_auth_xradius: fix build with upcoming clang16

Revbump shouldn't mean much for gcc here, but do it anyway in case.

Closes: https://bugs.gentoo.org/870841
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../files/mod_auth_xradius-0.4.6-clang16.patch        | 19 +++++++++++++++++++
 ...4.6-r1.ebuild => mod_auth_xradius-0.4.6-r2.ebuild} |  3 ++-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git 
a/www-apache/mod_auth_xradius/files/mod_auth_xradius-0.4.6-clang16.patch 
b/www-apache/mod_auth_xradius/files/mod_auth_xradius-0.4.6-clang16.patch
new file mode 100644
index 000000000000..38c7b6852f29
--- /dev/null
+++ b/www-apache/mod_auth_xradius/files/mod_auth_xradius-0.4.6-clang16.patch
@@ -0,0 +1,19 @@
+Need to rename the declarations in md5.h using cpp too.
+
+https://bugs.gentoo.org/870841
+--- a/libradius/porting.h
++++ b/libradius/porting.h
+@@ -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
+ 

diff --git a/www-apache/mod_auth_xradius/mod_auth_xradius-0.4.6-r1.ebuild 
b/www-apache/mod_auth_xradius/mod_auth_xradius-0.4.6-r2.ebuild
similarity index 89%
rename from www-apache/mod_auth_xradius/mod_auth_xradius-0.4.6-r1.ebuild
rename to www-apache/mod_auth_xradius/mod_auth_xradius-0.4.6-r2.ebuild
index 1837678a1a09..086e87e1dee0 100644
--- a/www-apache/mod_auth_xradius/mod_auth_xradius-0.4.6-r1.ebuild
+++ b/www-apache/mod_auth_xradius/mod_auth_xradius-0.4.6-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -20,6 +20,7 @@ PATCHES=(
        "${FILESDIR}"/${P}-fallback-support.patch
        "${FILESDIR}"/${P}-apache24-api-changes.patch
        "${FILESDIR}"/${P}-fno-common.patch
+       "${FILESDIR}"/${P}-clang16.patch
 )
 
 src_prepare() {

Reply via email to