)
docs_timestamp = run_command(
- python3_prog, meson_timestamp_prog.path(), env: runutf8
+ python3_prog, meson_timestamp_prog.path(), env: runutf8, check: true,
).stdout().strip()
site_xsl = files('site.xsl')
#
# Use this knowledge to detect the version that we know doesn't work
# for building libvirt and reject it
-rst2html5_version = run_command(rst2html5_prog, '--version')
+rst2html5_version = run_command(rst2html5_prog, '--version', check: true)
rst2html5_version = rst2html5_version.stdout().split(' ')
if rst2html5_version[1] != '(Docutils'
error('Please uninstall the rst2html5 package and install the docutils package')
# figure out if we are building from git
-git = run_command('test', '-d', '.git').returncode() == 0
+git = run_command('test', '-d', '.git', check: false).returncode() == 0
if git and not get_option('no_git')
- run_command('git', 'submodule', 'update', '--init')
+ run_command('git', 'submodule', 'update', '--init', check: true)
endif
if get_option('system')
prefix = '/usr'
libdir = prefix / 'lib64'
- if run_command('test', '-d', libdir).returncode() != 0
+ if run_command('test', '-d', libdir, check: false).returncode() != 0
libdir = prefix / 'lib'
endif
localstatedir = '/var'
alloc_max = run_command(
'python3', '-c',
'print(min(2**(@0@ * 8 - 1) - 1, 2**(@1@ * 8) - 1))'.format(ptrdiff_max, size_max),
+ check: true,
)
# sanitizer instrumentation may enlarge stack frames
endforeach
if xgettext_prog.found() and msgfmt_prog.found() and msgmerge_prog.found()
- rc = run_command(msgfmt_prog, '--version')
+ rc = run_command(msgfmt_prog, '--version', check: false)
if rc.returncode() == 0 and rc.stdout().contains('GNU gettext')
have_gnu_gettext_tools = true
endif
if selinux_dep.found()
selinux_mount = get_option('selinux_mount')
if selinux_mount == ''
- if run_command('test', '-d', '/sys/fs/selinux').returncode() == 0
+ if run_command('test', '-d', '/sys/fs/selinux', check: false).returncode() == 0
selinux_mount = '/sys/fs/selinux'
else
selinux_mount = '/selinux'
default_qemu_user = 'root'
default_qemu_group = 'wheel'
else
- os_release = run_command('grep', '^ID=', '/etc/os-release').stdout()
+ os_release = run_command('grep', '^ID=', '/etc/os-release', check: true).stdout()
if os_release.contains('arch')
default_qemu_user = 'nobody'
default_qemu_group = 'nobody'
# If the expected user and group don't exist, or we haven't hit any
# of the cases above bacuse we're running on an unknown OS, the only
# sensible fallback is root:root
- if (run_command('getent', 'passwd', default_qemu_user).returncode() != 0 and
- run_command('getent', 'group', default_qemu_group).returncode() != 0)
+ if (run_command('getent', 'passwd', default_qemu_user, check: false).returncode() != 0 and
+ run_command('getent', 'group', default_qemu_group, check: false).returncode() != 0)
default_qemu_user = 'root'
default_qemu_group = 'root'
endif
)
endforeach
- authors = run_command(python3_prog, meson_gen_authors_prog.path(), env: runutf8)
+ authors = run_command(python3_prog, meson_gen_authors_prog.path(),
+ env: runutf8, check: true)
authors_file = 'AUTHORS.rst.in'
authors_conf = configuration_data()
output: '@BASENAME@',
configuration: run_conf,
)
-run_command('chmod', 'a+x', meson.current_build_dir() / 'run')
+run_command('chmod', 'a+x', meson.current_build_dir() / 'run', check: true)
# generate developer tooling files