(for PR #28931)

2025-11-20 12:12.55: New job: build lmdb.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28931/head (42572bec27fac3424f6dd5330fa72d5c4d17b92d)
                              on fedora-43-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/28931/head" && git reset --hard 42572bec
git fetch origin master
git merge --no-edit 2a5ab3fbccdfdb06d413c48cfe1c129758b3a413
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-43-ocaml-4.14@sha256:c2538b668bdb09c388cf33a32421565b093bd76bff7bd1f20d16f9cf30f87bf8
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 "\"fedora-43\""; 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-11-20 12:12.55: Using cache hint "ocaml/opam:fedora-43-ocaml-4.14@sha256:c2538b668bdb09c388cf33a32421565b093bd76bff7bd1f20d16f9cf30f87bf8-lmdb.1.0-42572bec27fac3424f6dd5330fa72d5c4d17b92d"
2025-11-20 12:12.55: Using OBuilder spec:
((from ocaml/opam:fedora-43-ocaml-4.14@sha256:c2538b668bdb09c388cf33a32421565b093bd76bff7bd1f20d16f9cf30f87bf8)
 (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 \"\\\"fedora-43\\\"\"; 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-11-20 12:12.55: Waiting for resource in pool OCluster
2025-11-20 12:12.55: Waiting for worker…
2025-11-20 12:12.56: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at 2a5ab3fbcc Merge pull request #28924 from hannesm/release-ca-certs-nss-v3.118
Merge made by the 'ort' strategy.
 packages/lmdb/lmdb.1.0/opam | 2 ++
 1 file changed, 2 insertions(+)

(from ocaml/opam:fedora-43-ocaml-4.14@sha256:c2538b668bdb09c388cf33a32421565b093bd76bff7bd1f20d16f9cf30f87bf8)
Unable to find image 'ocaml/opam:fedora-43-ocaml-4.14@sha256:c2538b668bdb09c388cf33a32421565b093bd76bff7bd1f20d16f9cf30f87bf8' locally
docker.io/ocaml/opam@sha256:c2538b668bdb09c388cf33a32421565b093bd76bff7bd1f20d16f9cf30f87bf8: Pulling from ocaml/opam
3a6ccf50917d: Already exists
2ac39db0f7b1: Already exists
4ab95fa37585: Already exists
ef05642a6c19: Already exists
6ce4105a6817: Already exists
482e731bee2c: Already exists
82b20b1785fc: Already exists
5033efba3ea4: Already exists
ac061f34d5de: Already exists
3699d934db19: Already exists
c70084606501: Already exists
92cba88bcd96: Already exists
87d6cf018c95: Already exists
47a5774c8fa4: Already exists
a7a793f430ef: Already exists
50749af763e4: Already exists
1931ff52ea8f: Already exists
d6cbdb0b2976: Already exists
c21f3fb8010b: Already exists
006e8a0d5bfe: Already exists
4f4fb700ef54: Already exists
bff3cbb02176: Already exists
b5138c38b1e4: Already exists
f9df0a6b27ec: Already exists
199f7dd22bb1: Already exists
4704820b8848: Already exists
813e8e89161a: Already exists
3fef5dd9f9c7: Already exists
33b83451bd83: Already exists
f32a57644710: Already exists
40216abfd9f1: Already exists
d689b2a1b34b: Already exists
c515a0f2353f: Already exists
6b7f7c537f40: Pulling fs layer
2def47abdae6: Pulling fs layer
fd11b9527539: Pulling fs layer
b49b2a2f9119: Pulling fs layer
23b9806e7d7a: Pulling fs layer
251f6be3be0f: Pulling fs layer
fd11b9527539: Download complete
2def47abdae6: Download complete
b49b2a2f9119: Download complete
23b9806e7d7a: Download complete
7da16a6d9e8c: Pulling fs layer
251f6be3be0f: Download complete
7a4136c504bf: Pulling fs layer
e19c7fce326a: Pulling fs layer
418b2b7b43fc: Pulling fs layer
418b2b7b43fc: Waiting
7a4136c504bf: Download complete
418b2b7b43fc: Download complete
e19c7fce326a: Download complete
6b7f7c537f40: Pull complete
2def47abdae6: Pull complete
7da16a6d9e8c: Verifying Checksum
7da16a6d9e8c: Download complete
fd11b9527539: Pull complete
b49b2a2f9119: Pull complete
23b9806e7d7a: Pull complete
251f6be3be0f: Pull complete
7da16a6d9e8c: Pull complete
7a4136c504bf: Pull complete
e19c7fce326a: Pull complete
418b2b7b43fc: Pull complete
Digest: sha256:c2538b668bdb09c388cf33a32421565b093bd76bff7bd1f20d16f9cf30f87bf8
Status: Downloaded newer image for ocaml/opam@sha256:c2538b668bdb09c388cf33a32421565b093bd76bff7bd1f20d16f9cf30f87bf8
2025-11-20 12:13.30 ---> using "a51b0f106be4690b07e60d24f33e1310d1d782df2a7400a06464f0e0b48528b1" 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-11-20 12:13.30 ---> using "887c38cf2ea82918b27e1f83c28406a3b1220d7d4af51975406e66115a47b006" 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
[NOTE] The 'jobs' option was reset, its value was 71 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=71 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-11-20 12:13.30 ---> using "be6b5e0778d930c5978d376e588c3ec62224a40d41a1a10b75bb005ccb7a9d8f" 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~beta1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=fedora os-version=43
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "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       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-11-20 12:13.30 ---> using "c99e33906c0618eff89f7c370add69fb0f98f88f34698de395db203cb85672b3" 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-11-20 12:13.30 ---> using "e0bda84d87b07d92aed767bd80c6f7bee777d6c64c0f3e52ef9b13e3b60e105e" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-11-20 12:13.41 ---> saved as "a81bf706fd70b93a50773198f4cd65fd5c98f01d5ff83cc70b691edb9e954437"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-11-20 12:14.00 ---> saved as "069645b25addf0ecd5bf8dd94c3fb72960c5bd35198561dab664aba4c5cb8e38"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 43 - x86_64 - Updates           100% | 157.9 KiB/s |  23.0 KiB |  00m00s
- Repositories loaded.
- Metadata cache created.
2025-11-20 12:14.01 ---> saved as "fd0fe847f83b6ac8481b254906f6f7089d68d0a129f1166c84d066c7402168be"

/home/opam: (run (shell "opam pin add -k version -yn lmdb.1.0 1.0"))
lmdb is now pinned to version 1.0
2025-11-20 12:14.02 ---> saved as "9b049557ba7e1e611affff72e8d5d00a2cf48f0a592dcff045c725d8bb06fc47"

/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 \"\\\"fedora-43\\\"\"; 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:
    lmdb-devel

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

opam believes some required external dependencies are missing. opam can:
> 1. Run yum to install them (may need root/sudo access)
  2. Display the recommended yum 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/sbin/sudo "yum" "install" "-y" "lmdb-devel"
- Updating and loading repositories:
- Repositories loaded.
- Package     Arch   Version       Repository      Size
- Installing:
-  lmdb-devel x86_64 0.9.33-4.fc43 fedora      72.5 KiB
- Installing dependencies:
-  lmdb       x86_64 0.9.33-4.fc43 fedora      74.0 KiB
-  lmdb-libs  x86_64 0.9.33-4.fc43 fedora     105.4 KiB
- 
- Transaction Summary:
-  Installing:         3 packages
- 
- Total size of inbound packages is 118 KiB. Need to download 118 KiB.
- After this operation, 252 KiB extra will be used (install 252 KiB, remove 0 B).
- [1/3] lmdb-0:0.9.33-4.fc43.x86_64       100% | 707.0 KiB/s |  31.1 KiB |  00m00s
- [2/3] lmdb-devel-0:0.9.33-4.fc43.x86_64 100% | 486.8 KiB/s |  25.3 KiB |  00m00s
- [3/3] lmdb-libs-0:0.9.33-4.fc43.x86_64  100% |   1.1 MiB/s |  61.5 KiB |  00m00s
- --------------------------------------------------------------------------------
- [3/3] Total                             100% | 569.5 KiB/s | 117.9 KiB |  00m00s
- Running transaction
- [1/5] Verify package files              100% |   0.0   B/s |   3.0   B |  00m00s
- [2/5] Prepare transaction               100% | 103.0   B/s |   3.0   B |  00m00s
- [3/5] Installing lmdb-libs-0:0.9.33-4.f 100% |  52.2 MiB/s | 106.8 KiB |  00m00s
- [4/5] Installing lmdb-0:0.9.33-4.fc43.x 100% |   4.4 MiB/s |  76.6 KiB |  00m00s
- [5/5] Installing lmdb-devel-0:0.9.33-4. 100% |   1.8 MiB/s |  73.0 KiB |  00m00s
- Complete!
+ /usr/sbin/rpm "-q" "--whatprovides" "lmdb-devel"
- lmdb-devel-0.9.33-4.fc43.x86_64

<><> 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-11-20 12:14.32 ---> saved as "668d4a71035823d9c0e57c0d67abfe3e30efbc59bb39c3f8cf696a9fc5cad7cc"
Job succeeded
2025-11-20 12:14.37: Job succeeded