commit:     5a39d70b6908a5aa39184c7bf2f402dceca51ed4
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  5 19:39:55 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Nov  5 19:48:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a39d70b

net-ftp/lftp: fix compilation with clang

Closes: https://bugs.gentoo.org/875692
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-ftp/lftp/lftp-4.9.2.ebuild | 3 +++
 net-ftp/lftp/lftp-9999.ebuild  | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/net-ftp/lftp/lftp-4.9.2.ebuild b/net-ftp/lftp/lftp-4.9.2.ebuild
index 8e4953d3e242..59f56239e17f 100644
--- a/net-ftp/lftp/lftp-4.9.2.ebuild
+++ b/net-ftp/lftp/lftp-4.9.2.ebuild
@@ -62,6 +62,9 @@ PATCHES=(
 src_prepare() {
        default
 
+       # bug #875692
+       sed -e '/#include/s/cmath/math.h/' -i trio/*.c || die
+
        eautoreconf
 
        elibtoolize # for Darwin bundles

diff --git a/net-ftp/lftp/lftp-9999.ebuild b/net-ftp/lftp/lftp-9999.ebuild
index 915bfc33d101..c1915ac399f9 100644
--- a/net-ftp/lftp/lftp-9999.ebuild
+++ b/net-ftp/lftp/lftp-9999.ebuild
@@ -60,6 +60,9 @@ PATCHES=(
 src_prepare() {
        default
 
+       # bug #875692
+       sed -e '/#include/s/cmath/math.h/' -i trio/*.c || die
+
        gnulib-tool --update || die
 
        chmod +x build-aux/git-version-gen || die

Reply via email to