(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 opensuse-15.6-ocaml-5.4/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:opensuse-15.6-ocaml-5.4@sha256:46c6e6da67816513b8f535446cdd0092f8b5cb7fedf95ecd1b3cba070bfb1d3e
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 "\"opensuse-15.6\""; 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:opensuse-15.6-ocaml-5.4@sha256:46c6e6da67816513b8f535446cdd0092f8b5cb7fedf95ecd1b3cba070bfb1d3e-lmdb.1.0-42abe0a86f7cded95c96cd2196636ef0bcc58ec7"
2025-12-09 23:30.56: Using OBuilder spec:
((from ocaml/opam:opensuse-15.6-ocaml-5.4@sha256:46c6e6da67816513b8f535446cdd0092f8b5cb7fedf95ecd1b3cba070bfb1d3e)
 (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 \"\\\"opensuse-15.6\\\"\"; 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.34: Waiting for worker…
2025-12-09 23:38.08: Got resource from pool OCluster
Building on clete
All commits already cached
Updating files:  92% (17632/18998)
Updating files:  93% (17669/18998)
Updating files:  94% (17859/18998)
Updating files:  95% (18049/18998)
Updating files:  96% (18239/18998)
Updating files:  97% (18429/18998)
Updating files:  98% (18619/18998)
Updating files:  99% (18809/18998)
Updating files: 100% (18998/18998)
Updating files: 100% (18998/18998), done.
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:opensuse-15.6-ocaml-5.4@sha256:46c6e6da67816513b8f535446cdd0092f8b5cb7fedf95ecd1b3cba070bfb1d3e)
2025-12-09 23:38.34 ---> saved as "54349fe7f8ed4339be991dd88b5e37cb5477ed34f3b8a57062b36631f728731a"

/: (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:38.35 ---> saved as "c81c4a7b477d846e6d9cc210adfe4df4a21740c02931cb1b6436c3c20864774b"

/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:39.08 ---> saved as "61c7a0667998f3a821fa18524a16af85ba696fc8e52f9df50b5e32d6f0f5aee2"

/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=opensuse-leap os-version=15.6
# 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       5.4
# invariant            ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2025-12-09 23:39.09 ---> saved as "7ece361d76d664e45ccd199e1fe1c939e7412b24de343f8fe28312fa7c1b06bb"

/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:39.21 ---> saved as "81c98812d65557c1a3e3bd78c7f571ccca318d409d71e0d1c0fa5d0d4c088d58"

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Retrieving repository 'Update repository of openSUSE Backports' metadata [..
- Looking for gpg keys in repository Update repository of openSUSE Backports.
-   gpgkey=http://download.opensuse.org/update/leap/15.6/backports/repodata/repomd.xml.key
- ...
- .....
- ....
- ......
- ........done]
- Building repository 'Update repository of openSUSE Backports' cache [..
- ..done]
- Retrieving repository 'Update repository with updates from SUSE Linux Enterprise 15' metadata [..
- Looking for gpg keys in repository Update repository with updates from SUSE Linux Enterprise 15.
-   gpgkey=http://download.opensuse.org/update/leap/15.6/sle/repodata/repomd.xml.key
- .....
- ....
- ....
- .........
- .........
- ..........
- ..........
- ..........
- ..........
- .........
- .........done]
- Building repository 'Update repository with updates from SUSE Linux Enterprise 15' cache [..
- ..done]
- Repository 'Main Update Repository' is up to date.
- Repository 'Update Repository (Non-Oss)' is up to date.
- Repository 'Non-OSS Repository' is up to date.
- Repository 'Main Repository' is up to date.
- All repositories have been refreshed.
2025-12-09 23:40.57 ---> saved as "23cb78902fe31b3bcea24495119d50720a03b5d2801e515e546c1dc09927153e"

/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:40.58 ---> saved as "fd71f0904cfca3ce65e07dc922bad631b33cf34065d1298cbfce40409d047210"

/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 \"\\\"opensuse-15.6\\\"\"; 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 zypper to install them (may need root/sudo access)
  2. Display the recommended zypper 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 "zypper" "--non-interactive" "install" "lmdb-devel"
- Loading repository data...
- Reading installed packages...
- Resolving package dependencies...
- 
- The following 2 NEW packages are going to be installed:
-   liblmdb-0_9_30 lmdb-devel
- 
- 2 new packages to install.
- 
- Package download size:    89.6 KiB
- 
- Package install size change:
-               |     158.5 KiB  required by packages that will be installed
-    158.5 KiB  |  -      0 B    released by packages that will be removed
- 
- Backend:  classic_rpmtrans
- Continue? [y/n/v/...? shows all options] (y): y
- Retrieving: liblmdb-0_9_30-0.9.30-150500.3.2.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15) (1/2),  56.1 KiB    
- Retrieving: liblmdb-0_9_30-0.9.30-150500.3.2.1.x86_64.rpm [.....
- ....
- ....
- .not found]
- Retrieving: liblmdb-0_9_30-0.9.30-150500.3.2.1.x86_64.rpm [.not found]
- Retrieving: liblmdb-0_9_30-0.9.30-150500.3.2.1.x86_64.rpm [..done (42.2 KiB/s)]
- Retrieving: lmdb-devel-0.9.30-150500.3.2.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15) (2/2),  33.5 KiB    
- Retrieving: lmdb-devel-0.9.30-150500.3.2.1.x86_64.rpm [.not found]
- Retrieving: lmdb-devel-0.9.30-150500.3.2.1.x86_64.rpm [.not found]
- Retrieving: lmdb-devel-0.9.30-150500.3.2.1.x86_64.rpm [.done]
- 
- Checking for file conflicts: [..done]
- (1/2) Installing: liblmdb-0_9_30-0.9.30-150500.3.2.1.x86_64 [..done]
- (2/2) Installing: lmdb-devel-0.9.30-150500.3.2.1.x86_64 [..done]

<><> 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:41.51 ---> saved as "b0b86496988469c56507c3d6f21011d07ff9549707cf8e8c1e705b63b6844081"
Job succeeded
2025-12-09 23:42.01: Job succeeded