commit:     33824c7f4f0794f74d48232ed7cf0163c2ab1770
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 15 06:09:16 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 15 06:09:16 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33824c7f

app-backup/amanda: fix configure w/ clang 16

Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...anda-3.5.1-r3.ebuild => amanda-3.5.1-r4.ebuild} |  7 +++++--
 .../files/amanda-3.5.1-configure-clang16.patch     | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/app-backup/amanda/amanda-3.5.1-r3.ebuild 
b/app-backup/amanda/amanda-3.5.1-r4.ebuild
similarity index 99%
rename from app-backup/amanda/amanda-3.5.1-r3.ebuild
rename to app-backup/amanda/amanda-3.5.1-r4.ebuild
index 53df15f23433..af53d4e00d12 100644
--- a/app-backup/amanda/amanda-3.5.1-r3.ebuild
+++ b/app-backup/amanda/amanda-3.5.1-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -51,7 +51,10 @@ BDEPEND="
        virtual/pkgconfig
        nls? ( sys-devel/gettext )"
 
-PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-fno-common.patch
+       "${FILESDIR}"/${PN}-3.5.1-configure-clang16.patch
+)
 
 MYFILESDIR="${T}/files"
 ENVDIR="/etc/env.d"

diff --git a/app-backup/amanda/files/amanda-3.5.1-configure-clang16.patch 
b/app-backup/amanda/files/amanda-3.5.1-configure-clang16.patch
new file mode 100644
index 000000000000..a95c8ed55aed
--- /dev/null
+++ b/app-backup/amanda/files/amanda-3.5.1-configure-clang16.patch
@@ -0,0 +1,22 @@
+https://github.com/zmanda/amanda/pull/220
+
+From 74610ac5522caa779b30323f1c731775083c5bbc Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fwei...@redhat.com>
+Date: Fri, 14 Apr 2023 15:45:16 +0200
+Subject: [PATCH] configure: Avoid an implicit int in the IPv6 test
+
+Otherwise, the test fails unconditionally with compilers that
+do not support implicit ints (a language feature that was removed with
+the C99 language revision).
+--- a/config/amanda/ipv6.m4
++++ b/config/amanda/ipv6.m4
+@@ -85,7 +85,7 @@ AC_DEFUN([AMANDA_CHECK_IPV6],
+ #include <sys/socket.h>
+ #include <errno.h>
+ 
+-main()
++int main(void)
+ {
+    int aa;
+    aa = socket(AF_INET6, SOCK_STREAM, 0);
+

Reply via email to