meson: make source files including nspawn-settings.h depend on libseccomp
authorFranck Bui <fbui@suse.com>
Tue, 30 Apr 2019 14:10:13 +0000 (16:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 30 Apr 2019 17:31:22 +0000 (19:31 +0200)
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.

src/fuzz/meson.build
src/nspawn/meson.build

index 0d1ad2b..a6c6db3 100644 (file)
@@ -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],
index 31217c7..c049ac6 100644 (file)
@@ -48,7 +48,7 @@ tests += [
         [['src/nspawn/test-nspawn-tables.c'],
          [libnspawn_core,
           libshared],
-         []],
+         [libseccomp]],
 
         [['src/nspawn/test-patch-uid.c'],
          [libnspawn_core,