Bug 2162845

Summary: FTBFS: Checks for OCaml despite --disable-ocaml
Product: [Community] Virtualization Tools Reporter: jean-christophe manciot <actionmystique>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mhicks, ptoscano
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-21 11:12:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jean-christophe manciot 2023-01-21 11:04:55 UTC
Description of problem:
Configuring with "--disable-ocaml" does not prevent it from checking for OCAML.

Version-Release number of selected component (if applicable):
v1.49.9

How reproducible:
git checkout v1.49.9
autoreconf -i
./configure     --build=x86_64-pc-linux-gnu \
                --enable-introspection=yes \
                --enable-install-daemon \
                --disable-erlang \
                --disable-golang \
                --disable-ocaml \
                --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
                CFLAGS=-fPIC

Actual results:
...
--- Checking for OCaml ---
checking for ocamlc... ocamlc
OCaml version is 4.13.1
OCaml library path is /usr/lib/ocaml
checking for ocamlopt... ocamlopt
checking for ocamlc.opt... ocamlc.opt
checking for ocamlopt.opt... ocamlopt.opt
checking for ocamldep... ocamldep
checking for ocamlmktop... ocamlmktop
checking for ocamlmklib... ocamlmklib
checking for ocamldoc... ocamldoc
checking for ocamlbuild... no
checking for ocamlfind... ocamlfind
checking if OCaml version >= 4.04... yes (4, 13)
checking if OCaml ‘-runtime-variant _pic’ works... yes
checking for OCaml findlib package hivex... found
checking for Hivex.OPEN_UNSAFE... yes
checking which OCaml runtime we should link the daemon with... asmrun_pic
checking for OCaml findlib package augeas... not found
configure: error: the OCaml module 'augeas' is required

Expected results:
It should not check for OCAML.

Additional info:

Comment 1 Richard W.M. Jones 2023-01-21 11:12:02 UTC
OCaml is required to build, this is not a bug.

Also new in this (development) version, I unbundled the ocaml-augeas
module, so you'll have to install that:

https://github.com/libguestfs/libguestfs/commit/fbf7fe87933ac24dd78362a16117c42e40da4c0f

Comment 2 jean-christophe manciot 2023-01-23 09:59:36 UTC
Except that there is no official Ocaml augeas package in debian/Ubuntu. It is way too old.

Comment 3 Richard W.M. Jones 2023-01-23 10:24:01 UTC
I have discussed this with the Debian maintainers.

Comment 4 jean-christophe manciot 2023-01-23 16:49:04 UTC
And ?