(for PR #28931)

2025-12-09 23:30.56: New job: build lmdb.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28931/head (42abe0a86f7cded95c96cd2196636ef0bcc58ec7)
                              on debian-13-ocaml-4.13/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/28931/head" && git reset --hard 42abe0a8
git fetch origin master
git merge --no-edit d684c896eb6f7e6030d6ee65338d9db22a612f01
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-4.13@sha256:63cea2466e359a0432edc1f80012b85d0c0e7b79847b2e5f8ddf4a95793315d6
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /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 lmdb.1.0 1.0
RUN opam reinstall lmdb.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-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'lmdb.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-12-09 23:30.56: Using cache hint "ocaml/opam:debian-13-ocaml-4.13@sha256:63cea2466e359a0432edc1f80012b85d0c0e7b79847b2e5f8ddf4a95793315d6-lmdb.1.0-42abe0a86f7cded95c96cd2196636ef0bcc58ec7"
2025-12-09 23:30.56: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.13@sha256:63cea2466e359a0432edc1f80012b85d0c0e7b79847b2e5f8ddf4a95793315d6)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-dev /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 lmdb.1.0 1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall lmdb.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-13\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'lmdb.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-12-09 23:30.56: Waiting for resource in pool OCluster
2025-12-09 23:34.09: Waiting for worker…
2025-12-09 23:37.43: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
HEAD is now at d684c896eb Merge pull request #29052 from balat/maintenance
Auto-merging packages/lmdb/lmdb.1.0/opam
Merge made by the 'ort' strategy.
 packages/lmdb/lmdb.1.0/opam | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(from ocaml/opam:debian-13-ocaml-4.13@sha256:63cea2466e359a0432edc1f80012b85d0c0e7b79847b2e5f8ddf4a95793315d6)
Unable to find image 'ocaml/opam:debian-13-ocaml-4.13@sha256:63cea2466e359a0432edc1f80012b85d0c0e7b79847b2e5f8ddf4a95793315d6' locally
docker.io/ocaml/opam@sha256:63cea2466e359a0432edc1f80012b85d0c0e7b79847b2e5f8ddf4a95793315d6: Pulling from ocaml/opam
53c88f1dfeb7: Already exists
268d44a12236: Already exists
f2f36c7402e3: Already exists
9eb2778f421b: Already exists
3ca35f1ec5ed: Already exists
b08866568793: Already exists
fb0d17ce08c9: Already exists
c8db2c4fd670: Already exists
5fa8cfe8f9cb: Already exists
e7f5f7180a56: Already exists
9f66154be4d4: Already exists
f6674de6e5d4: Already exists
80eb63632584: Already exists
66f55aa69346: Already exists
d121bc397a1a: Already exists
0eff100405dd: Already exists
7d67d217736c: Already exists
ac7107dc3d00: Already exists
f01a17be3cef: Already exists
30a38827b55c: Already exists
085733096c8e: Already exists
86db5d63aa02: Already exists
4f4fb700ef54: Already exists
034a62edceac: Already exists
808c1ae36c95: Already exists
eba808bca592: Already exists
68b2bb6a330b: Already exists
9fee74853ab2: Already exists
00d667d2b4f9: Already exists
cde2288b7be2: Already exists
6e6039e741bd: Already exists
08dc627d7129: Already exists
fbbf04bee28a: Already exists
cf124fccb693: Already exists
16001ee30892: Already exists
a379ebcf721f: Already exists
c05951b4b1dd: Already exists
1238fc26ec9b: Already exists
33d5b2862e74: Already exists
6a5c5f5e740e: Already exists
f97083767ae6: Already exists
5e429e8bb369: Pulling fs layer
2976aba7d8cf: Pulling fs layer
226299ff4103: Pulling fs layer
ac79a48e25cd: Pulling fs layer
ac79a48e25cd: Waiting
226299ff4103: Verifying Checksum
226299ff4103: Download complete
ac79a48e25cd: Download complete
2976aba7d8cf: Download complete
5e429e8bb369: Verifying Checksum
5e429e8bb369: Download complete
5e429e8bb369: Pull complete
2976aba7d8cf: Pull complete
226299ff4103: Pull complete
ac79a48e25cd: Pull complete
Digest: sha256:63cea2466e359a0432edc1f80012b85d0c0e7b79847b2e5f8ddf4a95793315d6
Status: Downloaded newer image for ocaml/opam@sha256:63cea2466e359a0432edc1f80012b85d0c0e7b79847b2e5f8ddf4a95793315d6
2025-12-09 23:37.51 ---> using "a428d3c6b9cef091d6ca98717ee1dcded9a204f015bd8d34522d9905b3810cfa" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-12-09 23:37.51 ---> using "645e69192684aa44c63e8a30c79da3d46c9e8566c5cf454047ab99b909ce3ab3" 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 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
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-12-09 23:37.51 ---> using "9279dcae0a1f132acc948e7727ddf5d133fb6331ac66923f080785a5af0388a3" 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.5.0
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=13
# 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.13
# invariant            ["ocaml-base-compiler" {= "4.13.1"}]
# compiler-packages    ocaml-base-compiler.4.13.1, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.13/lib/ocaml/stublibs:/home/opam/.opam/4.13/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.13.1
2025-12-09 23:37.51 ---> using "8246bf9bd75261c7d9583806146a8b3ba01d62ea489018b322c7b25272a301d4" 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-12-09 23:37.51 ---> using "bd360a213820ea1795fb3546ecbd84a7bfd7efa9091a7464a5c2246d2715db0a" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-12-09 23:38.03 ---> saved as "cc04851b0f45fb6a4a81604852cde1e6c3581b69eed495e6412e89fd6f0ab062"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-12-09 23:38.24 ---> saved as "b9faa505c1f42bc0d8f7a7e7e63fd6bac5eb1d2f89fbd0ee2bb15a49a3f58529"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian trixie InRelease
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [81.7 kB]
- Fetched 172 kB in 0s (1280 kB/s)
- Reading package lists...
- 
2025-12-09 23:38.26 ---> saved as "74d8daa8294600949d7c3f0ab74e4edf22e5675514bdc51fda8f124eb3c293a7"

/home/opam: (run (shell "opam pin add -k version -yn lmdb.1.0 1.0"))
lmdb is now pinned to version 1.0
2025-12-09 23:38.27 ---> saved as "26587b79f04c7789059b174fa6a1643b9d57530c89c69f28b0f7aafc30bb6769"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall lmdb.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-13\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'lmdb.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"))
lmdb.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 6 packages
  - install bigstringaf       0.10.0       [required by lmdb]
  - install conf-pkg-config   4            [required by lmdb]
  - install csexp             1.5.2        [required by dune-configurator]
  - install dune              3.20.2       [required by lmdb]
  - install dune-configurator 3.20.2       [required by lmdb]
  - install lmdb              1.0 (pinned)

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

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

opam believes some required external dependencies are missing. opam can:
> 1. Run apt-get to install them (may need root/sudo access)
  2. Display the recommended apt-get 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 "apt-get" "install" "-qq" "-yy" "liblmdb-dev" "pkg-config"
- Selecting previously unselected package liblmdb0: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 ... 20622 files and directories currently installed.)
- Preparing to unpack .../0-liblmdb0_0.9.31-1+b2_amd64.deb ...
- Unpacking liblmdb0:amd64 (0.9.31-1+b2) ...
- Selecting previously unselected package liblmdb-dev:amd64.
- Preparing to unpack .../1-liblmdb-dev_0.9.31-1+b2_amd64.deb ...
- Unpacking liblmdb-dev:amd64 (0.9.31-1+b2) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../2-libpkgconf3_1.8.1-4_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-4) ...
- Selecting previously unselected package lmdb-doc.
- Preparing to unpack .../3-lmdb-doc_0.9.31-1_all.deb ...
- Unpacking lmdb-doc (0.9.31-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../4-pkgconf-bin_1.8.1-4_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-4) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../5-pkgconf_1.8.1-4_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-4) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../6-pkg-config_1.8.1-4_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-4) ...
- Setting up liblmdb0:amd64 (0.9.31-1+b2) ...
- Setting up lmdb-doc (0.9.31-1) ...
- Setting up libpkgconf3:amd64 (1.8.1-4) ...
- Setting up pkgconf-bin (1.8.1-4) ...
- Setting up liblmdb-dev:amd64 (0.9.31-1+b2) ...
- Setting up pkgconf:amd64 (1.8.1-4) ...
- Setting up pkg-config:amd64 (1.8.1-4) ...
- Processing triggers for libc-bin (2.41-12) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigstringaf.0.10.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-pkg-config.4
-> retrieved dune.3.20.2, dune-configurator.3.20.2  (cached)
-> retrieved lmdb.1.0  (cached)
-> installed dune.3.20.2
-> installed csexp.1.5.2
-> installed dune-configurator.3.20.2
-> installed bigstringaf.0.10.0
-> installed lmdb.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-12-09 23:39.14 ---> saved as "89a774f8c6a5691dd92a2bbff4e1163568868689c1da2b99d930ba510bc9352d"
Job succeeded
2025-12-09 23:39.31: Job succeeded