(for PR #28222)

2025-08-21 14:13.39: New job: build ocurl.0.7.7, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28222/head (a14b2680809606d7e55ae7ed410b73438cb77bd0)
                              on fedora-41-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/28222/head" && git reset --hard a14b2680
git fetch origin master
git merge --no-edit 4bae7ec4df49df4454ea492c8d7a1196aeae04e0
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-41-ocaml-4.14@sha256:4f9df9250fac02cf5af6a01abc888e82e1fe046d02e830646bc7d896664dee4e
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 ocurl.0.7.7 0.7.7
RUN opam reinstall ocurl.0.7.7; \
    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" != 'ocurl.0.7.7' && 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-08-21 14:13.39: Using cache hint "ocaml/opam:fedora-41-ocaml-4.14@sha256:4f9df9250fac02cf5af6a01abc888e82e1fe046d02e830646bc7d896664dee4e-ocurl.0.7.7-a14b2680809606d7e55ae7ed410b73438cb77bd0"
2025-08-21 14:13.39: Using OBuilder spec:
((from ocaml/opam:fedora-41-ocaml-4.14@sha256:4f9df9250fac02cf5af6a01abc888e82e1fe046d02e830646bc7d896664dee4e)
 (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 ocurl.0.7.7 0.7.7"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ocurl.0.7.7;\
             \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\" != 'ocurl.0.7.7' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-08-21 14:13.39: Waiting for resource in pool OCluster
2025-08-21 14:20.14: Waiting for worker…
2025-08-21 14:21.46: Got resource from pool OCluster
Building on phoebe
All commits already cached
HEAD is now at 4bae7ec4df Merge pull request #28375 from jmid/opam-compiler-re-bounds
Merge made by the 'ort' strategy.
 packages/curl_lwt/curl_lwt.0.10.0/opam            |  2 +-
 packages/lwt/lwt.6.0.0~alpha01/opam               | 69 +++++++++++++++++++++++
 packages/lwt_direct/lwt_direct.6.0.0~alpha01/opam | 44 +++++++++++++++
 packages/lwt_glib/lwt_glib.1.0.1/opam             |  2 +-
 packages/lwt_glib/lwt_glib.1.1.0/opam             |  2 +-
 packages/lwt_glib/lwt_glib.1.1.1/opam             |  2 +-
 packages/lwt_log/lwt_log.1.1.0/opam               |  2 +-
 packages/lwt_log/lwt_log.1.1.1/opam               |  2 +-
 packages/lwt_log/lwt_log.1.1.2/opam               |  2 +-
 packages/ocurl/ocurl.0.7.6/opam                   |  1 +
 packages/ocurl/ocurl.0.7.7/opam                   |  1 +
 packages/ocurl/ocurl.0.7.8/opam                   |  1 +
 packages/ocurl/ocurl.0.7.9/opam                   |  1 +
 packages/ocurl/ocurl.0.8.1/opam                   |  1 +
 packages/ocurl/ocurl.0.8.2/opam                   |  1 +
 packages/ocurl/ocurl.0.9.0/opam                   |  1 +
 packages/ocurl/ocurl.0.9.1/opam                   |  1 +
 packages/ocurl/ocurl.0.9.2/opam                   |  1 +
 18 files changed, 129 insertions(+), 7 deletions(-)
 create mode 100644 packages/lwt/lwt.6.0.0~alpha01/opam
 create mode 100644 packages/lwt_direct/lwt_direct.6.0.0~alpha01/opam

(from ocaml/opam:fedora-41-ocaml-4.14@sha256:4f9df9250fac02cf5af6a01abc888e82e1fe046d02e830646bc7d896664dee4e)
Unable to find image 'ocaml/opam:fedora-41-ocaml-4.14@sha256:4f9df9250fac02cf5af6a01abc888e82e1fe046d02e830646bc7d896664dee4e' locally
docker.io/ocaml/opam@sha256:4f9df9250fac02cf5af6a01abc888e82e1fe046d02e830646bc7d896664dee4e: Pulling from ocaml/opam
0c4ea020f5c7: Already exists
b1a346b404a2: Already exists
4c95ad701959: Already exists
f1031436e8cc: Already exists
06705a848c0c: Already exists
Digest: sha256:4f9df9250fac02cf5af6a01abc888e82e1fe046d02e830646bc7d896664dee4e
Status: Downloaded newer image for ocaml/opam@sha256:4f9df9250fac02cf5af6a01abc888e82e1fe046d02e830646bc7d896664dee4e
2025-08-21 14:22.15 ---> using "b9924c044203762b86b9766d6c96fe26a9f85b813cb7fc4f9261da43d5659348" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-08-21 14:22.15 ---> using "657cd3cd91bc953cdfa111bb089893a01392cfca83824670afd3a1dc99abd4af" 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.

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 255 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=255 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-08-21 14:22.15 ---> using "c2934d19344c043b451af59f6b1616814d5030c2ca2427f3bf966ce14328398a" from cache

/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=fedora os-version=41
# 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       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# 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
2025-08-21 14:22.15 ---> using "25e12534315b03d0628041253829bdebe67fb4855e077cc81750959968b637f8" from cache

/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-08-21 14:22.15 ---> using "ea8acb4d5126948d1c25cf30f5f49d99a8210b224cfe0ba1c0174d911860ca51" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-08-21 14:22.23 ---> saved as "2ec12a1ae3d82f8af6977a0280ad2d8272b21dea2e2707757a1c77ad63e7b0d4"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-08-21 14:22.43 ---> saved as "e79400a2255b9538ea20b44f6d40b9ac57efe85af12fc86b95273f3bd061b143"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 41 - x86_64 - Updates           100% | 173.1 KiB/s |  22.3 KiB |  00m00s
- Repositories loaded.
- Metadata cache created.
2025-08-21 14:22.48 ---> saved as "d3623938fbc498b3b21dfa2bf6c6542f03dfea3e5540de71f55126de08219c76"

/home/opam: (run (shell "opam pin add -k version -yn ocurl.0.7.7 0.7.7"))
ocurl is now pinned to version 0.7.7
2025-08-21 14:22.49 ---> saved as "7335a4ace9a0238b394bc4f7c029097790cfbefda2992ac7acc29eed40210a21"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ocurl.0.7.7;\
                        \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\" != 'ocurl.0.7.7' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ocurl.0.7.7 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 3 packages
  - install conf-libcurl 2              [required by ocurl]
  - install ocamlfind    1.9.8          [required by ocurl]
  - install ocurl        0.7.7 (pinned)

The following system packages will first need to be installed:
    libcurl-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" "libcurl-devel"
- Updating and loading repositories:
- Repositories loaded.
- Package               Arch   Version         Repository      Size
- Installing:
-  libcurl-devel        x86_64 8.9.1-3.fc41    updates      1.3 MiB
- Installing dependencies:
-  brotli               x86_64 1.1.0-5.fc41    fedora      31.8 KiB
-  brotli-devel         x86_64 1.1.0-5.fc41    fedora      65.6 KiB
-  cmake-filesystem     x86_64 3.30.8-1.fc41   updates      0.0   B
-  libidn2-devel        x86_64 2.3.8-1.fc41    updates    148.2 KiB
-  libnghttp2-devel     x86_64 1.62.1-3.fc41   updates    295.2 KiB
-  libpsl-devel         x86_64 0.21.5-4.fc41   fedora     110.3 KiB
-  libssh-devel         x86_64 0.11.2-1.fc41   updates    178.0 KiB
-  openssl-devel        x86_64 1:3.2.4-2.fc41  updates      4.3 MiB
-  publicsuffix-list    noarch 20250616-1.fc41 updates    332.8 KiB
-  zlib-ng-compat-devel x86_64 2.2.3-2.fc41    updates    107.0 KiB
- 
- Transaction Summary:
-  Installing:        11 packages
- 
- Total size of inbound packages is 4 MiB. Need to download 4 MiB.
- After this operation, 7 MiB extra will be used (install 7 MiB, remove 0 B).
- [ 1/11] libidn2-devel-0:2.3.8-1.fc41.x8 100% |   1.2 MiB/s |  64.0 KiB |  00m00s
- [ 2/11] libssh-devel-0:0.11.2-1.fc41.x8 100% |   8.1 MiB/s |  41.7 KiB |  00m00s
- [ 3/11] libnghttp2-devel-0:1.62.1-3.fc4 100% | 920.9 KiB/s |  55.3 KiB |  00m00s
- [ 4/11] zlib-ng-compat-devel-0:2.2.3-2. 100% |   6.2 MiB/s |  38.3 KiB |  00m00s
- [ 5/11] brotli-devel-0:1.1.0-5.fc41.x86 100% |   5.5 MiB/s |  34.0 KiB |  00m00s
- [ 6/11] brotli-0:1.1.0-5.fc41.x86_64    100% |   2.8 MiB/s |  20.1 KiB |  00m00s
- [ 7/11] libpsl-devel-0:0.21.5-4.fc41.x8 100% |   4.6 MiB/s |  33.3 KiB |  00m00s
- [ 8/11] publicsuffix-list-0:20250616-1. 100% |   4.6 MiB/s |  89.9 KiB |  00m00s
- [ 9/11] libcurl-devel-0:8.9.1-3.fc41.x8 100% |   6.4 MiB/s | 871.1 KiB |  00m00s
- [10/11] cmake-filesystem-0:3.30.8-1.fc4 100% | 672.6 KiB/s |  16.8 KiB |  00m00s
- [11/11] openssl-devel-1:3.2.4-2.fc41.x8 100% |  16.3 MiB/s |   2.8 MiB |  00m00s
- --------------------------------------------------------------------------------
- [11/11] Total                           100% |   8.4 MiB/s |   4.0 MiB |  00m00s
- Running transaction
- [ 1/13] Verify package files            100% | 305.0   B/s |  11.0   B |  00m00s
- [ 2/13] Prepare transaction             100% |  90.0   B/s |  11.0   B |  00m00s
- [ 3/13] Installing cmake-filesystem-0:3 100% |   1.8 MiB/s |   7.3 KiB |  00m00s
- [ 4/13] Installing libssh-devel-0:0.11. 100% |  58.8 MiB/s | 180.6 KiB |  00m00s
- [ 5/13] Installing zlib-ng-compat-devel 100% |  53.0 MiB/s | 108.5 KiB |  00m00s
- [ 6/13] Installing publicsuffix-list-0: 100% | 108.7 MiB/s | 333.8 KiB |  00m00s
- [ 7/13] Installing libpsl-devel-0:0.21. 100% | 110.9 MiB/s | 113.6 KiB |  00m00s
- [ 8/13] Installing brotli-0:1.1.0-5.fc4 100% |  31.7 MiB/s |  32.5 KiB |  00m00s
- [ 9/13] Installing brotli-devel-0:1.1.0 100% |   4.7 MiB/s |  68.0 KiB |  00m00s
- [10/13] Installing openssl-devel-1:3.2. 100% |  91.0 MiB/s |   5.2 MiB |  00m00s
- [11/13] Installing libnghttp2-devel-0:1 100% | 144.7 MiB/s | 296.3 KiB |  00m00s
- [12/13] Installing libidn2-devel-0:2.3. 100% |  38.0 MiB/s | 155.8 KiB |  00m00s
- [13/13] Installing libcurl-devel-0:8.9. 100% |  16.5 MiB/s |   1.3 MiB |  00m00s
- Complete!
+ /usr/bin/rpm "-q" "--whatprovides" "libcurl-devel"
- libcurl-devel-8.9.1-3.fc41.x86_64

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ocamlfind.1.9.8  (cached)
-> installed conf-libcurl.2
-> retrieved ocurl.0.7.7  (cached)
-> installed ocamlfind.1.9.8
-> installed ocurl.0.7.7
Done.
# To update the current shell environment, run: eval $(opam env)
2025-08-21 14:23.28 ---> saved as "61c4dde51791b47dbfd769bb0ee7940183c78b8c6c66824dd0fef8bc5f86814f"
Job succeeded
2025-08-21 14:23.38: Job succeeded