(for PR #28262)

2025-08-01 10:09.37: New job: build conf-bpftool.0.1.0, using opam 2.1
                              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.1 /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 conf-bpftool.0.1.0 0.1.0
RUN 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.1 /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 conf-bpftool.0.1.0 0.1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "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:02.03: 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.46 ---> using "a56353e8e2c8b5ae15881c831a3c336980d62404ebc962eb5448e8eb12435d97" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2025-08-01 14:02.46 ---> using "ed37b77ab61bad9bed6c411e305d97365657c2aff811fbfafcc2d202593aab89" 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.1, which can't be reverted.
You may want to back it up before going further.

Continue? [Y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-08-01 14:02.46 ---> using "d2210e2b900d84047b5efc5d9686acf8a2360872465ba612318dff57329d550c" 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.1.6 (263921263e1f745613e2882745114b7b08f3608b) 
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=12
# solver               builtin-0install
# install-criteria     
# upgrade-criteria     
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# 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-01 14:02.46 ---> using "2a4d1ca818998b47f2a0e2f890c8424d5c4fb7b7dd431f5f6b2a8491bb2a1c8f" 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.46 ---> using "7adfada8ba5d11040ea4ee6b099313b33b071aaa891e957f62c59fa6898be1e8" from cache

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

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-08-01 14:03.17 ---> saved as "1f891dfb551c7a2c124264bf94a1f5d54ef29138dd808a2674c724e586609019"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/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 (1183 kB/s)
- Reading package lists...
2025-08-01 14:03.18 ---> saved as "3cc9469c87aebfc308bfc8454ab2a8fbcf128ca3ef67b85f19c2c3a8b39615d9"

/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.19 ---> saved as "4d0727bb3cd64b505beaa4795f42be43fa29cb02f2fc3ace6b1fc0adb26e5f12"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "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"))
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*

The following system packages will first need to be installed:
    bpftool

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] y
+ /usr/bin/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) ...

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