commit:     e714faa757f6e9cc67348e8bd8bda26fe58ba310
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Wed Apr 12 03:39:52 2023 +0000
Commit:     orbea <orbea <AT> riseup <DOT> net>
CommitDate: Wed Apr 12 03:41:30 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=e714faa7

net-ftp/lftp: Add 4.9.2-r1

Signed-off-by: orbea <orbea <AT> riseup.net>

 .../lftp/files/lftp-4.9.2-configure-clang16.patch  | 22 ++++++++++++++++++++++
 .../{lftp-4.9.2.ebuild => lftp-4.9.2-r1.ebuild}    |  8 ++++++--
 2 files changed, 28 insertions(+), 2 deletions(-)

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 0000000..d039390
--- /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 94%
rename from net-ftp/lftp/lftp-4.9.2.ebuild
rename to net-ftp/lftp/lftp-4.9.2-r1.ebuild
index ea543b8..7916d38 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-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -56,13 +56,17 @@ PATCHES=(
        "${FILESDIR}"/${PN}-4.8.2-libdir-openssl.patch
        "${FILESDIR}"/${PN}-4.8.2-libdir-zlib.patch
        "${FILESDIR}"/${PN}-4.9.1-libdir-readline.patch
-       "${FILESDIR}"/${PN}-4.9.2-libressl.patch
        "${FILESDIR}"/${PN}-4.9.2-ac-270.patch
+       "${FILESDIR}"/${PN}-4.9.2-configure-clang16.patch
+       "${FILESDIR}"/${PN}-4.9.2-libressl.patch
 )
 
 src_prepare() {
        default
 
+       # bug #875692
+       sed -e '/#include/s/cmath/math.h/' -i trio/*.c || die
+
        eautoreconf
 
        elibtoolize # for Darwin bundles

Reply via email to