[Libguestfs] [libnbd PATCH 2/3] ci: Fix build script

Martin Kletzander mkletzan at redhat.com
Wed Sep 22 12:09:17 UTC 2021


The test for cross builds was written wrong and we should explicitly disable
building of OCaml bindings for cross-builds.

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 ci/build.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ci/build.sh b/ci/build.sh
index fc43c3008952..3983e7492cf8 100755
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -76,12 +76,13 @@ main() {
 --with-libxml2 \
 "
 
-    if "$CROSS"
+    if test -n "$CROSS"
     then
         CONFIG_ARGS="$CONFIG_ARGS
             --disable-fuse
             --disable-ocaml
-            --disable-python"
+            --disable-python
+            --disable-golang"
     else
         CONFIG_ARGS="$CONFIG_ARGS
             --enable-fuse
-- 
2.33.0




More information about the Libguestfs mailing list