Accepting request 988695 from home:dirkmueller:Factory

- add fix-splice-signature.patch to fix build on 32bit

OBS-URL: https://build.opensuse.org/request/show/988695
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libaio?expand=0&rev=45
This commit is contained in:
Adam Majer 2022-07-12 15:31:36 +00:00 committed by Git OBS Bridge
parent 67ca9c6f2a
commit c31151a669
3 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,22 @@
submitted as https://pagure.io/libaio/issue/21
--- libaio-libaio-0.3.113.orig/harness/cases/23.t
+++ libaio-libaio-0.3.113/harness/cases/23.t
@@ -72,7 +72,7 @@ static void fail_errno(const char *forma
static void *thrproc2(void *arg)
{
for (;;) {
- off_t offset = 0;
+ off64_t offset = 0;
pthread_barrier_wait(&barrier);
if (exiting)
@@ -92,7 +92,7 @@ static void *thrproc3(void *arg)
{
for (;;) {
char c;
- off_t offset = 0;
+ off64_t offset = 0;
pthread_barrier_wait(&barrier);
if (exiting)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 12 15:18:49 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add fix-splice-signature.patch to fix build on 32bit
-------------------------------------------------------------------
Thu Apr 28 21:17:32 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -26,6 +26,7 @@ Group: Development/Libraries/C and C++
URL: https://pagure.io/libaio
Source: https://pagure.io/libaio/archive/libaio-%{version}/libaio-libaio-%{version}.tar.gz
Source2: baselibs.conf
Patch1: fix-splice-signature.patch
%description
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has
@ -62,16 +63,17 @@ with, for the Linux-native asynchronous I/O facility ("async I/O", or
%prep
%setup -q -n %{name}-%{name}-%{version}
%patch1 -p1
%build
make %{?_smp_mflags} OPTFLAGS="%{optflags}"
%make_build OPTFLAGS="%{optflags}"
%install
%make_install libdir=%{_libdir}
rm %{buildroot}%{_libdir}/*.a
%check
make %{?_smp_mflags} partcheck
%make_build OPTFLAGS="%{optflags}" partcheck
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig