• Bug#1098583: ocaml-theora: FTBFS: Error: The value "restart" has type "

    From Santiago Vila@21:1/5 to All on Sat Feb 22 00:40:13 2025
    Package: src:ocaml-theora
    Version: 0.4.1-1
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean --with ocaml --buildsystem ocaml_dune
    dh_auto_clean -O--buildsystem=ocaml_dune
    dune clean
    dh_autoreconf_clean -O--buildsystem=ocaml_dune
    dh_ocamlclean -O--buildsystem=ocaml_dune
    dh_clean -O--buildsystem=ocaml_dune
    debian/rules binary
    dh binary --with ocaml --buildsystem ocaml_dune
    dh_update_autotools_config -O--buildsystem=ocaml_dune
    dh_autoreconf -O--buildsystem=ocaml_dune
    dh_ocamlinit -O--buildsystem=ocaml_dune
    dh_auto_configure -O--buildsystem=ocaml_dune
    dh_auto_build -O--buildsystem=ocaml_dune
    dune build -j 2 -p theora
    (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -I src/.theora_decoder.objs/byte -I src/.theora_decoder.objs/native -I /usr/lib/x86_64-linux-gnu/ocaml/5.3.0/ogg -I /usr/lib/x86_64-linux-gnu/ocaml/5.3.0/ogg/decoder -I /usr/lib/x86_64-linux-gnu/ocaml/
    5.3.0/threads -I /usr/lib/x86_64-linux-gnu/ocaml/5.3.0/unix -I src/.theora.objs/byte -I src/.theora.objs/native -intf-suffix .ml -no-alias-deps -o src/.theora_decoder.objs/native/theora_decoder.cmx -c -impl src/theora_decoder.ml)
    File "src/theora_decoder.ml", line 93, characters 6-13:
    93 | restart;
    ^^^^^^^
    Error: The value "restart" has type "Ogg.Stream.stream -> unit"
    but an expression was expected of type
    "fill:(unit -> unit) -> Ogg.Stream.stream -> unit"
    A label "fill" was expected
    (cd _build/default && /usr/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/.theora_decoder.objs/byte -I /usr/lib/x86_64-linux-gnu/ocaml/5.3.0/ogg -I /usr/lib/x86_64-linux-gnu/ocaml/5.3.0/ogg/decoder -I /usr/lib/x86_64-linux-gnu/ocaml/5.
    3.0/threads -I /usr/lib/x86_64-linux-gnu/ocaml/5.3.0/unix -I src/.theora.objs/byte -intf-suffix .ml -no-alias-deps -o src/.theora_decoder.objs/byte/theora_decoder.cmo -c -impl src/theora_decoder.ml)
    File "src/theora_decoder.ml", line 93, characters 6-13:
    93 | restart;
    ^^^^^^^
    Error: The value "restart" has type "Ogg.Stream.stream -> unit"
    but an expression was expected of type
    "fill:(unit -> unit) -> Ogg.Stream.stream -> unit"
    A label "fill" was expected
    dh_auto_build: error: dune build -j 2 -p theora returned exit code 1
    make: *** [debian/rules:7: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202502/

    About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and add an affects on src:ocaml-theora, so that this is still
    visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)