summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-10 10:48:54 +0000
committerSam James <sam@gentoo.org>2023-01-10 10:52:12 +0000
commitb9832472df5cd80f931ef2d6411a7b2a500918ad (patch)
tree3f0822241e70e3f9858af7744be2242fa59ae325 /net-dialup
parentnet-misc/dhcping: fix configure w/ clang 16 (diff)
downloadgentoo-b9832472df5cd80f931ef2d6411a7b2a500918ad.tar.gz
gentoo-b9832472df5cd80f931ef2d6411a7b2a500918ad.tar.bz2
gentoo-b9832472df5cd80f931ef2d6411a7b2a500918ad.zip
net-dialup/freeradius-client: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-dialup')
-rw-r--r--net-dialup/freeradius-client/files/freeradius-client-1.1.7-configure-clang16.patch17
-rw-r--r--net-dialup/freeradius-client/freeradius-client-1.1.7-r3.ebuild (renamed from net-dialup/freeradius-client/freeradius-client-1.1.7-r2.ebuild)3
2 files changed, 19 insertions, 1 deletions
diff --git a/net-dialup/freeradius-client/files/freeradius-client-1.1.7-configure-clang16.patch b/net-dialup/freeradius-client/files/freeradius-client-1.1.7-configure-clang16.patch
new file mode 100644
index 000000000000..58cf78c6ff23
--- /dev/null
+++ b/net-dialup/freeradius-client/files/freeradius-client-1.1.7-configure-clang16.patch
@@ -0,0 +1,17 @@
+https://src.fedoraproject.org/rpms/freeradius-client/c/12ee8b567ce2a1b6637ad01e5806a15eeef410cc?branch=rawhide
+
+Add return type to main for autoconf check for C99 compliance.
+https://github.com/FreeRADIUS/freeradius-client/issues/113
+
+--- a/configure.in
++++ b/configure.in
+@@ -212,7 +212,7 @@ then
+ AC_TRY_RUN([
+ #include <sys/utsname.h>
+
+- main(int argc, char **argv)
++ int main(int argc, char **argv)
+ {
+ struct utsname uts;
+ uts.domainname[0] = '\0';
+
diff --git a/net-dialup/freeradius-client/freeradius-client-1.1.7-r2.ebuild b/net-dialup/freeradius-client/freeradius-client-1.1.7-r3.ebuild
index 447e44887dd1..45d79ae7e6ab 100644
--- a/net-dialup/freeradius-client/freeradius-client-1.1.7-r2.ebuild
+++ b/net-dialup/freeradius-client/freeradius-client-1.1.7-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -28,6 +28,7 @@ DOCS=(
PATCHES=(
"${FILESDIR}/${PN}-1.1.7-ar-configure.in.patch"
+ "${FILESDIR}/${PN}-1.1.7-configure-clang16.patch"
)
src_prepare() {