diff --git a/fix-splice-signature.patch b/fix-splice-signature.patch new file mode 100644 index 0000000..6c95d89 --- /dev/null +++ b/fix-splice-signature.patch @@ -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) diff --git a/libaio.changes b/libaio.changes index 8454d39..5ce764d 100644 --- a/libaio.changes +++ b/libaio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 12 15:18:49 UTC 2022 - Dirk Müller + +- add fix-splice-signature.patch to fix build on 32bit + ------------------------------------------------------------------- Thu Apr 28 21:17:32 UTC 2022 - Dirk Müller diff --git a/libaio.spec b/libaio.spec index d638a90..216ff06 100644 --- a/libaio.spec +++ b/libaio.spec @@ -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