Fix for FTBFS(rhbz#2045780)
This commit is contained in:
parent
6039bc488a
commit
9d5c54e918
13
lftp-4.9.2-cdefs.patch
Normal file
13
lftp-4.9.2-cdefs.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/lib/libc-config.h.old b/lib/libc-config.h
|
||||
index 1300c3a..7537bab 100644
|
||||
--- a/lib/libc-config.h.old
|
||||
+++ b/lib/libc-config.h
|
||||
@@ -156,7 +156,7 @@
|
||||
#undef __warndecl
|
||||
|
||||
/* Include our copy of glibc <sys/cdefs.h>. */
|
||||
-#include <cdefs.h>
|
||||
+#include <sys/cdefs.h>
|
||||
|
||||
/* <cdefs.h> __inline is too pessimistic for non-GCC. */
|
||||
#undef __inline
|
@ -1,7 +1,7 @@
|
||||
Summary: A sophisticated file transfer program
|
||||
Name: lftp
|
||||
Version: 4.9.2
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: GPLv3+
|
||||
Source0: http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
|
||||
URL: http://lftp.yar.ru/
|
||||
@ -11,6 +11,7 @@ BuildRequires: desktop-file-utils
|
||||
BuildRequires: make
|
||||
|
||||
Patch1: lftp-4.0.9-date_fmt.patch
|
||||
Patch2: lftp-4.9.2-cdefs.patch
|
||||
|
||||
%description
|
||||
LFTP is a sophisticated ftp/http file transfer program. Like bash, it has job
|
||||
@ -30,6 +31,9 @@ Utility scripts for use with lftp.
|
||||
%setup -q
|
||||
|
||||
%patch1 -p1 -b .date_fmt
|
||||
%ifarch ppc64le
|
||||
%patch2 -p1 -b .cdefs
|
||||
%endif
|
||||
|
||||
#sed -i.rpath -e '/lftp_cv_openssl/s|-R.*lib||' configure
|
||||
sed -i.norpath -e \
|
||||
@ -92,6 +96,9 @@ desktop-file-install \
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Feb 07 2022 Michal Ruprich <mruprich@redhat.com> - 4.9.2-5
|
||||
- Fix for FTBFS(rhbz#2045780)
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user