1*4882a593SmuzhiyunFrom 54ea2cabf85ad1bd5695cdbd1935115c9495e80c Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3*4882a593SmuzhiyunDate: Sun, 1 Dec 2019 17:06:59 +0100
4*4882a593SmuzhiyunSubject: [PATCH] meson.build: Just warn if we build without libseccomp
5*4882a593SmuzhiyunMIME-Version: 1.0
6*4882a593SmuzhiyunContent-Type: text/plain; charset=UTF-8
7*4882a593SmuzhiyunContent-Transfer-Encoding: 8bit
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunlibseccomp lives in meta-security currently and we cannot make it a mandatory
10*4882a593Smuzhiyundependency. Once somebody moves libseccomp to meta-oe and adjusts all the
11*4882a593Smuzhiyuntarget specific knobs this patch can go. For discussion see [1].
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun[1] http://lists.openembedded.org/pipermail/openembedded-devel/2019-November/203234.html
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunUpstream-Status: Inappropriate [embedded specific]
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunSigned-off-by: Andreas Müller <schnitzeltony@gmail.com>
18*4882a593Smuzhiyun---
19*4882a593Smuzhiyun meson.build | 2 +-
20*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 1 deletion(-)
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundiff --git a/meson.build b/meson.build
23*4882a593Smuzhiyunindex 71a9df4..1eaa1a0 100644
24*4882a593Smuzhiyun--- a/meson.build
25*4882a593Smuzhiyun+++ b/meson.build
26*4882a593Smuzhiyun@@ 299,7 +299,7 @@ cpu_supports_seccomp = not unsupported_cpus.contains(host_cpu)
27*4882a593Smuzhiyun seccomp_required = system_supports_seccomp and cpu_supports_seccomp and get_option('seccomp') and get_option('extract')
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun if not libseccomp.found() and seccomp_required
30*4882a593Smuzhiyun-  error('Libseccomp is mandatory for sandboxed metadata extraction')
31*4882a593Smuzhiyun+  warning('Building without Libseccomp might cause security issues!')
32*4882a593Smuzhiyun endif
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun ####################################################################
35*4882a593Smuzhiyun--
36*4882a593Smuzhiyun2.21.0
37*4882a593Smuzhiyun
38