From f83f8c70bd518e2b7a0011d82a2fb7074fb3a19a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 9 Mar 2018 14:15:39 +0100 Subject: [PATCH 1/3] meson: use triple-quote delimition in one more place --- src/journal-remote/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/journal-remote/meson.build b/src/journal-remote/meson.build index 5fdc4cccd7..cbe2be19c7 100644 --- a/src/journal-remote/meson.build +++ b/src/journal-remote/meson.build @@ -61,6 +61,6 @@ if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1 meson.add_install_script('sh', '-c', mkdir_p.format('/var/log/journal/remote')) meson.add_install_script('sh', '-c', - 'chown 0:0 $DESTDIR/var/log/journal/remote && - chmod 755 $DESTDIR/var/log/journal/remote || :') + '''chown 0:0 $DESTDIR/var/log/journal/remote && + chmod 755 $DESTDIR/var/log/journal/remote || :''') endif From af4d7860c4e757f34a02ca73a0b14c73c18f8b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 9 Mar 2018 14:21:08 +0100 Subject: [PATCH 2/3] meson: avoid warning about comparison of bool and string meson.build:2907: WARNING: Trying to compare values of different types (bool, str) using ==. The result of this is undefined and will become a hard error in a future Meson release. --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 30b7f1bafa..e152226ead 100644 --- a/meson.build +++ b/meson.build @@ -2903,8 +2903,9 @@ foreach tuple : [ ['debug mmap cache'], ] - cond = tuple.get(1, '') - if cond == '' + if tuple.length() >= 2 + cond = tuple[1] + else ident1 = 'HAVE_' + tuple[0].underscorify().to_upper() ident2 = 'ENABLE_' + tuple[0].underscorify().to_upper() cond = conf.get(ident1, 0) == 1 or conf.get(ident2, 0) == 1 From c0b4b0f8f548c755dee81be29ef90971f8fb570e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 9 Mar 2018 14:58:47 +0100 Subject: [PATCH 3/3] meson: libmount is required for oss-fuzz builds now too See https://github.com/google/oss-fuzz/issues/1191. --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index e152226ead..2badc3bd78 100644 --- a/meson.build +++ b/meson.build @@ -843,8 +843,7 @@ if not libcap.found() endif libmount = dependency('mount', - version : '>= 2.30', - required : not fuzzer_build) + version : fuzzer_build ? '>= 0' : '>= 2.30') want_seccomp = get_option('seccomp') if want_seccomp != 'false' and not fuzzer_build