(for PR #23330)

2024-07-03 06:56.28: New job: build conf-gmp.5, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/23330/head (e065de656cee71750ee448a95ca37886f41c1cd4)
                              on macos-homebrew-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/23330/head" && git reset --hard e065de65
git fetch origin master
git merge --no-edit f11abb6589b7c157b8bd91c5d5fcb5a92da6d892
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-4.14
USER 1000:1000
RUN ln -f ~/local/bin/opam-dev ~/local/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="500"
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 -k local --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn conf-gmp.5 5
RUN opam reinstall conf-gmp.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 "\"macos-homebrew\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-gmp.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 .

2024-07-03 06:56.28: Using cache hint "macos-homebrew-ocaml-4.14-conf-gmp.5-e065de656cee71750ee448a95ca37886f41c1cd4"
2024-07-03 06:56.28: Using OBuilder spec:
((from macos-homebrew-ocaml-4.14)
 (user (uid 1000) (gid 1000))
 (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
 (run (network host)
      (shell "opam init --reinit -ni"))
 (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 500)
 (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 -k local --strict default opam-repository/"))
 (run (network host)
      (shell "opam update --depexts || true"))
 (run (shell "opam pin add -k version -yn conf-gmp.5 5"))
 (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (network host)
      (shell  "opam reinstall conf-gmp.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 \"\\\"macos-homebrew\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'conf-gmp.5' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-07-03 06:56.28: Waiting for resource in pool OCluster
2024-07-03 06:56.29: Waiting for worker…
2024-07-03 07:04.46: Got resource from pool OCluster
Building on i7-worker-01
All commits already cached
Updating files:  17% (5694/31669)
Updating files:  18% (5701/31669)
Updating files:  19% (6018/31669)
Updating files:  20% (6334/31669)
Updating files:  21% (6651/31669)
Updating files:  22% (6968/31669)
Updating files:  23% (7284/31669)
Updating files:  24% (7601/31669)
Updating files:  25% (7918/31669)
Updating files:  26% (8234/31669)
Updating files:  27% (8551/31669)
Updating files:  28% (8868/31669)
Updating files:  29% (9185/31669)
Updating files:  30% (9501/31669)
Updating files:  31% (9818/31669)
Updating files:  32% (10135/31669)
Updating files:  32% (10368/31669)
Updating files:  33% (10451/31669)
Updating files:  34% (10768/31669)
Updating files:  35% (11085/31669)
Updating files:  36% (11401/31669)
Updating files:  37% (11718/31669)
Updating files:  38% (12035/31669)
Updating files:  39% (12351/31669)
Updating files:  40% (12668/31669)
Updating files:  41% (12985/31669)
Updating files:  42% (13301/31669)
Updating files:  43% (13618/31669)
Updating files:  44% (13935/31669)
Updating files:  45% (14252/31669)
Updating files:  46% (14568/31669)
Updating files:  47% (14885/31669)
Updating files:  48% (15202/31669)
Updating files:  49% (15518/31669)
Updating files:  49% (15523/31669)
Updating files:  50% (15835/31669)
Updating files:  51% (16152/31669)
Updating files:  52% (16468/31669)
Updating files:  53% (16785/31669)
Updating files:  54% (17102/31669)
Updating files:  55% (17418/31669)
Updating files:  56% (17735/31669)
Updating files:  57% (18052/31669)
Updating files:  58% (18369/31669)
Updating files:  59% (18685/31669)
Updating files:  60% (19002/31669)
Updating files:  61% (19319/31669)
Updating files:  62% (19635/31669)
Updating files:  63% (19952/31669)
Updating files:  64% (20269/31669)
Updating files:  65% (20585/31669)
Updating files:  65% (20804/31669)
Updating files:  66% (20902/31669)
Updating files:  67% (21219/31669)
Updating files:  68% (21535/31669)
Updating files:  69% (21852/31669)
Updating files:  70% (22169/31669)
Updating files:  71% (22485/31669)
Updating files:  72% (22802/31669)
Updating files:  73% (23119/31669)
Updating files:  74% (23436/31669)
Updating files:  75% (23752/31669)
Updating files:  76% (24069/31669)
Updating files:  77% (24386/31669)
Updating files:  78% (24702/31669)
Updating files:  79% (25019/31669)
Updating files:  80% (25336/31669)
Updating files:  81% (25652/31669)
Updating files:  82% (25969/31669)
Updating files:  82% (26203/31669)
Updating files:  83% (26286/31669)
Updating files:  84% (26602/31669)
Updating files:  85% (26919/31669)
Updating files:  86% (27236/31669)
Updating files:  87% (27553/31669)
Updating files:  88% (27869/31669)
Updating files:  89% (28186/31669)
Updating files:  90% (28503/31669)
Updating files:  91% (28819/31669)
Updating files:  92% (29136/31669)
Updating files:  93% (29453/31669)
Updating files:  94% (29769/31669)
Updating files:  95% (30086/31669)
Updating files:  96% (30403/31669)
Updating files:  97% (30719/31669)
Updating files:  98% (31036/31669)
Updating files:  99% (31353/31669)
Updating files: 100% (31669/31669)
Updating files: 100% (31669/31669), done.
HEAD is now at f11abb6589 Merge pull request #26180 from mseri/fix-async_ssl
Merge made by the 'ort' strategy.
 .../conf-gmp-powm-sec.4/files/test.c               | 26 ++++++++++++
 .../conf-gmp-powm-sec/conf-gmp-powm-sec.4/opam     | 17 ++++++++
 packages/conf-gmp/conf-gmp.5/files/test.c          | 10 +++++
 packages/conf-gmp/conf-gmp.5/opam                  | 32 +++++++++++++++
 packages/zarith/zarith.1.12-1/opam                 | 47 ++++++++++++++++++++++
 5 files changed, 132 insertions(+)
 create mode 100644 packages/conf-gmp-powm-sec/conf-gmp-powm-sec.4/files/test.c
 create mode 100644 packages/conf-gmp-powm-sec/conf-gmp-powm-sec.4/opam
 create mode 100644 packages/conf-gmp/conf-gmp.5/files/test.c
 create mode 100644 packages/conf-gmp/conf-gmp.5/opam
 create mode 100644 packages/zarith/zarith.1.12-1/opam

(from macos-homebrew-ocaml-4.14)
2024-07-03 07:04.55 ---> using "0c60f117aee57abea8364cb033d47bb1d63ff0f68e5ee97378e032498e8442af" from cache

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

/: (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
2024-07-03 07:04.56 ---> using "f20a31eccb94af52fa2a3ef86b723bc6460bac3d8a92b8861915540c2498d20a" from cache

/: (run (network host)
        (shell "opam init --reinit -ni"))
No configuration file found, using 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 version of opam requires an update to the layout of /Users/mac1000/.opam from version 2.1 to version 2.2~beta, 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 1 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=1 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository
2024-07-03 07:04.56 ---> using "7818e224f85c11d1d318abe9ba4e297be345388b7ed476f912b6900c6bae56aa" from cache

/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 23.4.0
The OCaml toplevel, version 4.14.2
2.2.0~rc1
2024-07-03 07:04.57 ---> using "b68dfff025f7534bf3966778231000a9d9e4e27525baf87e50daaae0b61c1ee7" from cache

/: (env OPAMDOWNLOADJOBS 1)

/: (env OPAMERRLOGLEN 0)

/: (env OPAMSOLVERTIMEOUT 500)

/: (env OPAMPRECISETRACKING 1)

/: (env CI true)

/: (env OPAM_REPO_CI true)

/: (run (shell "rm -rf opam-repository/"))
2024-07-03 07:04.57 ---> using "ecd2ca7a1be0523fbde5899fd3a25c0777d10450da4a95444f5209931f6f01dd" from cache

/: (copy (src .) (dst opam-repository/))
2024-07-03 07:05.19 ---> saved as "a3c098888669e72e75acf6b790c1840dc40b16d7320652b9f37b2355f007ea73"

/: (run (shell "opam repository set-url -k local --strict default opam-repository/"))
[default] Initialised
2024-07-03 07:05.58 ---> saved as "ff020d41be1c83a90834e29c26b7e72cb71a0be5195d2a7696afe041997e0ed6"

/: (run (network host)
        (shell "opam update --depexts || true"))
+ /usr/local/bin/brew "update"
- ==> Updating Homebrew...
- ==> Homebrew collects anonymous analytics.
- Read the analytics documentation (and how to opt-out) here:
-   https://docs.brew.sh/Analytics
- No analytics have been recorded yet (nor will be during this `brew` run).
- 
- ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
-   https://github.com/Homebrew/brew#donations
- 
- Already up-to-date.
2024-07-03 07:06.12 ---> saved as "e4324fcf32713699be8e191c4e6ca4fd44b0bbc15dd423211adb362d965b9131"

/: (run (shell "opam pin add -k version -yn conf-gmp.5 5"))
conf-gmp is now pinned to version 5
2024-07-03 07:06.15 ---> saved as "6448fdc24dbbf20ae173da9a59dd157372868c9b859b10e6a0efb46a9e69a3f2"

/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (network host)
        (shell  "opam reinstall conf-gmp.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 \"\\\"macos-homebrew\\\"\"; then\
               \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
               \n          fi;\
               \n          test \"$pkg\" != 'conf-gmp.5' && partial_fails=\"$partial_fails $pkg\";\
               \n        done;\
               \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
               \n        exit 1"))
conf-gmp.5 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 2 packages
  - install conf-gmp        5 (pinned)
  - install conf-pkg-config 3          [required by conf-gmp]

The following system packages will first need to be installed:
    gmp pkg-config

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

opam believes some required external dependencies are missing. opam can:
> 1. Run brew to install them (may need root/sudo access)
  2. Display the recommended brew 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/local/bin/brew "install" "gmp" "pkg-config"
- ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.3.0
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/70a72a71216843d66a953c06ff6337445ce9bc94fae9f0e301e2f59005274a8e--gmp-6.3.0.bottle_manifest.json
- ==> Fetching gmp
- ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:e8410d92339535174e9f4a5eccc403301b70c7287f2f9a87f064a9aa2e21b54b
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/8d39e3597db85ea2b4532e0057381937ab6ed92a64a1728c68e57bc6b3aeef95--gmp--6.3.0.sonoma.bottle.tar.gz
- ==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/manifests/0.29.2_3
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/ac691fc7ab8ecffba32a837e7197101d271474a3a84cfddcc30c9fd6763ab3c6--pkg-config-0.29.2_3.bottle_manifest.json
- ==> Fetching pkg-config
- ==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/blobs/sha256:421571f340277c62c5cc6fd68737bd7c4e085de113452ea49b33bcd46509bb12
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/c5b6da58fb5d679eeb1765833596e7394625255fb46b165955fc4c4de746080e--pkg-config--0.29.2_3.sonoma.bottle.tar.gz
- ==> Pouring gmp--6.3.0.sonoma.bottle.tar.gz
- 🍺  /usr/local/Cellar/gmp/6.3.0: 22 files, 3.3MB
- ==> Running `brew cleanup gmp`...
- Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
- Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
- ==> Pouring pkg-config--0.29.2_3.sonoma.bottle.tar.gz
- 🍺  /usr/local/Cellar/pkg-config/0.29.2_3: 12 files, 657.9KB
- ==> Running `brew cleanup pkg-config`...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-pkg-config.3
-> installed conf-gmp.5
Done.
# Run eval $(opam env) to update the current shell environment
2024-07-03 07:06.38 ---> saved as "6c21b6d3a21910d0e7658fe8579b6212c884723658b2a489b44be076ac665011"
Job succeeded
2024-07-03 07:06.56: Job succeeded