1 |
commit: a84897e9ae37ed3c3c3a74e7c0346e1f68049faf |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 15 19:21:06 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 15 19:21:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a84897e9 |
7 |
|
8 |
app-misc/tracker-miners: fix build for architectures without seccomp |
9 |
|
10 |
Closes: https://bugs.gentoo.org/645828 |
11 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
12 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
13 |
|
14 |
app-misc/tracker-miners/files/2.1.5-seccomp.patch | 42 ++++++++++++++++++++++ |
15 |
.../tracker-miners/tracker-miners-2.1.5.ebuild | 1 + |
16 |
2 files changed, 43 insertions(+) |
17 |
|
18 |
diff --git a/app-misc/tracker-miners/files/2.1.5-seccomp.patch b/app-misc/tracker-miners/files/2.1.5-seccomp.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..f32d698a487 |
21 |
--- /dev/null |
22 |
+++ b/app-misc/tracker-miners/files/2.1.5-seccomp.patch |
23 |
@@ -0,0 +1,42 @@ |
24 |
+From b2d4b05a0c9e34b88aaf55b9f52497b07af8e862 Mon Sep 17 00:00:00 2001 |
25 |
+From: Mart Raudsepp <leio@g.o> |
26 |
+Date: Fri, 15 Feb 2019 21:11:29 +0200 |
27 |
+Subject: [PATCH] build: Only require seccomp when the CPU architecture |
28 |
+ supports it |
29 |
+ |
30 |
+--- |
31 |
+ meson.build | 18 +++++++++++++++++- |
32 |
+ 1 file changed, 17 insertions(+), 1 deletion(-) |
33 |
+ |
34 |
+diff --git a/meson.build b/meson.build |
35 |
+index ef48e77a6..65ad19cad 100644 |
36 |
+--- a/meson.build |
37 |
++++ b/meson.build |
38 |
+@@ -261,7 +261,23 @@ endif |
39 |
+ # Check for libseccomp |
40 |
+ ################################################################## |
41 |
+ |
42 |
+-if not libseccomp.found() and host_machine.system() == 'linux' |
43 |
++host_system = host_machine.system() |
44 |
++host_cpu = host_machine.cpu() |
45 |
++unsupported_cpus = [ |
46 |
++ 'alpha', |
47 |
++ 'ia64', |
48 |
++ 'm68k', |
49 |
++ 'parisc', |
50 |
++ 'parisc64', |
51 |
++ 'sh4', |
52 |
++ 'sparc', |
53 |
++ 'sparc64', |
54 |
++] |
55 |
++system_supports_seccomp = host_system == 'linux' |
56 |
++cpu_supports_seccomp = not unsupported_cpus.contains(host_cpu) |
57 |
++seccomp_required = system_supports_seccomp and cpu_supports_seccomp |
58 |
++ |
59 |
++if not libseccomp.found() and seccomp_required |
60 |
+ error('Libseccomp is mandatory for sandboxed metadata extraction') |
61 |
+ endif |
62 |
+ |
63 |
+-- |
64 |
+2.17.0 |
65 |
+ |
66 |
|
67 |
diff --git a/app-misc/tracker-miners/tracker-miners-2.1.5.ebuild b/app-misc/tracker-miners/tracker-miners-2.1.5.ebuild |
68 |
index 5cc68f9af1b..92999f830e5 100644 |
69 |
--- a/app-misc/tracker-miners/tracker-miners-2.1.5.ebuild |
70 |
+++ b/app-misc/tracker-miners/tracker-miners-2.1.5.ebuild |
71 |
@@ -69,6 +69,7 @@ DEPEND="${RDEPEND} |
72 |
PATCHES=( |
73 |
"${FILESDIR}"/${PV}-meson-fixes.patch # https://gitlab.gnome.org/GNOME/tracker-miners/merge_requests/49 |
74 |
"${FILESDIR}"/${PV}-test-fix.patch # https://gitlab.gnome.org/GNOME/tracker-miners/merge_requests/50 |
75 |
+ "${FILESDIR}"/${PV}-seccomp.patch # https://gitlab.gnome.org/GNOME/tracker-miners/merge_requests/51 |
76 |
) |
77 |
|
78 |
pkg_setup() { |