@samitouri / QOSamiQemu / commits / 13e06c64d4

meson: drop sphinx-build < 1.7 compatiblity check

Since commit fe791b7fcc ("Python: bump minimum sphinx version to 3.4.3"), we no longer support building with sphinx-build < 3.4.3 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>

Marc-André Lureau committed May 11, 2026 at 14:42 UTC 13e06c64d41ecc3a22d2b3174814aaca19224ff2
1 file changed +1 -13
docs/meson.build
+1 -13
@@ -4,24 +4,12 @@ sphinx_build = find_program(fs.parent(python.full_path()) / 'sphinx-build',
4 # Check if tools are available to build documentation.
5 build_docs = false
6 if sphinx_build.found()
7 - SPHINX_ARGS = ['env', 'CONFDIR=' + qemu_confdir, sphinx_build, '-q']
7 + SPHINX_ARGS = ['env', 'CONFDIR=' + qemu_confdir, sphinx_build, '-q', '-j', 'auto']
8 # If we're making warnings fatal, apply this to Sphinx runs as well
9 if get_option('werror')
10 SPHINX_ARGS += [ '-W', '-Dkerneldoc_werror=1' ]
11 endif
12
13 - sphinx_version = run_command(SPHINX_ARGS + ['--version'],
14 - check: true).stdout().split()[1]
15 - if sphinx_version.version_compare('>=1.7.0')
16 - SPHINX_ARGS += ['-j', 'auto']
17 - else
18 - nproc = find_program('nproc')
19 - if nproc.found()
20 - jobs = run_command(nproc, check: true).stdout()
21 - SPHINX_ARGS += ['-j', jobs]
22 - endif
23 - endif
24 -
13 # This is a bit awkward but works: create a trivial document and
14 # try to run it with our configuration file (which enforces a
15 # version requirement). This will fail if sphinx-build is too old.