Compare commits
No commits in common. "c8s" and "c10s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
SOURCES/libaio-0.3.112.tar.gz
|
libaio-0.3.109.tar.gz
|
||||||
/libaio-0.3.112.tar.gz
|
/libaio-0.3.110.tar.gz
|
||||||
|
/libaio-0.3.111.tar.gz
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
--- !Policy
|
--- !Policy
|
||||||
product_versions:
|
product_versions:
|
||||||
- rhel-8
|
- rhel-10
|
||||||
decision_context: osci_compose_gate
|
decision_context: osci_compose_gate
|
||||||
rules:
|
rules:
|
||||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.openstack-tier1-gating.functional}
|
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/libaio.functional}
|
||||||
|
|
||||||
|
|||||||
20
libaio-install-to-destdir-slash-usr.patch
Normal file
20
libaio-install-to-destdir-slash-usr.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
diff -up libaio-0.3.111/src/Makefile.orig libaio-0.3.111/src/Makefile
|
||||||
|
--- libaio-0.3.111/src/Makefile.orig 2018-03-06 17:24:47.000000000 -0500
|
||||||
|
+++ libaio-0.3.111/src/Makefile 2018-03-07 10:44:49.148004447 -0500
|
||||||
|
@@ -53,11 +53,11 @@ $(libname): $(libaio_sobjs) libaio.map
|
||||||
|
$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)
|
||||||
|
|
||||||
|
install: $(all_targets)
|
||||||
|
- install -D -m 644 libaio.h $(includedir)/libaio.h
|
||||||
|
- install -D -m 644 libaio.a $(libdir)/libaio.a
|
||||||
|
- install -D -m 755 $(libname) $(libdir)/$(libname)
|
||||||
|
- ln -sf $(libname) $(libdir)/$(soname)
|
||||||
|
- ln -sf $(libname) $(libdir)/libaio.so
|
||||||
|
+ install -D -m 644 libaio.h $(destdir)$(includedir)/libaio.h
|
||||||
|
+ install -D -m 644 libaio.a $(destdir)$(usrlibdir)/libaio.a
|
||||||
|
+ install -D -m 755 $(libname) $(destdir)$(usrlibdir)/$(libname)
|
||||||
|
+ ln -sf $(libname) $(destdir)$(usrlibdir)/$(soname)
|
||||||
|
+ ln -sf $(libname) $(destdir)$(usrlibdir)/libaio.so
|
||||||
|
|
||||||
|
$(libaio_objs): libaio.h
|
||||||
|
|
||||||
13
libaio-remove-nostartfiles-nostdlib-from-build-flags.patch
Normal file
13
libaio-remove-nostartfiles-nostdlib-from-build-flags.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/Makefile b/src/Makefile
|
||||||
|
index eadb336..5911c81 100644
|
||||||
|
--- libaio-0.3.111/src/Makefile
|
||||||
|
+++ libaio-0.3.111/src/Makefile
|
||||||
|
@@ -3,7 +3,7 @@ includedir=$(prefix)/include
|
||||||
|
libdir=$(prefix)/lib
|
||||||
|
|
||||||
|
CFLAGS ?= -g -fomit-frame-pointer -O2
|
||||||
|
-CFLAGS += -nostdlib -nostartfiles -Wall -I. -fPIC
|
||||||
|
+CFLAGS += -Wall -I. -fPIC
|
||||||
|
SO_CFLAGS=-shared $(CFLAGS)
|
||||||
|
L_CFLAGS=$(CFLAGS)
|
||||||
|
LINK_FLAGS=
|
||||||
112
libaio.spec
112
libaio.spec
@ -1,10 +1,15 @@
|
|||||||
Name: libaio
|
Name: libaio
|
||||||
Version: 0.3.112
|
Version: 0.3.111
|
||||||
Release: 1%{?dist}
|
Release: 22%{?dist}
|
||||||
Summary: Linux-native asynchronous I/O access library
|
Summary: Linux-native asynchronous I/O access library
|
||||||
License: LGPLv2+
|
License: LGPL-2.0-or-later
|
||||||
Group: System Environment/Libraries
|
Source: http://releases.pagure.org/libaio/libaio-0.3.111.tar.gz
|
||||||
Source: https://releases.pagure.org/libaio/%{name}-%{version}.tar.gz
|
|
||||||
|
Patch1: libaio-install-to-destdir-slash-usr.patch
|
||||||
|
Patch2: libaio-remove-nostartfiles-nostdlib-from-build-flags.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: make
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
|
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
|
||||||
@ -19,8 +24,7 @@ require the Linux-native async I/O API.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for Linux-native asynchronous I/O access
|
Summary: Development files for Linux-native asynchronous I/O access
|
||||||
Group: Development/System
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: libaio
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package provides header files to include and libraries to link with
|
This package provides header files to include and libraries to link with
|
||||||
@ -28,9 +32,17 @@ for the Linux-native asynchronous I/O facility ("async I/O", or "aio").
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a 0
|
%setup -q -a 0
|
||||||
|
%patch1 -p0 -b .install-to-destdir-slash-usr
|
||||||
|
%patch1 -p1 -b .install-to-destdir-slash-usr
|
||||||
|
%patch2 -p0 -b .nostdlib
|
||||||
|
%patch2 -p1 -b .nostdlib
|
||||||
mv %{name}-%{version} compat-%{name}-%{version}
|
mv %{name}-%{version} compat-%{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# This package uses ASMs to implement symbol versioning and is thus
|
||||||
|
# incompatible with LTO
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
# A library with a soname of 1.0.0 was inadvertantly released. This
|
# A library with a soname of 1.0.0 was inadvertantly released. This
|
||||||
# build process builds a version of the library with the broken soname in
|
# build process builds a version of the library with the broken soname in
|
||||||
# the compat-libaio-0.3.103 directory, and then builds the library again
|
# the compat-libaio-0.3.103 directory, and then builds the library again
|
||||||
@ -42,37 +54,97 @@ cd ..
|
|||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
||||||
cd compat-%{name}-%{version}
|
cd compat-%{name}-%{version}
|
||||||
install -D -m 755 src/libaio.so.1.0.0 \
|
install -D -m 755 src/libaio.so.1.0.0 \
|
||||||
$RPM_BUILD_ROOT/%{usrlibdir}/libaio.so.1.0.0
|
$RPM_BUILD_ROOT/%{usrlibdir}/libaio.so.1.0.0
|
||||||
cd ..
|
cd ..
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr libdir=/%{_libdir} \
|
make destdir=$RPM_BUILD_ROOT prefix=/ libdir=%{libdir} usrlibdir=%{usrlibdir} \
|
||||||
includedir=%{_includedir}
|
includedir=%{_includedir} install
|
||||||
|
|
||||||
find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
find %{buildroot} -name '*.a' -delete
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%license COPYING
|
||||||
%attr(0755,root,root) %{usrlibdir}/libaio.so.*
|
%attr(0755,root,root) %{usrlibdir}/libaio.so.*
|
||||||
%doc COPYING TODO
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%attr(0644,root,root) %{_includedir}/*
|
%attr(0644,root,root) %{_includedir}/*
|
||||||
%attr(0755,root,root) %{usrlibdir}/libaio.so
|
%attr(0755,root,root) %{usrlibdir}/libaio.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Jun 3 2019 Jeff Moyer <jmoyer@redhat.com> - 0.3.112-1.el8
|
* Wed Dec 11 2024 Jeff Moyer <jmoyer@redhat.com> - 0.3.111-22
|
||||||
- rebase to 0.3.112
|
- Bump release to trigger new test run.
|
||||||
- main feature: async poll support
|
- Resolves: RHEL-70741
|
||||||
- Resolves: rhbz#1645556
|
|
||||||
|
|
||||||
* Wed Sep 26 2018 Jeff Moyer <jmoyer@redhat.com> - 0.3.110-12.el8
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.3.111-21
|
||||||
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
Resolves: RHEL-64018
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.3.111-20
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-19
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-18
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Oct 13 2023 Jeff Moyer <jmoyer@redhat.com> - 0.3.111-17
|
||||||
|
- migrated to SPDX license (Jeff Moyer)
|
||||||
|
|
||||||
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-16
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-14
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Aug 07 2020 Jeff Law <law@redhat.com> - 0.3.111-10
|
||||||
|
- Disable LTO
|
||||||
|
|
||||||
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-9
|
||||||
|
- Second attempt - Rebuilt for
|
||||||
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Mar 13 2019 Paolo Bonzini <pbonzini@redhat.com> - 0.3.111-5
|
||||||
- Pass in the distro-provided CFLAGS and LFLAGS. (Jeff Moyer)
|
- Pass in the distro-provided CFLAGS and LFLAGS. (Jeff Moyer)
|
||||||
- Get rid of -nostartfiles -nostdlib (Jeff Moyer)
|
- Get rid of -nostartfiles -nostdlib (Jeff Moyer)
|
||||||
- Resolves: rhbz#1630578
|
- Resolves: rhbz#1630578
|
||||||
|
|
||||||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 17 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.3.111-3
|
||||||
|
- Spec cleanup
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.111-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Mar 07 2018 Jeff Moyer <jmoyer@redhat.com> - 0.3.111-1
|
||||||
|
- import 0.3.111, which adds support for preadv2,pwritev2, riscv (Jeff Moyer)
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.110-11
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.110-11
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
@ -242,7 +314,7 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
|||||||
- change a #include from <linux/types.h> to <sys/types.h>. Fixes a build
|
- change a #include from <linux/types.h> to <sys/types.h>. Fixes a build
|
||||||
issue on s390.
|
issue on s390.
|
||||||
|
|
||||||
* Wed Jul 7 2003 Bill Nottingham <notting@redhat.com> 0.3.96-3
|
* Wed Jul 9 2003 Bill Nottingham <notting@redhat.com> 0.3.96-3
|
||||||
- fix paths on lib64 arches
|
- fix paths on lib64 arches
|
||||||
|
|
||||||
* Wed Jun 18 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.96-2
|
* Wed Jun 18 2003 Michael K. Johnson <johnsonm@redhat.com> 0.3.96-2
|
||||||
@ -263,7 +335,7 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
|||||||
- add powerpc support from Gianni Tedesco <gianni@ecsc.co.uk>
|
- add powerpc support from Gianni Tedesco <gianni@ecsc.co.uk>
|
||||||
- add s/390 support from Arnd Bergmann <arnd@bergmann-dalldorf.de>
|
- add s/390 support from Arnd Bergmann <arnd@bergmann-dalldorf.de>
|
||||||
|
|
||||||
* Fri Sep 12 2002 Benjamin LaHaise <bcrl@redhat.com>
|
* Fri Sep 13 2002 Benjamin LaHaise <bcrl@redhat.com>
|
||||||
- libaio 0.3.92 test release
|
- libaio 0.3.92 test release
|
||||||
- build on x86-64
|
- build on x86-64
|
||||||
|
|
||||||
@ -286,7 +358,7 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
|||||||
* Mon Apr 15 2002 Tim Powers <timp@redhat.com>
|
* Mon Apr 15 2002 Tim Powers <timp@redhat.com>
|
||||||
- make the post scriptlet not use /bin/sh
|
- make the post scriptlet not use /bin/sh
|
||||||
|
|
||||||
* Sat Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>
|
* Fri Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>
|
||||||
- add /lib/libredhat-kernel* to %%files.
|
- add /lib/libredhat-kernel* to %%files.
|
||||||
|
|
||||||
* Fri Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>
|
* Fri Apr 12 2002 Benjamin LaHaise <bcrl@redhat.com>
|
||||||
|
|||||||
56
plans/libaio.fmf
Normal file
56
plans/libaio.fmf
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
summary: libaio gating tests
|
||||||
|
prepare:
|
||||||
|
how: install
|
||||||
|
package:
|
||||||
|
- rpm-build
|
||||||
|
- gcc
|
||||||
|
- libaio-devel
|
||||||
|
- gcc-c++
|
||||||
|
- wget
|
||||||
|
|
||||||
|
discover:
|
||||||
|
how: shell
|
||||||
|
url: https://gitlab.com/redhat/centos-stream/rpms/libaio.git
|
||||||
|
ref: c10s
|
||||||
|
dist-git-source: true
|
||||||
|
dist-git-install-builddeps: true
|
||||||
|
tests:
|
||||||
|
- name: regression tests
|
||||||
|
test: |
|
||||||
|
set -x
|
||||||
|
if [ -z "$PKG_VER" ]; then
|
||||||
|
PKG_VER=`rpmspec -q --srpm --qf "%{version}" libaio.spec`
|
||||||
|
fi
|
||||||
|
if [ -z "$PKG_VER" ]; then
|
||||||
|
echo "Error: Unable to extract package version"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
pushd "$TMT_SOURCE_DIR/libaio-$PKG_VER"
|
||||||
|
|
||||||
|
ls -l
|
||||||
|
cp ../tests/test_against_local.patch ./ || wget https://gitlab.cee.redhat.com/kernel-qe/kernel/-/raw/master/storage/block/libaio/harness/test_against_local.patch
|
||||||
|
if [[ ! -f test_against_local.patch ]];then
|
||||||
|
echo "Don't get the lcoal patch"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
! grep -q 'make LIBAIO=-laio partcheck' harness/Makefile && patch -p0 < test_against_local.patch
|
||||||
|
if [[ $? != 0 ]];then
|
||||||
|
echo "apply local patch failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
make install || echo "make install faield in $(pwd)"
|
||||||
|
|
||||||
|
pushd harness
|
||||||
|
make || echo "make in harness failed"
|
||||||
|
make check || exit 1
|
||||||
|
|
||||||
|
popd
|
||||||
|
popd
|
||||||
|
|
||||||
|
execute:
|
||||||
|
- how: tmt
|
||||||
|
adjust:
|
||||||
|
enabled: false
|
||||||
|
when: distro == fedora
|
||||||
|
because: They don't have access to internal repos.
|
||||||
|
|
||||||
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (libaio-0.3.112.tar.gz) = 5f984529c9f747a6c82f1e4457fc0832bb1fc299ae6e700f2ac5a8ea7b9bfc6ea1e75809728cc115a020cff6685ed1f4e38c6aeacc1ea98dfccce04dd19dafaa
|
SHA512 (libaio-0.3.111.tar.gz) = 440f2b62f99ca2e72ffc8c2c04b4779a1a7cf24a8ba2a30b34d18b4ee77630a2078610fe8c435559f81a5c3bfa93049bd53d77464a0da8267833fbde3f40ceeb
|
||||||
|
|||||||
18
tests/test_against_local.patch
Normal file
18
tests/test_against_local.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
--- harness/Makefile 2019-06-28 02:50:39.028675707 -0400
|
||||||
|
+++ harness/Makefile.new 2019-06-28 02:55:12.037687654 -0400
|
||||||
|
@@ -9,10 +9,14 @@
|
||||||
|
CFLAGS+=-Wall -I../src -g -O2 -DPAGE_SIZE=$(shell getconf PAGESIZE)
|
||||||
|
#-lpthread -lrt
|
||||||
|
|
||||||
|
+# Change this on the build line to run tests against the installed libraries:
|
||||||
|
+# make LIBAIO=-laio partcheck
|
||||||
|
+LIBAIO?=../src/libaio.a
|
||||||
|
+
|
||||||
|
all: $(PROGS)
|
||||||
|
|
||||||
|
$(PROGS): %.p: %.t $(HARNESS_SRCS)
|
||||||
|
- $(CC) $(CFLAGS) -DTEST_NAME=\"$<\" -o $@ main.c ../src/libaio.a -lpthread
|
||||||
|
+ $(CC) $(CFLAGS) -DTEST_NAME=\"$<\" -o $@ main.c $(LIBAIO) -lpthread
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(PROGS) *.o runtests.out rofile wofile rwfile
|
||||||
Loading…
Reference in New Issue
Block a user