(for PR #26912)

2025-04-03 13:30.26: New job: build mlgmpidl.1.2.15-1, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26912/head (8f78ac65ee262835b31990fcdf159b4ccdca7c5f)
                              on debian-12-ocaml-4.14-afl/amd64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/26912/head" && git reset --hard 8f78ac65
git fetch origin master
git merge --no-edit ecbfc6754f6e95544eb1eab71c162099f77308bf
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14-afl@sha256:71d84a1f2dccbc876189bdb26d881a87445c1070763c6979513d447799405cd1
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam
RUN opam init --reinit -ni
RUN opam option solver=builtin-0install && opam config report
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMPRECISETRACKING="1"
ENV CI="true"
ENV OPAM_REPO_CI="true"
RUN rm -rf opam-repository/
COPY --chown=1000:1000 . opam-repository/
RUN opam repository set-url --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn mlgmpidl.1.2.15-1 1.2.15-1
RUN opam reinstall mlgmpidl.1.2.15-1; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    partial_fails=""; \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'mlgmpidl.1.2.15-1' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1

END-OF-DOCKERFILE
docker build -f ../Dockerfile .

2025-04-03 13:30.26: Using cache hint "ocaml/opam:debian-12-ocaml-4.14-afl@sha256:71d84a1f2dccbc876189bdb26d881a87445c1070763c6979513d447799405cd1-mlgmpidl.1.2.15-1-8f78ac65ee262835b31990fcdf159b4ccdca7c5f"
2025-04-03 13:30.26: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14-afl@sha256:71d84a1f2dccbc876189bdb26d881a87445c1070763c6979513d447799405cd1)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "opam option solver=builtin-0install && opam config report"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMPRECISETRACKING 1)
 (env CI true)
 (env OPAM_REPO_CI true)
 (run (shell "rm -rf opam-repository/"))
 (copy (src .) (dst opam-repository/))
 (run (shell "opam repository set-url --strict default opam-repository/"))
 (run (network host)
      (shell "opam update --depexts || true"))
 (run (shell "opam pin add -k version -yn mlgmpidl.1.2.15-1 1.2.15-1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall mlgmpidl.1.2.15-1;\
             \n        res=$?;\
             \n        test \"$res\" != 31 && exit \"$res\";\
             \n        export OPAMCLI=2.0;\
             \n        build_dir=$(opam var prefix)/.opam-switch/build;\
             \n        failed=$(ls \"$build_dir\");\
             \n        partial_fails=\"\";\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'mlgmpidl.1.2.15-1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-04-03 13:30.26: Connecting to build cluster…
2025-04-03 13:30.26: Waiting for resource in pool OCluster
2025-04-03 16:21.36: Waiting for worker…
2025-04-03 16:24.37: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  97% (22244/22793)
Updating files:  98% (22338/22793)
Updating files:  99% (22566/22793)
Updating files: 100% (22793/22793)
Updating files: 100% (22793/22793), done.
HEAD is now at ecbfc6754f Merge pull request #27708 from ocaml/dependabot/github_actions/dot-github/workflows/tj-actions/changed-files-46
Merge made by the 'ort' strategy.
 packages/mlgmpidl/mlgmpidl.1.2.15-1/opam | 41 ++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 packages/mlgmpidl/mlgmpidl.1.2.15-1/opam

(from ocaml/opam:debian-12-ocaml-4.14-afl@sha256:71d84a1f2dccbc876189bdb26d881a87445c1070763c6979513d447799405cd1)
2025-04-03 16:25.57 ---> saved as "3f3dc6b670080a7433289be83e1df3c31594540f6a6f66b7916e27e2c309aa5a"

/: (user (uid 1000) (gid 1000))

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-04-03 16:25.58 ---> saved as "46aeb910c45d8fdd36686190608276014944e7cfd44729163c12e342875f4a29"

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
Configuring from /home/opam/.opamrc-sandbox, then /home/opam/.opamrc, and finally from built-in defaults.
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg command on your system.
  - you won't be able to use darcs repositories unless you install the darcs command on your system.

This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.

Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 39 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
           opam option jobs=39 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2025-04-03 16:26.59 ---> saved as "9088d3a390b99f1903bfa5c5fab26ab2984be1ecd48aa959bee825f9e8a30382"

/home/opam: (run (shell "opam option solver=builtin-0install && opam config report"))
Set to 'builtin-0install' the field solver in global configuration
# opam config report
# opam-version         2.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=12
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (local)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-options-only-afl"]
# compiler-packages    ocaml-option-afl.1, ocaml-options-only-afl.1, ocaml-variants.4.14.2+options
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2+options+afl
2025-04-03 16:27.00 ---> saved as "c2700d745b7022bf5014ceb7ea282dc52cb50d2f610eba54a49da53104b19e71"

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMPRECISETRACKING 1)

/home/opam: (env CI true)

/home/opam: (env OPAM_REPO_CI true)

/home/opam: (run (shell "rm -rf opam-repository/"))
2025-04-03 16:27.12 ---> saved as "30ed784034c44796f0da8ce1b42a6798da5e8c00b5af08b20f9a227cda90de55"

/home/opam: (copy (src .) (dst opam-repository/))
2025-04-03 16:27.21 ---> saved as "3d1b515914a7d66ffee9c02899ced3135ab84e4374993f460ed80d36952af531"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-04-03 16:28.13 ---> saved as "f90b18887222e54b0ff141a5004dbd9be1c8bb7be794193d7f7737ad2fff2ab7"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [250 kB]
- Fetched 353 kB in 1s (653 kB/s)
- Reading package lists...
- 
2025-04-03 16:28.15 ---> saved as "25ae974944058dba82043f194321da1efc12ac5877acf98258773c50894c3c6b"

/home/opam: (run (shell "opam pin add -k version -yn mlgmpidl.1.2.15-1 1.2.15-1"))
mlgmpidl is now pinned to version 1.2.15-1
2025-04-03 16:28.16 ---> saved as "76c02537aedd0d21bcecc96168a951d09360c2e15e489574b33613118f58f1ea"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall mlgmpidl.1.2.15-1;\
                        \n        res=$?;\
                        \n        test \"$res\" != 31 && exit \"$res\";\
                        \n        export OPAMCLI=2.0;\
                        \n        build_dir=$(opam var prefix)/.opam-switch/build;\
                        \n        failed=$(ls \"$build_dir\");\
                        \n        partial_fails=\"\";\
                        \n        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'mlgmpidl.1.2.15-1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
mlgmpidl.1.2.15-1 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 9 packages
  - install bigarray-compat 1.1.0             [required by mlgmpidl]
  - install camlidl         1.12              [required by mlgmpidl]
  - install conf-gmp        4                 [required by mlgmpidl]
  - install conf-mpfr       3                 [required by mlgmpidl]
  - install conf-perl       2                 [required by mlgmpidl]
  - install conf-pkg-config 4                 [required by conf-mpfr]
  - install dune            3.17.2            [required by bigarray-compat]
  - install mlgmpidl        1.2.15-1 (pinned)
  - install ocamlfind       1.9.8             [required by mlgmpidl]

The following system packages will first need to be installed:
    libgmp-dev libmpfr-dev pkg-config

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run apt-get to install them (may need root/sudo access)
  2. Display the recommended apt-get command and wait while you run it manually (e.g. in another terminal)
  3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable
  4. Abort the installation

[1/2/3/4] 1

+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libgmp-dev" "libmpfr-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libgmpxx4ldbl:amd64.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18747 files and directories currently installed.)
- Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libgmp-dev:amd64.
- Preparing to unpack .../1-libgmp-dev_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libmpfr-dev:amd64.
- Preparing to unpack .../2-libmpfr-dev_4.2.0-1_amd64.deb ...
- Unpacking libmpfr-dev:amd64 (4.2.0-1) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../3-libpkgconf3_1.8.1-1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../4-pkgconf-bin_1.8.1-1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../5-pkgconf_1.8.1-1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../6-pkg-config_1.8.1-1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-1) ...
- Setting up libpkgconf3:amd64 (1.8.1-1) ...
- Setting up libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up libmpfr-dev:amd64 (4.2.0-1) ...
- Setting up pkgconf:amd64 (1.8.1-1) ...
- Setting up pkg-config:amd64 (1.8.1-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u10) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved camlidl.1.12  (cached)
-> retrieved conf-gmp.4  (cached)
-> retrieved conf-mpfr.3  (cached)
-> installed conf-pkg-config.4
-> installed conf-gmp.4
-> installed conf-perl.2
-> installed conf-mpfr.3
-> retrieved dune.3.17.2  (cached)
-> installed camlidl.1.12
-> retrieved mlgmpidl.1.2.15-1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> installed ocamlfind.1.9.8
-> installed dune.3.17.2
-> installed bigarray-compat.1.1.0
-> installed mlgmpidl.1.2.15-1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-03 16:28.59 ---> saved as "489132be068a707b40478a688ad027f9568180c3beee0a1357e63165e8862b72"
Job succeeded
2025-04-03 16:29.11: Job succeeded