From: Daniel P. Berrangé Date: Mon, 25 Oct 2021 17:48:59 +0000 (+0100) Subject: docs: fix docs output path with meson 0.60.0 X-Git-Tag: v7.9.0-rc1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=460eda9b055d6ba646004dd39a5d664a8ab47587;p=thirdparty%2Flibvirt.git docs: fix docs output path with meson 0.60.0 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é --- diff --git a/docs/meson.build b/docs/meson.build index cbc138fa1f..fb6e0029d0 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -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',