• Bug#1105509: mysql-ocaml: FTBFS with make --shuffle=reverse: make[2]: *

    From Lucas Nussbaum@21:1/5 to All on Tue May 13 21:20:09 2025
    XPost: linux.debian.bugs.dist

    Source: mysql-ocaml
    Version: 1.2.4-2
    Severity: minor
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-shuffle

    Hi,

    GNU Make now has a --shuffle option that simulates non-deterministic ordering of target prerequisites. See https://trofi.github.io/posts/238-new-make-shuffle-mode.html and also previous work in Debian by Santiago Vila: https://people.debian.org/~sanvila/make-shuffle/

    This package fails to build with make --shuffle=reverse.
    This is likely to be caused by a missing dependency in
    debian/rules or an upstream Makefile.

    More information about this mass bug filing is available at https://wiki.debian.org/qa.debian.org/FTBFS/Shuffle

    Relevant part (hopefully):
    make[2]: Entering directory '/build/reproducible-path/mysql-ocaml-1.2.4' OCamlMakefile:1055: update target 'mysql.cmx' due to: target does not exist pp=`sed -n -e '/^#/d' -e 's/(\*pp \([^*]*\) \*)/\1/p;q' mysql.ml`; \
    if [ -z "$pp" ]; then \
    echo ocamlc \
    -c mysql.ml; \
    ocamlc \
    -c mysql.ml; \
    else \
    echo ocamlc \
    -c -pp \"$pp \" mysql.ml; \
    ocamlc \
    -c -pp "$pp " mysql.ml; \
    fi
    ocamlc -c mysql.ml
    File "mysql.ml", line 428, characters 35-45:
    428 | if i = String.length str then (String.sub str p_start (String.length str - p_start)) :: acc else
    ^^^^^^^^^^
    Warning 6 [labels-omitted]: labels pos, len were omitted in the application of this function.

    File "mysql.ml", line 430, characters 45-55:
    430 | | ' ' | '\t' | '\n' | '\r' | ',' -> wsp (String.sub str p_start (i - p_start) :: acc) (i+1)
    ^^^^^^^^^^
    Warning 6 [labels-omitted]: labels pos, len were omitted in the application of this function.
    Makefile:39: update target 'mysql.cmxs' due to: target does not exist ocamlopt -shared -ccopt -L/usr/lib/x86_64-linux-gnu/ -ccopt -Wl,-z,relro mysql_stubs.o -cclib -lmariadb -o mysql.cmxs mysql.cmx
    File "_none_", line 1:
    Error: Cannot find file "mysql.cmx"
    make[2]: *** [Makefile:39: mysql.cmxs] Error 2 shuffle=reverse


    The full build log is available from: http://qa-logs.debian.net/2025/05/05/shuffle/reverse/mysql-ocaml_1.2.4-2_unstable_reverse.log

    If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects

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