(for PR #29368)

2026-02-10 15:24.05: New job: build mirage-crypto-rng-miou-unix.2.0.3, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29368/head (66e177c9ccf11298b53a7c2c24dada57dd487d9b)
                              on debian-13-ocaml-4.14/arm64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/29368/head" && git reset --hard 66e177c9
git fetch origin master
git merge --no-edit f4c12add9cacd610d7ec6cc9fcb057902ca0a0f6
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-4.14@sha256:a47688f873802e31de4ce2eaab316dec8c257971b7d8240f3dc6f52f49826c9e
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 mirage-crypto-rng-miou-unix.2.0.3 2.0.3
RUN opam reinstall mirage-crypto-rng-miou-unix.2.0.3; \
    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" != 'mirage-crypto-rng-miou-unix.2.0.3' && 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 .

2026-02-10 15:24.05: Using cache hint "ocaml/opam:debian-13-ocaml-4.14@sha256:a47688f873802e31de4ce2eaab316dec8c257971b7d8240f3dc6f52f49826c9e-mirage-crypto-rng-miou-unix.2.0.3-66e177c9ccf11298b53a7c2c24dada57dd487d9b"
2026-02-10 15:24.05: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.14@sha256:a47688f873802e31de4ce2eaab316dec8c257971b7d8240f3dc6f52f49826c9e)
 (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 mirage-crypto-rng-miou-unix.2.0.3 2.0.3"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall mirage-crypto-rng-miou-unix.2.0.3;\
             \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\" != 'mirage-crypto-rng-miou-unix.2.0.3' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-02-10 15:24.05: Waiting for resource in pool OCluster
2026-02-10 15:24.07: Waiting for worker…
2026-02-10 15:25.45: Got resource from pool OCluster
Building on kydoime.caelum.ci.dev
All commits already cached
HEAD is now at f4c12add9c Merge pull request #29362 from xvw/fix-primavera-ownership
Updating f4c12add9c..66e177c9cc
Fast-forward
 .../mirage-crypto-ec/mirage-crypto-ec.2.0.3/opam   | 62 ++++++++++++++++++++++
 .../mirage-crypto-pk/mirage-crypto-pk.2.0.3/opam   | 43 +++++++++++++++
 .../mirage-crypto-rng-miou-unix.2.0.3/opam         | 39 ++++++++++++++
 .../mirage-crypto-rng-mirage.2.0.3/opam            | 40 ++++++++++++++
 .../mirage-crypto-rng-mkernel.2.0.3/opam           | 38 +++++++++++++
 .../mirage-crypto-rng/mirage-crypto-rng.2.0.3/opam | 42 +++++++++++++++
 packages/mirage-crypto/mirage-crypto.2.0.3/opam    | 39 ++++++++++++++
 7 files changed, 303 insertions(+)
 create mode 100644 packages/mirage-crypto-ec/mirage-crypto-ec.2.0.3/opam
 create mode 100644 packages/mirage-crypto-pk/mirage-crypto-pk.2.0.3/opam
 create mode 100644 packages/mirage-crypto-rng-miou-unix/mirage-crypto-rng-miou-unix.2.0.3/opam
 create mode 100644 packages/mirage-crypto-rng-mirage/mirage-crypto-rng-mirage.2.0.3/opam
 create mode 100644 packages/mirage-crypto-rng-mkernel/mirage-crypto-rng-mkernel.2.0.3/opam
 create mode 100644 packages/mirage-crypto-rng/mirage-crypto-rng.2.0.3/opam
 create mode 100644 packages/mirage-crypto/mirage-crypto.2.0.3/opam

(from ocaml/opam:debian-13-ocaml-4.14@sha256:a47688f873802e31de4ce2eaab316dec8c257971b7d8240f3dc6f52f49826c9e)
Unable to find image 'ocaml/opam:debian-13-ocaml-4.14@sha256:a47688f873802e31de4ce2eaab316dec8c257971b7d8240f3dc6f52f49826c9e' locally
docker.io/ocaml/opam@sha256:a47688f873802e31de4ce2eaab316dec8c257971b7d8240f3dc6f52f49826c9e: Pulling from ocaml/opam
1bd4defc8c5e: Already exists
0392a9b03762: Already exists
b22948f89819: Already exists
50d734b48f7f: Already exists
2177992334f7: Already exists
83c8cb383fef: Already exists
6ba4512d1f27: Already exists
3c7d30aed99f: Already exists
fb47c86320e8: Already exists
b72f50544b39: Already exists
48b83c8f6a56: Already exists
b98d9c3ebd00: Already exists
03343187894d: Already exists
9f5172efd37f: Already exists
ae96ebb9601f: Already exists
058dd2063dbc: Already exists
c35a072f823c: Already exists
c35a072f823c: Already exists
9bebec788ee7: Already exists
452b69ff2588: Already exists
ec8490a65b44: Already exists
664554f1f2bf: Already exists
4f4fb700ef54: Already exists
17f05a191d05: Already exists
561e07df245a: Already exists
ee8ba93483b0: Already exists
b0a45215a4bd: Already exists
089d08a29ab6: Already exists
c34e87301ab9: Already exists
97c48b419833: Already exists
d7d65197b0e7: Already exists
96ff79fa36d2: Already exists
b0c990537697: Already exists
6490715e88f8: Already exists
c8def43c265c: Already exists
6af0e0ea3ad2: Already exists
5913635a0cc9: Already exists
18ae542c4cd2: Already exists
f5663ae46d34: Already exists
2de4a3385513: Already exists
30625ee7f894: Already exists
79280a31b647: Pulling fs layer
1825132a5e0e: Pulling fs layer
3dc4f758fee9: Pulling fs layer
ad9eb07ed1c2: Pulling fs layer
79280a31b647: Waiting
1825132a5e0e: Waiting
3dc4f758fee9: Waiting
ad9eb07ed1c2: Waiting
1825132a5e0e: Verifying Checksum
1825132a5e0e: Download complete
3dc4f758fee9: Download complete
ad9eb07ed1c2: Download complete
79280a31b647: Verifying Checksum
79280a31b647: Download complete
79280a31b647: Pull complete
1825132a5e0e: Pull complete
3dc4f758fee9: Pull complete
ad9eb07ed1c2: Pull complete
Digest: sha256:a47688f873802e31de4ce2eaab316dec8c257971b7d8240f3dc6f52f49826c9e
Status: Downloaded newer image for ocaml/opam@sha256:a47688f873802e31de4ce2eaab316dec8c257971b7d8240f3dc6f52f49826c9e
2026-02-10 15:25.47 ---> using "8bfaea138c812392b5e96a932eec90483652ab6c300a96d2abcfe06ad746b8c1" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-02-10 15:25.47 ---> using "347d2c5338287e0b1b772aa6faa835f2586df36131d8c842d34893be14f3dda1" 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
2026-02-10 15:25.47 ---> using "628949aa91fbdfd1418ed4279d6570a717652e56e3e5a4764d5888c764325353" 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=arm64 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                 79
# 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
2026-02-10 15:25.47 ---> using "52fb2304d0fb0b61657240d724c54b435535c90e34b91d6cddc999eb8de06168" 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/"))
2026-02-10 15:25.47 ---> using "f3b3eb8f00e9fb7fbf8452db2ca6794b409783586d8e272ce2d24599a4bd48eb" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-02-10 15:25.48 ---> using "012e268aa41b9568c0bfeddea028ddabcc64ff3ae5a1b89d35a9ec11b1abf44a" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-02-10 15:26.02 ---> saved as "887fb366c39ed3397c7080e52a853bd68479dbb598682da09bc32623e368195c"

/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 arm64 Packages [105 kB]
- Fetched 195 kB in 0s (1422 kB/s)
- Reading package lists...
2026-02-10 15:26.03 ---> saved as "b8986f42c13ac2333479d56a793a674a86559429b44cbe0625bd5769d0812843"

/home/opam: (run (shell "opam pin add -k version -yn mirage-crypto-rng-miou-unix.2.0.3 2.0.3"))
mirage-crypto-rng-miou-unix is now pinned to version 2.0.3
2026-02-10 15:26.03 ---> saved as "e2f1d5992989cf1841bbb52c0db14cf2b77928e9cf231cf597919f93331eab43"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall mirage-crypto-rng-miou-unix.2.0.3;\
                        \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\" != 'mirage-crypto-rng-miou-unix.2.0.3' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
mirage-crypto-rng-miou-unix.2.0.3 is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 4.14.2
    - mirage-crypto-rng-miou-unix >= 2.0.3 -> ocaml >= 5.0.0 -> ocaml-variants >= 5.0.0~
    You can temporarily relax the switch invariant with `--update-invariant'
  * Missing dependency:
    - mirage-crypto-rng-miou-unix >= 2.0.3 -> ocaml >= 5.0.0 -> ocaml-variants >= 5.0.0~ -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall mirage-crypto-rng-miou-unix.2.0.3;
        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" != 'mirage-crypto-rng-miou-unix.2.0.3' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 20
2026-02-10 15:26.16: Job failed: Failed: Build failed
2026-02-10 15:26.16: Log analysis:
2026-02-10 15:26.16: >>> 
No solution found, exiting
 (score = 100)
2026-02-10 15:26.16: [SKIP] Package not available