(for PR #27974)

2025-06-03 03:08.12: New job: build echo.0.0.5, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27974/head (7e483968a51c396f77b33e9bc30973b129f4facf)
                              on debian-12-ocaml-4.14/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-4.14@sha256:2865cf8118220a93dbfbc86bfda6f352b4a5f3f3df9b7e98d6de9b5dfc339b9a
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam
RUN opam init --reinit -ni
RUN 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 depext -u || true
RUN opam pin add -k version -yn echo.0.0.5 0.0.5
RUN opam depext echo.0.0.5 && 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.12: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:2865cf8118220a93dbfbc86bfda6f352b4a5f3f3df9b7e98d6de9b5dfc339b9a-echo.0.0.5-7e483968a51c396f77b33e9bc30973b129f4facf"
2025-06-03 03:08.12: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:2865cf8118220a93dbfbc86bfda6f352b4a5f3f3df9b7e98d6de9b5dfc339b9a)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "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 depext -u || 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 depext echo.0.0.5 && 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.12: Waiting for resource in pool OCluster
2025-06-03 03:08.12: Waiting for worker…
2025-06-03 03:08.12: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
Updating files:  93% (21775/23181)
Updating files:  94% (21791/23181)
Updating files:  95% (22022/23181)
Updating files:  96% (22254/23181)
Updating files:  97% (22486/23181)
Updating files:  98% (22718/23181)
Updating files:  99% (22950/23181)
Updating files: 100% (23181/23181)
Updating files: 100% (23181/23181), done.
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-4.14@sha256:2865cf8118220a93dbfbc86bfda6f352b4a5f3f3df9b7e98d6de9b5dfc339b9a)
2025-06-03 03:08.35 ---> using "2dd7137756898801a305bef0221b74a8422f6b11fcce7c8326e8f0a450f73478" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
2025-06-03 03:08.35 ---> saved as "a30794c2bfe4c8ce1222a73c2822d90c27279e79928b61c631441d92859fba0c"

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
[NOTE] Will configure 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.

[WARNING] Recommended dependencies -- most packages rely on these:
  - m4

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
default (at git+file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-06-03 03:09.43 ---> saved as "34e0a9e88006889fd438962b94820dc05ccaa546c6b53444cead26d219e25572"

/home/opam: (run (shell "opam config report"))
# opam config report
# opam-version      2.0.10 (adc1e1829a2bef5b240746df80341b508290fe3b) 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=debian os-version=12
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              39
# repositories      1 (version-controlled)
# pinned            1 (version)
# current-switch    4.14
2025-06-03 03:09.44 ---> saved as "35952910c30391d2bedf8422bd46839fcf1eec290fcc3b4534a572ed2c894e8e"

/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.53 ---> saved as "dac686763d1305bf98679067ffb4183986faf8925e388de53dab93931ed03c24"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-03 03:10.01 ---> saved as "e2b6d8804b00a4e43f6ad834e49103671b420060f4ad5e21e2b0577f0a3d1031"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-06-03 03:10.19 ---> saved as "80677e3a96ac29ce9ebc766ea13b5eba8a07e6df709fcabef803c47d2c029ef0"

/home/opam: (run (network host)
                 (shell "opam depext -u || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following command needs to be run through "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 0s (1240 kB/s)
Reading package lists...
# OS package update successful
2025-06-03 03:10.21 ---> saved as "f9657a2a831d57439013fa819142d4109c86aca0fb4e8632e4e82cd6f71a1b01"

/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.22 ---> saved as "099b6802bb9a8d6c5b748bfafd8bcc1c6d80b798b073a4b8921ed731eddfdc34"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext echo.0.0.5 && 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"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# The following system packages are needed:
libffi-dev
pkg-config
The following command needs to be run through "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 ... 18745 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) ...
# OS packages installation successful
echo.0.0.5 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install cmdliner          1.3.0   [required by alcotest]
  - install ocamlbuild        0.16.1  [required by fmt, astring, uuidm]
  - install dune              3.19.0  [required by echo]
  - install seq               base    [required by re]
  - install conf-pkg-config   4       [required by ctypes-foreign]
  - install ocamlfind         1.9.8   [required by fmt, astring, uuidm]
  - install stdlib-shims      0.3.0   [required by alcotest]
  - install sexplib0          v0.16.0 [required by base]
  - install dune-configurator 2.7.0   [required by ctypes, base, ctypes-foreign]
  - install bigarray-compat   1.1.0   [required by ctypes]
  - install re                1.12.0  [required by alcotest]
  - install conf-libffi       2.0.0   [required by ctypes-foreign]
  - install topkg             1.0.8   [required by fmt, astring, uuidm]
  - install integers          0.7.0   [required by ctypes]
  - install base              v0.16.4 [required by echo]
  - install uuidm             0.9.10  [required by alcotest]
  - install fmt               0.10.0  [required by echo]
  - install astring           0.8.5   [required by alcotest]
  - install ctypes            0.23.0  [required by echo]
  - install stdio             v0.16.0 [required by echo]
  - install alcotest          1.0.1   [required by echo]
  - install ctypes-foreign    0.23.0  [required by echo]
  - install echo              0.0.5*
===== 23 to install =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[alcotest.1.0.1] found in cache
[astring.0.8.5] found in cache
[base.v0.16.4] found in cache
[bigarray-compat.1.1.0] found in cache
[cmdliner.1.3.0] found in cache
[ctypes.0.23.0] found in cache
[ctypes-foreign.0.23.0] found in cache
[dune.3.19.0] found in cache
[dune-configurator.2.7.0] found in cache
[echo.0.0.5] found in cache
[fmt.0.10.0] found in cache
[integers.0.7.0] found in cache
[ocamlbuild.0.16.1] found in cache
[ocamlfind.1.9.8] found in cache
[re.1.12.0] found in cache
[sexplib0.v0.16.0] found in cache
[stdio.v0.16.0] found in cache
[stdlib-shims.0.3.0] found in cache
[topkg.1.0.8] found in cache
[uuidm.0.9.10] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed seq.base
-> installed conf-pkg-config.4
-> installed conf-libffi.2.0.0
-> installed cmdliner.1.3.0
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed topkg.1.0.8
-> installed uuidm.0.9.10
-> installed fmt.0.10.0
-> installed astring.0.8.5
-> installed dune.3.19.0
-> installed bigarray-compat.1.1.0
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.16.0
-> installed integers.0.7.0
-> installed re.1.12.0
-> installed dune-configurator.2.7.0
-> installed alcotest.1.0.1
-> installed ctypes.0.23.0
-> installed base.v0.16.4
-> installed ctypes-foreign.0.23.0
-> installed stdio.v0.16.0
-> installed echo.0.0.5
Done.
# Run eval $(opam env) to update the current shell environment
2025-06-03 03:11.27 ---> saved as "e8076e7e28ee2d2f84219a5d0e409488be0fe0907d5352df8090ce8dcf17c31f"
Job succeeded
2025-06-03 03:11.33: Job succeeded