]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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 0d1ad2b1e1a4db1624f952a9d228a8650a348761..a6c6db372b170d75fd9d5e864d23f0dadb11b94b 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 31217c7b4637daaf08b6f77feb86aec69acb87ac..c049ac6754113eee3fe2e12ec6ad07329f0b04bd 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,