Fix C99 compatibility issue
Related to: <https://fedoraproject.org/wiki/Changes/PortingToModernC> <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
This commit is contained in:
parent
f876ba2d3f
commit
9405753eec
22
lftp-4.9.2-fedora-c99.patch
Normal file
22
lftp-4.9.2-fedora-c99.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff -rup a/configure b/configure
|
||||
--- a/configure 2023-02-08 21:27:48.733647760 -0500
|
||||
+++ b/configure 2023-02-08 21:28:31.201222024 -0500
|
||||
@@ -57429,6 +57429,7 @@ else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
+ #include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
unsigned long long x=0,x1;
|
||||
diff -rup a/m4/needtrio.m4 b/m4/needtrio.m4
|
||||
--- a/m4/needtrio.m4 2016-02-20 08:57:52.000000000 -0500
|
||||
+++ b/m4/needtrio.m4 2023-02-08 21:28:13.642571126 -0500
|
||||
@@ -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;
|
||||
10
lftp.spec
10
lftp.spec
@ -1,7 +1,7 @@
|
||||
Summary: A sophisticated file transfer program
|
||||
Name: lftp
|
||||
Version: 4.9.2
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
License: GPLv3+
|
||||
Source0: http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
|
||||
URL: http://lftp.yar.ru/
|
||||
@ -13,6 +13,7 @@ BuildRequires: make
|
||||
Patch1: lftp-4.0.9-date_fmt.patch
|
||||
Patch2: lftp-4.9.2-cdefs.patch
|
||||
Patch3: lftp-4.9.2-gnutls-peers2.patch
|
||||
Patch4: lftp-4.9.2-fedora-c99.patch
|
||||
|
||||
%description
|
||||
LFTP is a sophisticated ftp/http file transfer program. Like bash, it has job
|
||||
@ -37,6 +38,10 @@ Utility scripts for use with lftp.
|
||||
%endif
|
||||
%patch3 -p1 -b .gnutls-peers2
|
||||
|
||||
%patch4 -p1 -b .fedora-c99
|
||||
# Avoid trying to re-run autoconf
|
||||
touch -r aclocal.m4 configure m4/needtrio.m4
|
||||
|
||||
#sed -i.rpath -e '/lftp_cv_openssl/s|-R.*lib||' configure
|
||||
sed -i.norpath -e \
|
||||
'/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib64 |' \
|
||||
@ -100,6 +105,9 @@ desktop-file-install \
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Feb 8 2023 DJ Delorie <dj@redhat.com> - 4.9.2-9
|
||||
- Fix C99 compatibility issue
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user