mpifileutils: Add patch for aarch64. (#18724)

* mpifileutils: Add patch for aarch64.

* Update patch and limit version for apply patch.
This commit is contained in:
Toyohisa Kameyama 2020-10-12 08:49:38 +09:00 committed by GitHub
parent fe239c83fc
commit 683ecb3f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,25 @@
commit 66c5273035396c34998c32e9d7918bce9aeca58f
Author: Toyohisa Kameyama <kameyama@riken.jp>
Date: Fri Sep 25 10:04:58 2020 +0900
mfu: support aarch64
aarch64 kernel is not found SYS_getdents.
If SYS_getdents is not defined, use sys_getdents64.
Signed-off-by: Toyohisa Kameyama <kameyama@riken.jp>
diff --git a/src/common/mfu_flist_walk.c b/src/common/mfu_flist_walk.c
index ed81c8d..08836c4 100644
--- a/src/common/mfu_flist_walk.c
+++ b/src/common/mfu_flist_walk.c
@@ -161,6 +161,9 @@ static void walk_getdents_process_dir(const char* dir, CIRCLE_handle* handle)
return;
}
+#if !defined(SYS_getdents) && defined(SYS_getdents64)
+#define SYS_getdents SYS_getdents64
+#endif
/* Read all directory entries */
while (1) {
/* execute system call to get block of directory entries */

View File

@ -26,6 +26,8 @@ class Mpifileutils(Package):
version('0.9.1', sha256='15a22450f86b15e7dc4730950b880fda3ef6f59ac82af0b268674d272aa61c69')
version('0.9', sha256='1b8250af01aae91c985ca5d61521bfaa4564e46efa15cee65cd0f82cf5a2bcfb')
patch('nosys_getdents.patch', when='@:0.10.1 target=aarch64:')
conflicts('platform=darwin')
depends_on('mpi')