diff --git a/0006-skip-testcase-23-since-current-kernel-version-not-su.patch b/0006-skip-testcase-23-since-current-kernel-version-not-su.patch new file mode 100644 index 0000000000000000000000000000000000000000..8fa54135f34a0686fbd1f2dc414d7e4fd1bdbd02 --- /dev/null +++ b/0006-skip-testcase-23-since-current-kernel-version-not-su.patch @@ -0,0 +1,29 @@ +From 385c1b9eb28e1cc1f64ddedb4a64aa2effa13d5c Mon Sep 17 00:00:00 2001 +From: wangzhiqiang +Date: Thu, 3 Nov 2022 16:24:49 +0800 +Subject: [PATCH] skip testcase 23 since current kernel version not support + +current kernel version of obs not support run testcase 23, +so skip it to avoild build error. +issue: https://gitee.com/src-openeuler/libaio/issue/I5XELL +--- + harness/runtests.sh | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/harness/runtests.sh b/harness/runtests.sh +index e9ceec8..a62bae7 100755 +--- a/harness/runtests.sh ++++ b/harness/runtests.sh +@@ -9,6 +9,9 @@ echo "Test run starting at" `date` + while [ $# -ge 1 ] ; do + this_test=$1 + shift ++ if [ $this_test = "cases/23.p" ];then ++ continue ++ fi + echo "Starting $this_test" + $this_test 2>&1 + res=$? +-- +2.33.0 + diff --git a/libaio.spec b/libaio.spec index 891104c049f69e956fa366013c025efcea733e2a..67345cd6593972b633b86615b4665541ecc6b00f 100644 --- a/libaio.spec +++ b/libaio.spec @@ -1,7 +1,7 @@ Name: libaio Version: 0.3.113 -Release: 1 +Release: 2 Summary: Linux-native asynchronous I/O access library License: LGPLv2+ URL: https://pagure.io/libaio @@ -15,6 +15,7 @@ Patch2: 0002-libaio-makefile-cflags.patch Patch3: 0003-libaio-fix-for-x32.patch Patch4: 0004-libaio-makefile-add-D_FORTIFY_SOURCE-flag.patch Patch5: 0005-Fix-compile-error-that-exec-checking-need-super-priv.patch +Patch6: 0006-skip-testcase-23-since-current-kernel-version-not-su.patch BuildRequires: gcc @@ -43,6 +44,7 @@ Files for libaio development %patch3 -p1 -b .fix-x32 %patch4 -p1 -b .makefile-add-D_FORTIFY_SOURCE-flag %patch5 -p1 -b .fix-compile-error +%patch6 -p1 -b .skip-testcase mv %{name}-%{version} setup-%{name}-%{version} @@ -74,6 +76,9 @@ make check %attr(0755,root,root) %{_libdir}/libaio.so %changelog +* Thu Nov 3 2022 wangzhiqiang - 0.3.113-2 +- skip testcase 23 since current kernel version not support + * Fri Oct 28 2022 wangzhiqiang - 0.3.113-1 - update from 0.3.112 to 0.3.113