summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2020-01-08 10:44:10 +0100
committerEvgeny Vereshchagin <evvers@ya.ru>2020-01-08 13:56:30 +0300
commit514793658c499821383bdc8bbf1d33048c18dd40 (patch)
treea7cc0d3d21bda89634ddde96e886c3c8d2bfa62c
parent06ae8800d0bd9f8b01df7443daec37f90708bd84 (diff)
downloadsystemd-514793658c499821383bdc8bbf1d33048c18dd40.tar.gz
test: pin meson to 0.52.1 for fuzzit/fuzzbuzz
Latest meson doesn't work with older python 3.5, which is present on Ubuntu 16.04. Let's pin in to the latest working version (0.52.1) until we properly bump all necessary Ubuntu images to 18.04. See: https://github.com/mesonbuild/meson/issues/6427
-rw-r--r--fuzzbuzz.yaml6
-rwxr-xr-xtools/oss-fuzz.sh4
-rwxr-xr-xtravis-ci/managers/fuzzbuzz.sh4
-rwxr-xr-xtravis-ci/managers/fuzzit.sh4
4 files changed, 15 insertions, 3 deletions
diff --git a/fuzzbuzz.yaml b/fuzzbuzz.yaml
index f64af60e01..18c70e3555 100644
--- a/fuzzbuzz.yaml
+++ b/fuzzbuzz.yaml
@@ -5,7 +5,11 @@ setup:
- sudo apt-get update -y
- sudo apt-get build-dep -y systemd
- sudo apt-get install -y python3-pip
-- pip3 install meson ninja
+# FIXME: temporarily pin the meson version as 0.53 doesn't work with older
+# python 3.5
+# # See: https://github.com/mesonbuild/meson/issues/6427
+#
+- pip3 install meson==0.52.1 ninja
- export PATH="$HOME/.local/bin/:$PATH"
- CC=$FUZZ_CC CXX=$FUZZ_CXX meson -Dfuzzbuzz=true -Dfuzzbuzz-engine-dir=$(dirname "$FUZZ_ENGINE") -Dfuzzbuzz-engine=$(cut -d. -f1 <(basename "$FUZZ_ENGINE")) -Db_lundef=false ./build
- ninja -v -C ./build fuzzers
diff --git a/tools/oss-fuzz.sh b/tools/oss-fuzz.sh
index 5e48a7e0c6..6884048d83 100755
--- a/tools/oss-fuzz.sh
+++ b/tools/oss-fuzz.sh
@@ -32,6 +32,10 @@ if [ -z "$FUZZING_ENGINE" ]; then
fuzzflag="llvm-fuzz=true"
fi
+# FIXME: temporarily pin the meson version as 0.53 doesn't work with older python 3.5
+# See: https://github.com/mesonbuild/meson/issues/6427
+pip3 install meson==0.52.1
+
meson $build -D$fuzzflag -Db_lundef=false
ninja -v -C $build fuzzers
diff --git a/travis-ci/managers/fuzzbuzz.sh b/travis-ci/managers/fuzzbuzz.sh
index 3fe7e1a803..1541b46652 100755
--- a/travis-ci/managers/fuzzbuzz.sh
+++ b/travis-ci/managers/fuzzbuzz.sh
@@ -10,7 +10,9 @@ sudo bash -c "echo 'deb-src http://archive.ubuntu.com/ubuntu/ xenial main restri
sudo apt-get update -y
sudo apt-get build-dep systemd -y
sudo apt-get install -y ninja-build python3-pip python3-setuptools quota
-pip3 install meson
+# FIXME: temporarily pin the meson version as 0.53 doesn't work with older python 3.5
+# See: https://github.com/mesonbuild/meson/issues/6427
+pip3 install meson==0.52.1
cd $REPO_ROOT
export PATH="$HOME/.local/bin/:$PATH"
diff --git a/travis-ci/managers/fuzzit.sh b/travis-ci/managers/fuzzit.sh
index 45fd784a39..376761e20c 100755
--- a/travis-ci/managers/fuzzit.sh
+++ b/travis-ci/managers/fuzzit.sh
@@ -14,7 +14,9 @@ sudo bash -c "echo 'deb-src http://archive.ubuntu.com/ubuntu/ xenial main restri
sudo apt-get update -y
sudo apt-get build-dep systemd -y
sudo apt-get install -y ninja-build python3-pip python3-setuptools
-pip3 install meson
+# FIXME: temporarily pin the meson version as 0.53 doesn't work with older python 3.5
+# See: https://github.com/mesonbuild/meson/issues/6427
+pip3 install meson==0.52.1
cd $REPO_ROOT
export PATH="$HOME/.local/bin/:$PATH"