From a577a6cdcb6998e8a2aa327ca9386b467c23d4a0 Mon Sep 17 00:00:00 2001 From: J0WI Date: Thu, 15 Apr 2021 22:34:42 +0200 Subject: [PATCH] testing/py3-inotify: enable aarch64 --- testing/py3-inotify/APKBUILD | 6 ++++-- testing/py3-inotify/aarch64.patch | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 testing/py3-inotify/aarch64.patch diff --git a/testing/py3-inotify/APKBUILD b/testing/py3-inotify/APKBUILD index f3b07cc7896..f09680cc23d 100644 --- a/testing/py3-inotify/APKBUILD +++ b/testing/py3-inotify/APKBUILD @@ -2,14 +2,15 @@ pkgname=py3-inotify _pkgname=pyinotify pkgver=0.9.6 -pkgrel=7 +pkgrel=8 pkgdesc="Linux filesystem events monitoring" options="!check" # No testsuite url="http://pypi.python.org/pypi/pyinotify" -arch="all !aarch64" # Unsupported architecture +arch="all" license="MIT" makedepends="py3-setuptools python3-dev" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz + aarch64.patch force-c-ext.patch " builddir="$srcdir"/$_pkgname-$pkgver @@ -26,4 +27,5 @@ package() { } sha512sums="b52de43293b06b32236e90b7c33fac061f3095cd7d4aecec89a099d56020db1a85440ab9dcc8b521238c001fc49a1f37d1b16d621bc1acab4d7273aebcaadbc5 pyinotify-0.9.6.tar.gz +a8c401de04b9c9af9ee51f93bc70c3d7de92f9087f80e94a94281cc251e76dcbe7978eff34e44039e519312637d75b32ea447b019522298fe93a8b9449425ae1 aarch64.patch 28fe821c7fd4edf5f359c2d6026bfe95477ed167ea6948b3785d3c1708513c0e038dd4d9f3988a26c02c43bfaac9acb0357ee7edd6d5b0b7ae6c40000e31c485 force-c-ext.patch" diff --git a/testing/py3-inotify/aarch64.patch b/testing/py3-inotify/aarch64.patch new file mode 100644 index 00000000000..6e149f8629a --- /dev/null +++ b/testing/py3-inotify/aarch64.patch @@ -0,0 +1,24 @@ +From d2431fef8dfcf75adb5eae8357be4f19a8178234 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= +Date: Sat, 15 Apr 2017 14:19:32 +0200 +Subject: [PATCH] Add system calls numbers for aarch64 + +--- + common/inotify_syscalls.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/common/inotify_syscalls.c b/common/inotify_syscalls.c +index 5e1f95d..bb173f8 100644 +--- a/common/inotify_syscalls.c ++++ b/common/inotify_syscalls.c +@@ -60,6 +60,10 @@ + # define __NR_inotify_init 316 + # define __NR_inotify_add_watch 317 + # define __NR_inotify_rm_watch 318 ++# elif defined (__aarch64__) ++# define __NR_inotify_init 26 ++# define __NR_inotify_add_watch 27 ++# define __NR_inotify_rm_watch 28 + # elif defined (__sh__) + # define __NR_inotify_init 290 + # define __NR_inotify_add_watch 291