(for PR #28262)

2025-08-01 10:09.37: New job: build conf-bpftool.0.1.0, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28262/head (27b93b8d254212c1249540d74f600850023faef7)
                              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/28262/head" && git reset --hard 27b93b8d
git fetch origin master
git merge --no-edit 8aad5f26860255f60c9aa23b310ac61aef78f1c8
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:0ab63be2626406d74dcc5d5b086d3a5f5ab5ffdada73582b04f29cf7305b91d3
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 conf-bpftool.0.1.0 0.1.0
RUN opam depext conf-bpftool.0.1.0 && opam reinstall conf-bpftool.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 "\"debian-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-bpftool.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 "ocaml/opam:debian-12-ocaml-4.14@sha256:0ab63be2626406d74dcc5d5b086d3a5f5ab5ffdada73582b04f29cf7305b91d3-conf-bpftool.0.1.0-27b93b8d254212c1249540d74f600850023faef7"
2025-08-01 10:09.37: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:0ab63be2626406d74dcc5d5b086d3a5f5ab5ffdada73582b04f29cf7305b91d3)
 (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 conf-bpftool.0.1.0 0.1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext conf-bpftool.0.1.0 && opam reinstall conf-bpftool.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 \"\\\"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\" != 'conf-bpftool.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 14:00.25: Waiting for worker…
2025-08-01 14:01.56: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
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 ocaml/opam:debian-12-ocaml-4.14@sha256:0ab63be2626406d74dcc5d5b086d3a5f5ab5ffdada73582b04f29cf7305b91d3)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:0ab63be2626406d74dcc5d5b086d3a5f5ab5ffdada73582b04f29cf7305b91d3' locally
docker.io/ocaml/opam@sha256:0ab63be2626406d74dcc5d5b086d3a5f5ab5ffdada73582b04f29cf7305b91d3: Pulling from ocaml/opam
e34307a3f3e4: Already exists
763d83557864: Pulling fs layer
77161c4413dd: Pulling fs layer
b2b87fe3932b: Pulling fs layer
bbcd8cfdbd0a: Pulling fs layer
77161c4413dd: Verifying Checksum
77161c4413dd: Download complete
b2b87fe3932b: Verifying Checksum
b2b87fe3932b: Download complete
bbcd8cfdbd0a: Verifying Checksum
bbcd8cfdbd0a: Download complete
763d83557864: Verifying Checksum
763d83557864: Download complete
763d83557864: Pull complete
77161c4413dd: Pull complete
b2b87fe3932b: Pull complete
bbcd8cfdbd0a: Pull complete
Digest: sha256:0ab63be2626406d74dcc5d5b086d3a5f5ab5ffdada73582b04f29cf7305b91d3
Status: Downloaded newer image for ocaml/opam@sha256:0ab63be2626406d74dcc5d5b086d3a5f5ab5ffdada73582b04f29cf7305b91d3
2025-08-01 14:02.39 ---> using "a56353e8e2c8b5ae15881c831a3c336980d62404ebc962eb5448e8eb12435d97" 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-08-01 14:02.39 ---> using "d6d2ad043e165dd7d47fa089dfac896376e03b1dc0d3999b2589f020b33704e9" from cache

/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-08-01 14:02.39 ---> using "5c79f2c21d24f8b0456b8973dbf4866deef94a0ecdbc5f2246151288d76ba21e" from cache

/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              71
# repositories      1 (version-controlled)
# pinned            1 (version)
# current-switch    4.14
2025-08-01 14:02.39 ---> using "2808f8944e4c223293398afd64a02465d552286c654a4bafee875144eb2abc78" 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-01 14:02.39 ---> using "1aa8f079f031b24a1efaa58789a2d45e78304c5cb968a3b5693b392f18bc6cb9" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-08-01 14:02.49 ---> saved as "fdb522e326a3645fd693be7398be71af0666820ba0b75479538bf2f3cd280a2a"

/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-08-01 14:03.01 ---> saved as "3abf719f2fb09af51eae3bfa617dca98da28a27b6a66309563f951a2ec29a706"

/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 bookworm-updates/main amd64 Packages.diff/Index [19.6 kB]
Ign:4 http://deb.debian.org/debian bookworm-updates/main amd64 Packages.diff/Index
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [6916 B]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [272 kB]
Fetched 402 kB in 0s (1222 kB/s)
Reading package lists...
# OS package update successful
2025-08-01 14:03.02 ---> saved as "cd1ce355e2bca312c82210e14fab0430f8c32616d209f1b6294541fa5cb9c0de"

/home/opam: (run (shell "opam pin add -k version -yn conf-bpftool.0.1.0 0.1.0"))
conf-bpftool is now pinned to version 0.1.0
2025-08-01 14:03.03 ---> saved as "333124509ff8d30028b5a8ae852e09e8efa03c2d41ae6b859b841ecaddb9ccc5"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext conf-bpftool.0.1.0 && opam reinstall conf-bpftool.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 \"\\\"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\" != 'conf-bpftool.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"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# The following system packages are needed:
bpftool
The following command needs to be run through "sudo":
    apt-get install -qq -yy bpftool
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libelf1: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 ... 18747 files and directories currently installed.)
Preparing to unpack .../libelf1_0.188-2.1_amd64.deb ...
Unpacking libelf1:amd64 (0.188-2.1) ...
Selecting previously unselected package bpftool.
Preparing to unpack .../bpftool_7.1.0+6.1.140-1_amd64.deb ...
Unpacking bpftool (7.1.0+6.1.140-1) ...
Setting up libelf1:amd64 (0.188-2.1) ...
Setting up bpftool (7.1.0+6.1.140-1) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
# OS packages installation successful
conf-bpftool.0.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install conf-bpftool 0.1.0*

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-bpftool.0.1.0
Done.
# Run eval $(opam env) to update the current shell environment
2025-08-01 14:03.12 ---> saved as "2062ab8095f9f18354050e06a802df5b025289c221d382e2cf7a31a0a83fe677"
Job succeeded
2025-08-01 14:03.25: Job succeeded