[vte/vte-0-64] build: Work around a meson bug with dist scripts in subprojects



commit dad085db46f00f8679bb8abd2b3a18752f6b86f8
Author: Christian Persch <chpe src gnome org>
Date:   Thu Mar 25 19:26:57 2021 +0100

    build: Work around a meson bug with dist scripts in subprojects
    
    https://github.com/mesonbuild/meson/issues/8440
    Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/345
    (cherry picked from commit 1e674130bf231208e8f33006b78913095dd7e5a8)

 meson.build | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 8da82075..ae87edeb 100644
--- a/meson.build
+++ b/meson.build
@@ -466,9 +466,13 @@ endif
 
 # Dist
 
-meson.add_dist_script(
-  find_program('meson_changelog.sh'),
-)
+# Meson bug https://github.com/mesonbuild/meson/issues/8440 breaks using vte
+# as subproject; see vte#345.
+if meson.version().version_compare('>= 0.58.0') or not meson.is_subproject()
+  meson.add_dist_script(
+    find_program('meson_changelog.sh'),
+  )
+endif
 
 # Simple compat Makefile
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]