]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
oss-fuzz: move apt-gets and pips to the systemd repository
authorEvgeny Vereshchagin <evvers@ya.ru>
Wed, 17 Nov 2021 08:47:29 +0000 (08:47 +0000)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 19 Nov 2021 08:52:28 +0000 (08:52 +0000)
to be able to control our dependencies right here without
sending PRs like https://github.com/google/oss-fuzz/pull/5199 and
https://github.com/google/oss-fuzz/pull/5601.

It should also allow us to pin meson to let Dependabot keep track of
it and jump from one version to another without breaking anything

tools/oss-fuzz.sh

index d9cfcf8f3b59ceae74456aca70b1b30f02bea8e0..5e011c78b24744ce7854f44c88324321fab88a5e 100755 (executable)
@@ -31,6 +31,13 @@ if [ -z "$FUZZING_ENGINE" ]; then
     fuzzflag="llvm-fuzz=true"
 else
     fuzzflag="oss-fuzz=true"
+
+    apt-get update
+    apt-get install -y gperf m4 gettext python3-pip \
+        libcap-dev libmount-dev libkmod-dev \
+        pkg-config wget
+    pip3 install meson ninja jinja2
+
     if [[ "$SANITIZER" == undefined ]]; then
         UBSAN_FLAGS="-fsanitize=pointer-overflow -fno-sanitize-recover=pointer-overflow"
         CFLAGS="$CFLAGS $UBSAN_FLAGS"