(for PR #27974)

2025-06-03 03:08.11: New job: build echo.0.0.5, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27974/head (7e483968a51c396f77b33e9bc30973b129f4facf)
                              on fedora-41-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:fedora-41-ocaml-5.3@sha256:f1b9917c12a2ea5330eed87703b48712042f41254ff87f937ba1262dd12aa06a
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /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 "\"fedora-41\""; 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:fedora-41-ocaml-5.3@sha256:f1b9917c12a2ea5330eed87703b48712042f41254ff87f937ba1262dd12aa06a-echo.0.0.5-7e483968a51c396f77b33e9bc30973b129f4facf"
2025-06-03 03:08.11: Using OBuilder spec:
((from ocaml/opam:fedora-41-ocaml-5.3@sha256:f1b9917c12a2ea5330eed87703b48712042f41254ff87f937ba1262dd12aa06a)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-dev /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 \"\\\"fedora-41\\\"\"; 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.12: Got resource from pool OCluster
Building on x86-bm-c3.sw.ocaml.org
All commits already cached
Updating files:  95% (22148/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:fedora-41-ocaml-5.3@sha256:f1b9917c12a2ea5330eed87703b48712042f41254ff87f937ba1262dd12aa06a)
Unable to find image 'ocaml/opam:fedora-41-ocaml-5.3@sha256:f1b9917c12a2ea5330eed87703b48712042f41254ff87f937ba1262dd12aa06a' locally
docker.io/ocaml/opam@sha256:f1b9917c12a2ea5330eed87703b48712042f41254ff87f937ba1262dd12aa06a: Pulling from ocaml/opam
cbf54377d24a: Pulling fs layer
cbf54377d24a: Verifying Checksum
cbf54377d24a: Download complete
cbf54377d24a: Pull complete
Digest: sha256:f1b9917c12a2ea5330eed87703b48712042f41254ff87f937ba1262dd12aa06a
Status: Downloaded newer image for ocaml/opam@sha256:f1b9917c12a2ea5330eed87703b48712042f41254ff87f937ba1262dd12aa06a
2025-06-03 03:10.01 ---> saved as "b72639ee075216378a9c6580925ec8f93d0e2f0e8f61c15d40ca38cda02d5b49"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-06-03 03:10.01 ---> saved as "ec2e9ba036c0ecd982df2fd47b41ef6b6f0038783cb076e117de829c2f894424"

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

[NOTE] The 'jobs' option was reset, its value was 71 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=71 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-06-03 03:10.34 ---> saved as "4b29ae1b2126c70486d6cb37ef3f974aaf8d828e1c6df1e63b05c1464a1ddf81"

/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.4.0~alpha2
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=fedora os-version=41
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 39
# 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:10.35 ---> saved as "ec05a8f07adcb058bb6ffa7000e7317f4be93dcda84fa573e4072b8027fce4d0"

/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:10.41 ---> saved as "af580d31f97c14e2789a73182ad3702a90a7c245040715d0494751e73773b6c8"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-03 03:10.48 ---> saved as "821e0572a1128ad50078cde533e7e20b950545d551403e46ea8b1afede1fe79e"

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 41 openh264 (From Cisco) - x86_ 100% |  13.4 KiB/s | 989.0   B |  00m00s
-  Fedora 41 - x86_64 - Updates           100% | 218.2 KiB/s |  21.8 KiB |  00m00s
-  Fedora 41 - x86_64 - Updates           100% |   4.1 MiB/s |   3.1 MiB |  00m01s
- Repositories loaded.
- Metadata cache created.
2025-06-03 03:11.13 ---> saved as "0cf34f584814d3951cc178ce16397744f2fa4a70437f401da335a25f0e9bd39d"

/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:11.14 ---> saved as "d20e5eb4e4e9c6537f56ca7a7451942f830ecf37d2319e9fe6869c2e8c9c2f1b"

/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 \"\\\"fedora-41\\\"\"; 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-devel

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

opam believes some required external dependencies are missing. opam can:
> 1. Run yum to install them (may need root/sudo access)
  2. Display the recommended yum 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 "yum" "install" "-y" "libffi-devel"
- Updating and loading repositories:
- Repositories loaded.
- Package       Arch   Version      Repository      Size
- Installing:
-  libffi-devel x86_64 3.4.6-3.fc41 fedora      33.1 KiB
- 
- Transaction Summary:
-  Installing:         1 package
- 
- Total size of inbound packages is 29 KiB. Need to download 29 KiB.
- After this operation, 33 KiB extra will be used (install 33 KiB, remove 0 B).
- [1/1] libffi-devel-0:3.4.6-3.fc41.x86_6 100% | 355.1 KiB/s |  28.8 KiB |  00m00s
- --------------------------------------------------------------------------------
- [1/1] Total                             100% | 158.0 KiB/s |  28.8 KiB |  00m00s
- Running transaction
- [1/3] Verify package files              100% |   1.0 KiB/s |   1.0   B |  00m00s
- [2/3] Prepare transaction               100% |  31.0   B/s |   1.0   B |  00m00s
- [3/3] Installing libffi-devel-0:3.4.6-3 100% | 589.7 KiB/s |  34.8 KiB |  00m00s
- Complete!
+ /usr/bin/rpm "-q" "--whatprovides" "libffi-devel"
- libffi-devel-3.4.6-3.fc41.x86_64

<><> 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  (cached)
-> 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)
-> retrieved re.1.12.0  (cached)
-> retrieved seq.base  (cached)
-> installed cmdliner.1.3.0
-> 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:12.05 ---> saved as "6ab1ed39ed449a9ccde0deb83a366da4e4902d12890accd12326a56068561a18"
Job succeeded
2025-06-03 03:12.17: Job succeeded