]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: fix docs output path with meson 0.60.0
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 25 Oct 2021 17:48:59 +0000 (18:48 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 25 Oct 2021 18:36:15 +0000 (19:36 +0100)
The meson 0.60.0 release introduced a bug with the '/' operator when
using an empty path component. '/foo' / ''  will now result in '/foo'
not '/foo/'

  https://github.com/mesonbuild/meson/issues/9450

This breaks libvirt because xsltproc requires the trailing '/' on the
output directory path. Fortunately the explicit 'join_paths' function
is not affected by the regression

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
docs/meson.build

index cbc138fa1f4e3a14d6e8ae6e144cfe2d2a3a01bb..fb6e0029d04ea6ce384b2fdbf0d9aa1b328a6fc5 100644 (file)
@@ -1,7 +1,9 @@
 docs_html_dir = docdir / 'html'
 
 # xsltproc requires that the -o path ends with '/'
-docs_builddir = meson.current_build_dir() / ''
+# Not using '/' operator due to bug in meson 0.60.0
+# https://github.com/mesonbuild/meson/issues/9450
+docs_builddir = join_paths(meson.current_build_dir(), '')
 
 docs_assets = [
   'android-chrome-192x192.png',