Bug 2162845 - FTBFS: Checks for OCaml despite --disable-ocaml
Summary: FTBFS: Checks for OCaml despite --disable-ocaml
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-21 11:04 UTC by jean-christophe manciot
Modified: 2023-01-23 16:49 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-01-21 11:12:02 UTC
Embargoed:


Attachments (Terms of Use)

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 ?


Note You need to log in before you can comment on or make changes to this bug.