fix FTBFS

Resolves: rhbz#2100647
This commit is contained in:
Joe Orton 2022-07-06 16:34:09 +01:00
parent 520c044847
commit 02817d2dfe
2 changed files with 20 additions and 1 deletions

13
libotr-4.1.1-ftbfs.patch Normal file
View File

@ -0,0 +1,13 @@
https://bugzilla.redhat.com/show_bug.cgi?id=2100647
--- libotr-4.1.1/tests/regression/client/client.c.ftbfs
+++ libotr-4.1.1/tests/regression/client/client.c
@@ -27,6 +27,7 @@
#include <syscall.h>
#include <sys/epoll.h>
#include <sys/types.h>
+#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>

View File

@ -2,9 +2,10 @@
Summary: Off-The-Record Messaging library and toolkit
Name: libotr
Version: 4.1.1
Release: 13%{?dist}
Release: 14%{?dist}
License: GPLv2 and LGPLv2
Source0: http://otr.cypherpunks.ca/%{name}-%{version}.tar.gz
Patch1: libotr-4.1.1-ftbfs.patch
Url: http://otr.cypherpunks.ca/
Provides: libotr-toolkit = %{version}
Obsoletes: libotr-toolkit < %{version}
@ -33,6 +34,7 @@ The devel package contains the libotr library and include files.
%prep
%setup -q
%patch1 -p1 -b .ftbfs
%if %{snapshot}
aclocal
@ -72,6 +74,10 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
%changelog
* Wed Jul 6 2022 Joe Orton <jorton@redhat.com> - 4.1.1-14
- fix FTBFS
Resolves: rhbz#2100647
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.1.1-13
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688