From: Jon Ringle <[email protected]>

https://github.com/systemd/systemd/issues/8501

Signed-off-by: Jon Ringle <[email protected]>
---
 ..._nr_statx-defines-for-extra-architectures.patch | 36 ++++++++++++++++++++++
 patches/systemd-238/series                         |  3 +-
 2 files changed, 38 insertions(+), 1 deletion(-)
 create mode 100644 
patches/systemd-238/0004-add-__nr_statx-defines-for-extra-architectures.patch

diff --git 
a/patches/systemd-238/0004-add-__nr_statx-defines-for-extra-architectures.patch 
b/patches/systemd-238/0004-add-__nr_statx-defines-for-extra-architectures.patch
new file mode 100644
index 0000000..3cd8733
--- /dev/null
+++ 
b/patches/systemd-238/0004-add-__nr_statx-defines-for-extra-architectures.patch
@@ -0,0 +1,36 @@
+From: Jon Ringle <[email protected]>
+Date: Tue, 5 Jun 2018 13:32:27 -0400
+Subject: [PATCH] add __nr_statx defines for extra architectures
+
+This includes:
+ - arm
+ - arm64
+ - alpha
+ - powerpc64
+ - sparc
+
+Taken from kernel 4.16.6
+---
+ src/basic/missing_syscall.h | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
+index 34b8956a122e..86422ced7245 100644
+--- a/src/basic/missing_syscall.h
++++ b/src/basic/missing_syscall.h
+@@ -416,8 +416,14 @@ static inline int missing_bpf(int cmd, union bpf_attr 
*attr, size_t size) {
+ 
+ #if !HAVE_STATX
+ #  ifndef __NR_statx
+-#    if defined __i386__
++#    if defined __aarch64__ || defined __arm__
++#      define __NR_statx 397
++#    elif defined __alpha__
++#      define __NR_statx 522
++#    elif defined __i386__ || defined __powerpc64__
+ #      define __NR_statx 383
++#    elif defined __sparc__
++#      define __NR_statx 360
+ #    elif defined __x86_64__
+ #      define __NR_statx 332
+ #    else
diff --git a/patches/systemd-238/series b/patches/systemd-238/series
index a82258c..c944349 100644
--- a/patches/systemd-238/series
+++ b/patches/systemd-238/series
@@ -3,4 +3,5 @@
 0001-core-don-t-include-libmount.h-in-a-header-file-8580.patch
 0002-core-do-not-free-heap-allocated-strings-8391.patch
 0003-units-Fix-SuccessAction-that-belongs-to-Unit-section.patch
-# a7dcd36b3678800e0e34e75e553a1837  - git-ptx-patches magic
+0004-add-__nr_statx-defines-for-extra-architectures.patch
+# 6b5baff5bd25fe8378e83fcbe60f9d0c  - git-ptx-patches magic
-- 
1.9.1


_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to