summaryrefslogtreecommitdiffstats
path: root/package/trinity/0001-compat-handle-removed-autofs-macros.patch
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2017-12-03 21:34:38 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-03 23:09:10 +0100
commit092a4955cea8a7407608265583639ac12d4cd6fd (patch)
treeeadf9f212a9f580587c4d1e0a289d95a946b53b6 /package/trinity/0001-compat-handle-removed-autofs-macros.patch
parent2c4149df17166e023bbe8ef06a6fa6d594f8aea8 (diff)
downloadbuildroot-092a4955cea8a7407608265583639ac12d4cd6fd.tar.gz
buildroot-092a4955cea8a7407608265583639ac12d4cd6fd.zip
trinity: bump to version 1.8
Drop upstream patches. Add an upstream patch fixing build with kernel headers v4.14 or newer. Enable build for musl; Marcin Nowakowski fixed all incompatibilities in this version. Fixes: http://autobuild.buildroot.net/results/1a8/1a891bfa1f29060003bb7f4fce100aa5a1034673/ http://autobuild.buildroot.net/results/f22/f22cb03a4ec1eafb89ca5e81a2864f928117b54d/ Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/trinity/0001-compat-handle-removed-autofs-macros.patch')
-rw-r--r--package/trinity/0001-compat-handle-removed-autofs-macros.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/package/trinity/0001-compat-handle-removed-autofs-macros.patch b/package/trinity/0001-compat-handle-removed-autofs-macros.patch
new file mode 100644
index 0000000000..e3c6ee3b54
--- /dev/null
+++ b/package/trinity/0001-compat-handle-removed-autofs-macros.patch
@@ -0,0 +1,61 @@
+From e4f31d5a1ce65974c2a6b2e6e1a2b16fffc51518 Mon Sep 17 00:00:00 2001
+From: Jiri Slaby <jslaby@suse.cz>
+Date: Tue, 28 Nov 2017 10:15:22 +0100
+Subject: [PATCH] compat: handle removed autofs macros
+
+In file included from ioctls/autofs.c:4:0:
+ioctls/autofs.c:241:8: error: 'AUTOFS_IOC_EXPIRE_INDIRECT' undeclared here (not in a function); did you mean 'AUTOFS_IOC_EXPIRE_CMD'?
+ IOCTL(AUTOFS_IOC_EXPIRE_INDIRECT),
+ ^
+include/ioctls.h:53:15: note: in definition of macro 'IOCTL'
+ { .request = _request, .name = #_request, }
+ ^~~~~~~~
+ioctls/autofs.c:242:8: error: 'AUTOFS_IOC_EXPIRE_DIRECT' undeclared here (not in a function); did you mean 'AUTOFS_IOC_EXPIRE_INDIRECT'?
+ IOCTL(AUTOFS_IOC_EXPIRE_DIRECT),
+ ^
+include/ioctls.h:53:15: note: in definition of macro 'IOCTL'
+ { .request = _request, .name = #_request, }
+ ^~~~~~~~
+
+Define them as AUTOFS_IOC_EXPIRE_MULTI as they used to be.
+
+Signed-off-by: Jiri Slaby <jslaby@suse.cz>
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+Patch status: upstream commit e4f31d5a1ce
+
+ include/compat.h | 8 ++++++++
+ ioctls/autofs.c | 1 +
+ 2 files changed, 9 insertions(+)
+
+diff --git a/include/compat.h b/include/compat.h
+index 10065ceca5f6..fc9a1b95ac4c 100644
+--- a/include/compat.h
++++ b/include/compat.h
+@@ -1209,3 +1209,11 @@ struct kvm_get_htab_fd {
+ #ifndef SO_IP_SET
+ #define SO_IP_SET 83
+ #endif
++
++/* linux/auto_fs4.h */
++#ifndef AUTOFS_IOC_EXPIRE_INDIRECT
++#define AUTOFS_IOC_EXPIRE_INDIRECT AUTOFS_IOC_EXPIRE_MULTI
++#endif
++#ifndef AUTOFS_IOC_EXPIRE_DIRECT
++#define AUTOFS_IOC_EXPIRE_DIRECT AUTOFS_IOC_EXPIRE_MULTI
++#endif
+diff --git a/ioctls/autofs.c b/ioctls/autofs.c
+index 04a3eb811326..a39ccccc056b 100644
+--- a/ioctls/autofs.c
++++ b/ioctls/autofs.c
+@@ -8,6 +8,7 @@
+ #include "shm.h"
+ #include "syscall.h"
+ #include "utils.h"
++#include "compat.h"
+
+ /* include/linux/auto_dev-ioctl.h */
+ /*
+--
+2.15.0
+
OpenPOWER on IntegriCloud