summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-11-01 09:14:09 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-11-01 21:41:16 +0100
commit01db23f198676076468d59c7cbfe1b83bbfc6f93 (patch)
tree5372643c4af8890971aef8d11257edc2088fad89
parente0781df951e4b274598b5a217df221a6e679d3b2 (diff)
downloadptxdist-01db23f198676076468d59c7cbfe1b83bbfc6f93.tar.gz
ptxdist-01db23f198676076468d59c7cbfe1b83bbfc6f93.tar.xz
file: add upstream patch to fix building on PPC
Without this, building fails with: seccomp.c: In function 'enable_sandbox_full': seccomp.c:194:19: error: invalid application of 'sizeof' to incomplete type 'struct termios' seccomp.c:194:2: note: in expansion of macro 'ALLOW_IOCTL_RULE' make[3]: *** [Makefile:554: seccomp.o] Error 1 Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/file-5.39/0001-PR-168-gyakovlev-Include-termios.h.patch29
-rw-r--r--patches/file-5.39/series4
2 files changed, 33 insertions, 0 deletions
diff --git a/patches/file-5.39/0001-PR-168-gyakovlev-Include-termios.h.patch b/patches/file-5.39/0001-PR-168-gyakovlev-Include-termios.h.patch
new file mode 100644
index 000000000..3f86d9207
--- /dev/null
+++ b/patches/file-5.39/0001-PR-168-gyakovlev-Include-termios.h.patch
@@ -0,0 +1,29 @@
+From: Christos Zoulas <christos@zoulas.com>
+Date: Thu, 18 Jun 2020 16:25:12 +0000
+Subject: [PATCH] PR/168: gyakovlev: Include <termios.h>
+
+---
+ src/seccomp.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/seccomp.c b/src/seccomp.c
+index e667adfe4e3c..68c56485d371 100644
+--- a/src/seccomp.c
++++ b/src/seccomp.c
+@@ -27,7 +27,7 @@
+ #include "file.h"
+
+ #ifndef lint
+-FILE_RCSID("@(#)$File: seccomp.c,v 1.15 2020/05/30 23:56:26 christos Exp $")
++FILE_RCSID("@(#)$File: seccomp.c,v 1.16 2020/06/18 16:25:12 christos Exp $")
+ #endif /* lint */
+
+ #if HAVE_LIBSECCOMP
+@@ -35,6 +35,7 @@ FILE_RCSID("@(#)$File: seccomp.c,v 1.15 2020/05/30 23:56:26 christos Exp $")
+ #include <sys/prctl.h> /* prctl */
+ #include <sys/ioctl.h>
+ #include <sys/socket.h>
++#include <termios.h>
+ #include <fcntl.h>
+ #include <stdlib.h>
+ #include <errno.h>
diff --git a/patches/file-5.39/series b/patches/file-5.39/series
new file mode 100644
index 000000000..b5b51642a
--- /dev/null
+++ b/patches/file-5.39/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-PR-168-gyakovlev-Include-termios.h.patch
+# 9df76025b13c4838db9194cda9167ce4 - git-ptx-patches magic