commit:     800629fbe1e806757c79537eaa1bf5b37b937174
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 14 08:26:34 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 14 21:41:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=800629fb

net-ftp/lftp: fix configure w/ clang 16

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

 .../lftp/files/lftp-4.9.2-configure-clang16.patch  | 22 ++++++++++++++++++++++
 .../{lftp-4.9.2.ebuild => lftp-4.9.2-r1.ebuild}    |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/net-ftp/lftp/files/lftp-4.9.2-configure-clang16.patch 
b/net-ftp/lftp/files/lftp-4.9.2-configure-clang16.patch
new file mode 100644
index 000000000000..d039390ffb80
--- /dev/null
+++ b/net-ftp/lftp/files/lftp-4.9.2-configure-clang16.patch
@@ -0,0 +1,22 @@
+https://github.com/lavv17/lftp/commit/8af97cc255c3d2488adb107515bd1047dbedadfe
+
+From 8af97cc255c3d2488adb107515bd1047dbedadfe Mon Sep 17 00:00:00 2001
+From: DJ Delorie <[email protected]>
+Date: Wed, 8 Feb 2023 23:37:37 -0500
+Subject: [PATCH] Fix C99 compatibility issue
+
+Related to:
+
+  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
+  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
+--- a/m4/needtrio.m4
++++ b/m4/needtrio.m4
+@@ -9,6 +9,7 @@ AC_DEFUN([LFTP_NEED_TRIO],[
+       else
+ 
+       AC_RUN_IFELSE([AC_LANG_SOURCE([[
++       #include <stdio.h>
+        int main()
+        {
+           unsigned long long x=0,x1;
+

diff --git a/net-ftp/lftp/lftp-4.9.2.ebuild b/net-ftp/lftp/lftp-4.9.2-r1.ebuild
similarity index 96%
rename from net-ftp/lftp/lftp-4.9.2.ebuild
rename to net-ftp/lftp/lftp-4.9.2-r1.ebuild
index 59f56239e17f..9047ab306f17 100644
--- a/net-ftp/lftp/lftp-4.9.2.ebuild
+++ b/net-ftp/lftp/lftp-4.9.2-r1.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
@@ -57,6 +57,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-4.8.2-libdir-zlib.patch
        "${FILESDIR}"/${PN}-4.9.1-libdir-readline.patch
        "${FILESDIR}"/${PN}-4.9.2-ac-270.patch
+       "${FILESDIR}"/${PN}-4.9.2-configure-clang16.patch
 )
 
 src_prepare() {

Reply via email to