Sync from SUSE:ALP:Source:Standard:1.0 libaio revision 8ee056d20a6943cdf86fdcb41cbfeb87

This commit is contained in:
Adrian Schröter 2024-10-14 14:48:00 +02:00
commit d36247ee58
7 changed files with 451 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

13
_constraints Normal file
View File

@ -0,0 +1,13 @@
<constraints>
<overwrite>
<conditions>
<arch>ppc64</arch>
<arch>ppc64le</arch>
</conditions>
<hardware>
<physicalmemory>
<size unit="M">4096</size>
</physicalmemory>
</hardware>
</overwrite>
</constraints>

7
baselibs.conf Normal file
View File

@ -0,0 +1,7 @@
libaio1
obsoletes "libaio-<targettype> < <version>"
provides "libaio-<targettype> = <version>"
libaio-devel
requires -libaio-<targettype>
requires "libaio1-<targettype> = <version>"

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)

BIN
libaio-libaio-0.3.113.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

290
libaio.changes Normal file
View File

@ -0,0 +1,290 @@
-------------------------------------------------------------------
Thu Mar 23 12:47:37 UTC 2023 - Martin Liška <mliska@suse.cz>
- Make the package respect %optflags and disable LTO.
-------------------------------------------------------------------
Fri Sep 23 18:51:25 UTC 2022 - Dirk Müller <dmueller@suse.com>
- skip testsuite on qemu_linux_user builds
-------------------------------------------------------------------
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>
- update to 0.3.113:
* cases/16.t: loongarch only supports eventfd2
* Add loongarch to supported architectures in libaio.spec
* Add endian detection and bit width detection for loongarch
* Use generic syscall number schema for loongarch
* Fix struct io_iocb_vector padding for 32bit architectures
* struct io_iocb_sockaddr padding for 32bit architectures
* Verify structure padding is correct at build time
* harness: add test for aio poll missed events
-------------------------------------------------------------------
Mon Feb 15 18:16:26 UTC 2021 - lduncan@suse.com
- Update to version libaio0.3.112+29.696a5e6483ba:
* Fix test issue with gcc-11 (bsc#1181869)
* harness: Skip the test if io_pgetevents() is not implemented
* harness: Print better error messages on error conditions in 22.t
* harness: Fix PROT_WRITE mmap check
* harness: fix read into PROT_WRITE mmap test
* harness: skip 22.p if async_poll isn't supported
* harness: Handle -ENOTSUP from io_submit() with RWF_NOWAIT
* harness: Add fallback code for filesystems not supporting O_DIRECT
* harness: add support for skipping tests
* harness: Make the test exit with a code matching the pass/fail state
-------------------------------------------------------------------
Tue Aug 27 08:41:21 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
- Add _constraints for PowerPC to avoid OOM at build time
-------------------------------------------------------------------
Wed Jul 31 12:37:41 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.3.112:
* Various patches for architectures/etc
- Update url
- Update install
- Enable tests
- Remove mostly merged patches or differently fixed issues:
* libaio-aarch64-support.diff
* libaio-generic-arch.diff
* libaio-optflags.diff
* 00_arches.patch
* 00_arches_sh.patch
* 01_link_libgcc.patch
* 02_libdevdir.patch
* 03_man_errors.patch
* riscv-support.patch
-------------------------------------------------------------------
Wed Apr 24 17:07:30 UTC 2019 - Martin Liška <mliska@suse.cz>
- Disable LTO (boo#1133233).
-------------------------------------------------------------------
Thu Jan 31 16:03:40 UTC 2019 - schwab@suse.de
- riscv-support.patch: Add support for RISC-V
-------------------------------------------------------------------
Thu May 24 16:33:59 CEST 2018 - kukuk@suse.de
- Use %license instead of %doc [bsc#1082318]
-------------------------------------------------------------------
Sun Apr 17 16:49:35 UTC 2016 - meissner@suse.com
- libaio-optflags.diff: readd -stdlib to allow -fstack-protector-strong
builds (unclear why it was not allowed)
- 01_link_libgcc.patch, 02_libdevdir.patch: refreshed
-------------------------------------------------------------------
Tue Aug 26 11:33:27 UTC 2014 - fcrozat@suse.com
- Add obsoletes/provides to baselibs.conf (bsc#881698)
-------------------------------------------------------------------
Fri Mar 1 08:08:27 UTC 2013 - dmueller@suse.com
- Add libaio-aarch64-support.diff:
* add support for aarch64
- Add libaio-generic-arch.diff:
* support all archtes (also aarch64)
-------------------------------------------------------------------
Fri Feb 17 14:16:14 UTC 2012 - coolo@suse.com
- fix baselibs.conf after shlib split
-------------------------------------------------------------------
Thu Feb 16 10:56:49 UTC 2012 - mvyskocil@suse.cz
- fix typo versoin/version
-------------------------------------------------------------------
Mon Feb 13 10:48:23 UTC 2012 - coolo@suse.com
- patch license to follow spdx.org standard
-------------------------------------------------------------------
Mon Nov 28 11:50:13 UTC 2011 - jengelh@medozas.de
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
- Employ shlib packaging
-------------------------------------------------------------------
Mon Nov 28 01:36:31 CET 2011 - ro@suse.de
- fix lib64 platform check
-------------------------------------------------------------------
Wed Oct 5 12:13:40 UTC 2011 - uli@suse.com
- cross-build fix: use %__cc macro
-------------------------------------------------------------------
Fri Sep 30 12:36:33 UTC 2011 - adrian@suse.de
- drop debian arm hack to fix build on arm ;)
-------------------------------------------------------------------
Tue Mar 15 13:44:15 UTC 2011 - jengelh@medozas.de
- Update to libaio 0.3.109
* add ARM architecture support (grabbed from Debian arches tree)
* replace check of __i386__ with __LP64__ in test harness
- refreshed patches
-------------------------------------------------------------------
Fri Feb 12 09:57:26 UTC 2010 - jengelh@medozas.de
- fix more symbolic links to not include a /usr/src/ prefix
-------------------------------------------------------------------
Sat Jan 23 14:32:58 CET 2010 - jengelh@medozas.de
- update to libaio 0.3.107
- add more patches from Debian to fix compile errors on SPARC
- package baselibs.conf
-------------------------------------------------------------------
Sun Aug 2 10:17:33 UTC 2009 - jansimon.moeller@opensuse.org
- add ARM support to libaio sources
-------------------------------------------------------------------
Tue Mar 3 21:53:44 CET 2009 - crrodriguez@suse.de
- remove static libraries
- fix -devel package dependencies
-------------------------------------------------------------------
Wed Dec 10 12:34:56 CET 2008 - olh@suse.de
- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
(bnc#437293)
-------------------------------------------------------------------
Thu Dec 4 12:34:56 CET 2008 - olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
-------------------------------------------------------------------
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
-------------------------------------------------------------------
Thu Sep 27 11:34:39 CEST 2007 - hare@suse.de
- Fix dangling symlink (#307063)
-------------------------------------------------------------------
Thu Aug 2 12:50:35 CEST 2007 - hare@suse.de
- Use RPM_OPT_FLAGS
- Fix installation directories
-------------------------------------------------------------------
Wed Jan 25 21:37:22 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu May 5 11:41:51 CEST 2005 - schwab@suse.de
- Fix ia64 assembler.
-------------------------------------------------------------------
Wed Apr 27 11:52:48 CEST 2005 - kukuk@suse.de
- Update to version 0.3.104
-------------------------------------------------------------------
Wed Dec 1 12:09:26 CET 2004 - kukuk@suse.de
- Update to version 0.3.102 [#44374]
-------------------------------------------------------------------
Tue Apr 20 11:24:44 CEST 2004 - meissner@suse.de
- fixed ppc64 alignment problems. [#38801/LTC#7503]
-------------------------------------------------------------------
Fri Mar 12 14:08:41 CET 2004 - kukuk@suse.de
- Update to 0.3.98 [Bug #35266]
-------------------------------------------------------------------
Tue Mar 2 15:57:41 CET 2004 - ro@suse.de
- use -fPIC for shared objects on ppc
-------------------------------------------------------------------
Sun Jan 11 11:31:30 CET 2004 - adrian@suse.de
- add %defattr and %run_ldconfig
-------------------------------------------------------------------
Wed Oct 1 12:05:11 CEST 2003 - schwab@suse.de
- Fix for ia64.
-------------------------------------------------------------------
Wed Apr 23 12:48:36 CEST 2003 - coolo@suse.de
- fix build for lib64
-------------------------------------------------------------------
Wed Apr 23 11:48:26 CEST 2003 - coolo@suse.de
- use BuildRoot
-------------------------------------------------------------------
Fri Apr 11 11:22:07 CEST 2003 - ro@suse.de
- fix header to be includable with glibc (#26033)
-------------------------------------------------------------------
Thu Apr 3 10:29:47 CEST 2003 - kukuk@suse.de
- Add missing "const" to libaio.h [#26030]
-------------------------------------------------------------------
Tue Oct 1 07:44:00 PDT 2002 - meissner@suse.de
- Fixed __syscall_return for ppc.
-------------------------------------------------------------------
Fri Sep 20 16:54:17 CEST 2002 - fehr@suse.de
- Add syscall defines for x86_64
- add Andreas fix for testsuite main program to compile on x86_64
- add another fix to make testsuite build again on ia64
-------------------------------------------------------------------
Thu Sep 19 19:35:47 CEST 2002 - schwab@suse.de
- Add missing bits for ia64.
-------------------------------------------------------------------
Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de
- removed bogus self-provides
-------------------------------------------------------------------
Wed Sep 4 12:39:46 CEST 2002 - fehr@suse.de
- make package from libaio-0.3.15-2.5
-------------------------------------------------------------------

93
libaio.spec Normal file
View File

@ -0,0 +1,93 @@
#
# spec file for package libaio
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define lname libaio1
Name: libaio
Version: 0.3.113
Release: 0
Summary: Linux-Native Asynchronous I/O Access Library
License: LGPL-2.1-or-later
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
a richer API and capability set than the simple POSIX async I/O
facility. This library provides the Linux-native API for async I/O. The
POSIX async I/O facility requires this library to provide
kernel-accelerated async I/O capabilities, as do applications that
require the Linux-native async I/O API.
%package -n %{lname}
Summary: Linux-Native Asynchronous I/O Access Library
Group: System/Libraries
Obsoletes: libaio < %{version}-%{release}
Provides: libaio = %{version}-%{release}
%description -n %{lname}
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has
a richer API and capability set than the simple POSIX async I/O
facility. This library provides the Linux-native API for async I/O. The
POSIX async I/O facility requires this library to provide
kernel-accelerated async I/O capabilities, as do applications that
require the Linux-native async I/O API.
%package devel
Summary: Development Files for Linux-native Asynchronous I/O Access
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
Requires: glibc-devel
%description devel
This package provides header files to include, and libraries to link
with, for the Linux-native asynchronous I/O facility ("async I/O", or
"aio").
%prep
%setup -q -n %{name}-%{name}-%{version}
%patch1 -p1
%build
%define _lto_cflags %nil
CFLAGS="%{optflags}" %make_build
%install
%make_install libdir=%{_libdir}
rm %{buildroot}%{_libdir}/*.a
%check
# qemu-linux-user does not emulate io_setup syscall, so none of the testsuite makes sense
%if ! 0%{?qemu_user_space_build}
CFLAGS="%{optflags}" %make_build partcheck
%endif
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%license COPYING
%{_libdir}/libaio.so.*
%files devel
%{_includedir}/libaio.h
%{_libdir}/libaio.so
%changelog