From: Franck Bui Date: Tue, 30 Apr 2019 14:10:13 +0000 (+0200) Subject: meson: make source files including nspawn-settings.h depend on libseccomp X-Git-Tag: v243-rc1~494 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f3f596477ba68d4ece645536586756caea4ae97;p=thirdparty%2Fsystemd.git meson: make source files including nspawn-settings.h depend on libseccomp Since nspawn-settings.h includes seccomp.h, any file that includes nspawn-settings.h should depend on libseccomp so the correct header path where seccomp.h lives is added to the header search paths. It's especially important for distros such as openSUSE where seccomp.h is not shipped in /usr/include but /usr/include/libseccomp. This patch is similar to 8238423095ca54c48d9408a5da13e0325b31e6f6. --- diff --git a/src/fuzz/meson.build b/src/fuzz/meson.build index 0d1ad2b1e1a..a6c6db372b1 100644 --- a/src/fuzz/meson.build +++ b/src/fuzz/meson.build @@ -128,12 +128,12 @@ fuzzers += [ [['src/fuzz/fuzz-nspawn-settings.c'], [libshared, libnspawn_core], - []], + [libseccomp]], [['src/fuzz/fuzz-nspawn-oci.c'], [libshared, libnspawn_core], - []], + [libseccomp]], [['src/fuzz/fuzz-calendarspec.c'], [libshared], diff --git a/src/nspawn/meson.build b/src/nspawn/meson.build index 31217c7b463..c049ac67541 100644 --- a/src/nspawn/meson.build +++ b/src/nspawn/meson.build @@ -48,7 +48,7 @@ tests += [ [['src/nspawn/test-nspawn-tables.c'], [libnspawn_core, libshared], - []], + [libseccomp]], [['src/nspawn/test-patch-uid.c'], [libnspawn_core,