(for PR #26912)

2025-04-03 13:30.26: New job: build mlgmpidl.1.2.15-1, using opam 2.1
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26912/head (8f78ac65ee262835b31990fcdf159b4ccdca7c5f)
                              on debian-12-ocaml-5.3/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-5.3@sha256:531e94709b66da9b515e50f6d39f1299514fde0dbf4429080784012dd08bb975
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.1 /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-5.3@sha256:531e94709b66da9b515e50f6d39f1299514fde0dbf4429080784012dd08bb975-mlgmpidl.1.2.15-1-8f78ac65ee262835b31990fcdf159b4ccdca7c5f"
2025-04-03 13:30.26: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:531e94709b66da9b515e50f6d39f1299514fde0dbf4429080784012dd08bb975)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /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.54: Waiting for worker…
2025-04-03 16:25.10: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  97% (22278/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-5.3@sha256:531e94709b66da9b515e50f6d39f1299514fde0dbf4429080784012dd08bb975)
2025-04-03 16:25.16 ---> using "b2674d75bd761ae0940cbbcd0e3587e1677ed25681fd5f43c3e5e50c82b8fc4f" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2025-04-03 16:25.16 ---> using "3957655c0d41cdf7e70f5e00c71d9ab2873d5607fac5dbbc82edf80f21f173b9" from cache

/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.

Continue? [Y/n] y
This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.1, which can't be reverted.
You may want to back it up before going further.

Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2025-04-03 16:26.22 ---> saved as "2923c94c56ed7fdaa4c1634cb290e7ab7725c8c85859e8f60fe4b4b019fd1d04"

/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.1.6 (263921263e1f745613e2882745114b7b08f3608b) 
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=12
# solver               builtin-0install
# install-criteria     
# upgrade-criteria     
# jobs                 39
# repositories         1 (local)
# pinned               1 (version)
# current-switch       5.3
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.3/lib/ocaml/stublibs:/home/opam/.opam/5.3/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-04-03 16:26.24 ---> saved as "adf71a40e0fc3a96ac3d655950a54fd33865f349cb02e3e63cdebd2de6be58d1"

/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:26.38 ---> saved as "0972f4cb512d4c0b1b1ea67e600b59a685cbfabbe2f9eb5f58c6f7562012fbd3"

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

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

/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 0s (1085 kB/s)
- Reading package lists...
2025-04-03 16:27.06 ---> saved as "ad9db40851dd0688be7f7a119c377effc2057126795799c73e5885039b5b3f39"

/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:27.07 ---> saved as "fcc0e9a8cdedf576d65b73981da18bdb78b8d2d7295e068c252cd84755c91c08"

/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 conf-perl       2         [required by mlgmpidl]
  - install conf-gmp        4         [required by mlgmpidl]
  - install conf-pkg-config 4         [required by conf-mpfr]
  - install ocamlfind       1.9.8     [required by mlgmpidl]
  - install camlidl         1.12      [required by mlgmpidl]
  - install dune            3.17.2    [required by bigarray-compat]
  - install conf-mpfr       3         [required by mlgmpidl]
  - install bigarray-compat 1.1.0     [required by mlgmpidl]
  - install mlgmpidl        1.2.15-1*
===== 9 to install =====

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

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] y
+ /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 ... 18778 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)
-> retrieved dune.3.17.2  (cached)
-> installed conf-gmp.4
-> installed conf-perl.2
-> installed conf-pkg-config.4
-> retrieved mlgmpidl.1.2.15-1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> installed conf-mpfr.3
-> installed camlidl.1.12
-> installed ocamlfind.1.9.8
-> installed dune.3.17.2
-> installed bigarray-compat.1.1.0
-> installed mlgmpidl.1.2.15-1
Done.
# Run eval $(opam env) to update the current shell environment
2025-04-03 16:27.43 ---> saved as "be719adc93485b39f987b32690077d8c7fa073867948f1cbfd543edd55f8b74c"
Job succeeded
2025-04-03 16:27.49: Job succeeded