(for PR #28262)

2025-08-01 10:09.37: New job: build libbpf.0.1.0, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28262/head (27b93b8d254212c1249540d74f600850023faef7)
                              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/28262/head" && git reset --hard 27b93b8d
git fetch origin master
git merge --no-edit 8aad5f26860255f60c9aa23b310ac61aef78f1c8
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-4.14
USER 1000:1000
RUN ln -f ~/local/bin/opam-2.3 ~/local/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 -k local --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn libbpf.0.1.0 0.1.0
RUN opam reinstall libbpf.0.1.0; \
    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" != 'libbpf.0.1.0' && 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-01 10:09.37: Using cache hint "macos-homebrew-ocaml-4.14-libbpf.0.1.0-27b93b8d254212c1249540d74f600850023faef7"
2025-08-01 10:09.37: Using OBuilder spec:
((from macos-homebrew-ocaml-4.14)
 (user (uid 1000) (gid 1000))
 (run (shell "ln -f ~/local/bin/opam-2.3 ~/local/bin/opam"))
 (run (network host)
      (shell "opam init --reinit -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 -k local --strict default opam-repository/"))
 (run (network host)
      (shell "opam update --depexts || true"))
 (run (shell "opam pin add -k version -yn libbpf.0.1.0 0.1.0"))
 (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (network host)
      (shell  "opam reinstall libbpf.0.1.0;\
             \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\" != 'libbpf.0.1.0' && 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-01 10:09.37: Waiting for resource in pool OCluster
2025-08-01 10:09.37: Waiting for worker…
2025-08-01 10:20.39: Got resource from pool OCluster
Building on i7-worker-04
Updating files:  36% (6471/17949)
Updating files:  37% (6642/17949)
Updating files:  38% (6821/17949)
Updating files:  39% (7001/17949)
Updating files:  40% (7180/17949)
Updating files:  41% (7360/17949)
Updating files:  42% (7539/17949)
Updating files:  43% (7719/17949)
Updating files:  44% (7898/17949)
Updating files:  45% (8078/17949)
Updating files:  46% (8257/17949)
Updating files:  47% (8437/17949)
Updating files:  48% (8616/17949)
Updating files:  49% (8796/17949)
Updating files:  50% (8975/17949)
Updating files:  51% (9154/17949)
Updating files:  52% (9334/17949)
Updating files:  53% (9513/17949)
Updating files:  54% (9693/17949)
Updating files:  55% (9872/17949)
Updating files:  56% (10052/17949)
Updating files:  57% (10231/17949)
Updating files:  58% (10411/17949)
Updating files:  59% (10590/17949)
Updating files:  60% (10770/17949)
Updating files:  61% (10949/17949)
Updating files:  62% (11129/17949)
Updating files:  63% (11308/17949)
Updating files:  64% (11488/17949)
Updating files:  65% (11667/17949)
Updating files:  65% (11704/17949)
Updating files:  66% (11847/17949)
Updating files:  67% (12026/17949)
Updating files:  68% (12206/17949)
Updating files:  69% (12385/17949)
Updating files:  70% (12565/17949)
Updating files:  71% (12744/17949)
Updating files:  72% (12924/17949)
Updating files:  73% (13103/17949)
Updating files:  74% (13283/17949)
Updating files:  75% (13462/17949)
Updating files:  76% (13642/17949)
Updating files:  77% (13821/17949)
Updating files:  78% (14001/17949)
Updating files:  79% (14180/17949)
Updating files:  80% (14360/17949)
Updating files:  81% (14539/17949)
Updating files:  82% (14719/17949)
Updating files:  83% (14898/17949)
Updating files:  84% (15078/17949)
Updating files:  85% (15257/17949)
Updating files:  86% (15437/17949)
Updating files:  87% (15616/17949)
Updating files:  88% (15796/17949)
Updating files:  89% (15975/17949)
Updating files:  90% (16155/17949)
Updating files:  91% (16334/17949)
Updating files:  92% (16514/17949)
Updating files:  93% (16693/17949)
Updating files:  94% (16873/17949)
Updating files:  95% (17052/17949)
Updating files:  96% (17232/17949)
Updating files:  97% (17411/17949)
Updating files:  98% (17591/17949)
Updating files:  99% (17770/17949)
Updating files:  99% (17894/17949)
Updating files: 100% (17949/17949)
Updating files: 100% (17949/17949), done.
HEAD is now at b84e13e209 [new release] dns (13 packages) (10.2.0)
HEAD is now at 8aad5f2686 Merge pull request #28272 from ocaml/mseri-patch-1
Merge made by the 'ort' strategy.
 packages/conf-bpftool/conf-bpftool.0.1.0/opam |  4 +++-
 packages/libbpf/libbpf.0.1.0/opam             | 11 ++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

(from macos-homebrew-ocaml-4.14)
2025-08-01 10:20.55 ---> using "0c60f117aee57abea8364cb033d47bb1d63ff0f68e5ee97378e032498e8442af" from cache

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

/: (run (shell "ln -f ~/local/bin/opam-2.3 ~/local/bin/opam"))
2025-08-01 10:20.56 ---> using "133faf6477bb7d579f4909c1f9ea81a7b33e8728123c32f7ba0f1532c2d3d002" 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, 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
2025-08-01 10:20.56 ---> using "ef3d87c6398c801c10cf5a6d93f8ba7a7aca8d0c6db9fa9fa49b79f0f9e94e2e" from cache

/: (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
# self-upgrade         no
# system               arch=x86_64 os=macos os-distribution=homebrew os-version=15.5
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 11
# repositories         1 (version-controlled)
# pinned               0
# current-switch       4.14.2
# invariant            ["ocaml-base-compiler" {= "4.14.2"} | "ocaml-system" {= "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       /Users/mac1000/.opam/4.14.2/lib/ocaml/stublibs:/Users/mac1000/.opam/4.14.2/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-08-01 10:20.56 ---> using "ac863649c8b1638b67aad7aed774fd3a3fe5d0b0e5eb7991274454937cf65d01" from cache

/: (env OPAMDOWNLOADJOBS 1)

/: (env OPAMERRLOGLEN 0)

/: (env OPAMPRECISETRACKING 1)

/: (env CI true)

/: (env OPAM_REPO_CI true)

/: (run (shell "rm -rf opam-repository/"))
2025-08-01 10:20.57 ---> using "5431cbcc658e0d18f1e86a42b7295d7baef82e74db465ab87f8a15ba49194dde" from cache

/: (copy (src .) (dst opam-repository/))
2025-08-01 10:21.06 ---> saved as "680205ee0e21d9044ac91a2140adfcb93287a44a3e1cc226f15fdb421a25e6b0"

/: (run (shell "opam repository set-url -k local --strict default opam-repository/"))
[default] Initialised
2025-08-01 10:21.26 ---> saved as "63f53e5af845f0b82009af16c8f31a7be66cf99dd4aa2b12c665f7954b57e1e9"

/: (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.
2025-08-01 10:21.40 ---> saved as "3e58a1d64dd321cf6a35a1803ddcf17ceb6041f7c2a92f4cef834502b066f339"

/: (run (shell "opam pin add -k version -yn libbpf.0.1.0 0.1.0"))
libbpf is now pinned to version 0.1.0
2025-08-01 10:21.42 ---> saved as "4ec17a2c7b62f6961478929adb37d704b60590f83e601ca178a166f06dadb148"

/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (network host)
        (shell  "opam reinstall libbpf.0.1.0;\
               \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\" != 'libbpf.0.1.0' && partial_fails=\"$partial_fails $pkg\";\
               \n        done;\
               \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
               \n        exit 1"))
[ERROR] libbpf = 0.1.0: unmet availability conditions: 'os = "linux" & (os-distribution = "debian" & os-version >= "12" | os-distribution = "ubuntu" & os-version >= "23.04" | os-family = "fedora" & os-version >= "38" | os-distribution = "nixos" & os-version >= "23.05" | os-distribution = "alpine" & os-version >= "3.18")'
"/usr/bin/env" "bash" "-c" "opam reinstall libbpf.0.1.0;
        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" != 'libbpf.0.1.0' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 5
2025-08-01 10:22.03: Job failed: Failed: Build failed
2025-08-01 10:22.03: Log analysis:
2025-08-01 10:22.03: >>> 
[ERROR] libbpf = 0.1.0: unmet availability conditions: 'os = "linux" & (os-distribution = "debian" & os-version >= "12" | os-distribution = "ubuntu" & os-version >= "23.04" | os-family = "fedora" & os-version >= "38" | os-distribution = "nixos" & os-version >= "23.05" | os-distribution = "alpine" & os-version >= "3.18")'
 (score = 100)
2025-08-01 10:22.03: [SKIP] Package not available