(for PR #27974)

2025-06-03 03:08.11: New job: build echo.0.0.5, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27974/head (7e483968a51c396f77b33e9bc30973b129f4facf)
                              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/27974/head" && git reset --hard 7e483968
git fetch origin master
git merge --no-edit c037675bed027195b802bf40b1840ece3feb3b2a
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.3@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885
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 echo.0.0.5 0.0.5
RUN opam reinstall echo.0.0.5; \
    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" != 'echo.0.0.5' && 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-06-03 03:08.11: Using cache hint "ocaml/opam:debian-12-ocaml-5.3@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885-echo.0.0.5-7e483968a51c396f77b33e9bc30973b129f4facf"
2025-06-03 03:08.11: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885)
 (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 echo.0.0.5 0.0.5"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall echo.0.0.5;\
             \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\" != 'echo.0.0.5' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-06-03 03:08.11: Waiting for resource in pool OCluster
2025-06-03 03:08.12: Waiting for worker…
2025-06-03 03:08.13: Got resource from pool OCluster
Building on phoebe.caelum.ci.dev
All commits already cached
HEAD is now at c037675bed Merge pull request #27980 from jmid/conf-freeglut-typo
Merge made by the 'ort' strategy.
 packages/echo/echo.0.0.5/opam | 53 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 packages/echo/echo.0.0.5/opam

(from ocaml/opam:debian-12-ocaml-5.3@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885)
2025-06-03 03:08.48 ---> saved as "0d6009597d4cd5c6e2fc2f171b02a7d6489a864d448f83a5732d0b3910a8b64d"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-06-03 03:08.48 ---> saved as "41e637c08318ba437e9dc53eddccae20a9c3ea7ec765dfb6e89e9ef062caae69"

/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] Initialised
2025-06-03 03:09.19 ---> saved as "ebe8146c0fbf63672d2b7f474ffcf902c7b067acb6b4097215c8243f3c267cf0"

/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                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.3
# invariant            ["ocaml-base-compiler" {= "5.3.0"}]
# compiler-packages    ocaml-base-compiler.5.3.0, ocaml-compiler.5.3.0, ocaml-options-vanilla.1
# 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-06-03 03:09.21 ---> saved as "8b125a214d6c461abab727d818888ac8fe0495ffdd3113b3563d154cb3ad44b7"

/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-06-03 03:09.33 ---> saved as "a5085eef74d9d1395fc202284ed5242a02a9e7ff9c0bb94f4ead43ae05cd5114"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-03 03:09.43 ---> saved as "0d18d748cb25a2497d2c54ff5ece181e1029b393878b9a9e4c7434643c37a8b5"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-03 03:10.04 ---> saved as "d64753133480cfcf768e8b05bcc8be0f2b586fe09b152296bf695e696bc7e592"

/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 [265 kB]
- Fetched 368 kB in 1s (713 kB/s)
- Reading package lists...
- 
2025-06-03 03:10.06 ---> saved as "a21c1abb58a920793e3b6b913598421ff6e9b52cf118dcb47142ef77eb4856db"

/home/opam: (run (shell "opam pin add -k version -yn echo.0.0.5 0.0.5"))
echo is now pinned to version 0.0.5
2025-06-03 03:10.07 ---> saved as "8c26e8c5aa1aa49591d96db809eaf7eece15bddab4a01d58a2888f721b37667a"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall echo.0.0.5;\
                        \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\" != 'echo.0.0.5' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
echo.0.0.5 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 26 packages
  - install alcotest                1.9.0          [required by echo]
  - install astring                 0.8.5          [required by alcotest]
  - install base                    v0.17.2        [required by echo]
  - install bigarray-compat         1.1.0          [required by ctypes]
  - install cmdliner                1.3.0          [required by alcotest]
  - install conf-libffi             2.0.0          [required by ctypes-foreign]
  - install conf-pkg-config         4              [required by ctypes-foreign]
  - install csexp                   1.5.2          [required by dune-configurator]
  - install ctypes                  0.23.0         [required by echo]
  - install ctypes-foreign          0.23.0         [required by echo]
  - install dune                    3.19.0         [required by echo]
  - install dune-configurator       3.19.0         [required by ctypes, base, ctypes-foreign]
  - install echo                    0.0.5 (pinned)
  - install fmt                     0.10.0         [required by echo]
  - install integers                0.7.0          [required by ctypes]
  - install ocaml-syntax-shims      1.0.0          [required by alcotest]
  - install ocaml_intrinsics_kernel v0.17.1        [required by base]
  - install ocamlbuild              0.16.1         [required by fmt, astring, uutf]
  - install ocamlfind               1.9.8          [required by fmt, astring, uutf]
  - install re                      1.12.0         [required by alcotest]
  - install seq                     base           [required by re]
  - install sexplib0                v0.17.0        [required by base]
  - install stdio                   v0.17.0        [required by echo]
  - install stdlib-shims            0.3.0          [required by alcotest]
  - install topkg                   1.0.8          [required by fmt, astring, uutf]
  - install uutf                    1.0.4          [required by alcotest]

The following system packages will first need to be installed:
    libffi-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" "libffi-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libffi-dev: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 ... 18776 files and directories currently installed.)
- Preparing to unpack .../libffi-dev_3.4.4-1_amd64.deb ...
- Unpacking libffi-dev:amd64 (3.4.4-1) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../libpkgconf3_1.8.1-1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../pkgconf-bin_1.8.1-1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../pkgconf_1.8.1-1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../pkg-config_1.8.1-1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-1) ...
- Setting up libffi-dev:amd64 (3.4.4-1) ...
- Setting up libpkgconf3:amd64 (1.8.1-1) ...
- Setting up pkgconf-bin (1.8.1-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 alcotest.1.9.0  (cached)
-> retrieved astring.0.8.5  (cached)
-> retrieved base.v0.17.2  (cached)
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved cmdliner.1.3.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved ctypes.0.23.0, ctypes-foreign.0.23.0  (cached)
-> installed conf-pkg-config.4
-> installed conf-libffi.2.0.0
-> retrieved dune.3.19.0, dune-configurator.3.19.0  (cached)
-> retrieved echo.0.0.5  (https://github.com/deakodev/echo/archive/refs/tags/0.0.5.tar.gz)
-> retrieved fmt.0.10.0  (cached)
-> retrieved integers.0.7.0  (cached)
-> retrieved ocaml-syntax-shims.1.0.0  (cached)
-> retrieved ocaml_intrinsics_kernel.v0.17.1  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> installed cmdliner.1.3.0
-> retrieved re.1.12.0  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdio.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved topkg.1.0.8  (cached)
-> retrieved uutf.1.0.4  (cached)
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed topkg.1.0.8
-> installed uutf.1.0.4
-> installed fmt.0.10.0
-> installed astring.0.8.5
-> installed dune.3.19.0
-> installed csexp.1.5.2
-> installed bigarray-compat.1.1.0
-> installed ocaml-syntax-shims.1.0.0
-> installed ocaml_intrinsics_kernel.v0.17.1
-> installed re.1.12.0
-> installed sexplib0.v0.17.0
-> installed stdlib-shims.0.3.0
-> installed integers.0.7.0
-> installed alcotest.1.9.0
-> installed dune-configurator.3.19.0
-> installed ctypes.0.23.0
-> installed base.v0.17.2
-> installed stdio.v0.17.0
-> installed ctypes-foreign.0.23.0
-> installed echo.0.0.5
Done.
# To update the current shell environment, run: eval $(opam env)
2025-06-03 03:11.02 ---> saved as "c2e87fb6dee7cdf411609135d5628b6ef1c8539aa818a3a6496365ffaf154ed8"
Job succeeded
2025-06-03 03:11.07: Job succeeded