main/lftp: fix build with gcc 14

This commit is contained in:
Natanael Copa 2024-08-15 14:42:31 +02:00
parent efef403ced
commit cd7bfcb08b
2 changed files with 18 additions and 4 deletions

View file

@ -3,14 +3,15 @@
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=lftp
pkgver=4.9.2
pkgrel=6
pkgrel=7
pkgdesc="Sophisticated ftp/http client"
url="https://lftp.tech"
arch="all"
license="GPL-3.0-or-later"
makedepends="zlib-dev openssl-dev>3 readline-dev ncurses-dev"
makedepends="zlib-dev openssl-dev>3 readline-dev ncurses-dev autoconf automake libtool gettext-dev"
subpackages="$pkgname-doc"
source="https://lftp.yar.ru/ftp/lftp-$pkgver.tar.xz"
source="https://lftp.yar.ru/ftp/lftp-$pkgver.tar.xz
gcc14.patch"
# secfixes:
# 4.8.4-r0:
@ -18,7 +19,7 @@ source="https://lftp.yar.ru/ftp/lftp-$pkgver.tar.xz"
prepare() {
default_prepare
update_config_sub
autoreconf -vif
}
build() {
@ -49,4 +50,5 @@ check() {
sha512sums="
cda8698e7e34d748715a6fe5dc06c758240302621c7957402f0cc67577acf1a96b436fda4282408dee8171dc84a31e0be432df99a30f0a10057a8e7ea9ec64ad lftp-4.9.2.tar.xz
674df091879ee3f816ff0ac247d36d2244ecce85ac37b0be429bd8919260bb790ddc17c83e3aae2f481f7fd3a093606a231900f0d4d020f32ac0fcb576cc7ad1 gcc14.patch
"

12
main/lftp/gcc14.patch Normal file
View file

@ -0,0 +1,12 @@
diff --git a/m4/needtrio.m4 b/m4/needtrio.m4
index 45478f9..7439cd1 100644
--- 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;