diff --git a/0008-fix-loongarch-compile-and-test-5-errors.patch b/0008-fix-loongarch-compile-and-test-5-errors.patch new file mode 100644 index 0000000000000000000000000000000000000000..bf74f71af1057bbcfc18cef03f9f324e7b1a8be9 --- /dev/null +++ b/0008-fix-loongarch-compile-and-test-5-errors.patch @@ -0,0 +1,31 @@ +From 945831b68dbb5d99c4b673a042f36abcea4afcc3 Mon Sep 17 00:00:00 2001 +From: zhangzikang +Date: Fri, 17 May 2024 16:20:03 +0800 +Subject: [PATCH] fix loongarch compile and test-5 errors + +--- + harness/cases/5.t | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/harness/cases/5.t b/harness/cases/5.t +index b0a7c56..3ac3d11 100644 +--- a/harness/cases/5.t ++++ b/harness/cases/5.t +@@ -40,12 +40,13 @@ int test_main(void) + buf = mmap(0, page_size, PROT_WRITE, MAP_SHARED, rwfd, 0); + assert(buf != (char *)-1); + ++ status |= attempt_rw(rwfd, buf, SIZE, 0, READ, SIZE); ++ + /* Whether PROT_WRITE is readable is arch-dependent. So compare + * against write() result (to make the kernel read from buf). */ + res = write(rwfd, buf, SIZE); + if (res < 0) + res = -errno; +- status |= attempt_rw(rwfd, buf, SIZE, 0, READ, SIZE); + status |= attempt_rw(rwfd, buf, SIZE, 0, WRITE, res); + + return status; +-- +2.43.0 + diff --git a/libaio.spec b/libaio.spec index 9672c7f78ca35f9a78f36fa23b72a206134a8385..74d0743cb9995a18a159ee019d9176d2e06c9a0c 100644 --- a/libaio.spec +++ b/libaio.spec @@ -1,7 +1,7 @@ Name: libaio Version: 0.3.113 -Release: 9 +Release: 10 Summary: Linux-native asynchronous I/O access library License: LGPLv2+ URL: https://pagure.io/libaio @@ -15,6 +15,7 @@ Patch4: 0004-libaio-makefile-add-D_FORTIFY_SOURCE-flag.patch Patch5: 0005-Fix-compile-error-that-exec-checking-need-super-priv.patch Patch6: 0006-libaio-Add-sw64-architecture.patch Patch7: 0007-Fix-build-error-if-compiler-is-clang.patch +Patch8: 0008-fix-loongarch-compile-and-test-5-errors.patch BuildRequires: gcc @@ -45,6 +46,7 @@ Files for libaio development %patch6 -p1 %endif %patch7 -p1 +%patch8 -p1 %build make @@ -69,6 +71,12 @@ make check %attr(0755,root,root) %{_libdir}/libaio.so %changelog +* Fri May 24 2024 shenzhongwei - 0.3.113-10 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: Fix loongarch compile and test-8 errors + * Wed Apr 12 2023 Chenxi Mao - 0.3.113-9 - Fix build error because of incorrect patch file name.