(for PR #29368)

2026-02-10 15:24.05: New job: build mirage-crypto-pk.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-fp/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/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-fp@sha256:3acea4447e1ff4fee1fe319c8e030bb478dd212faa454f217620413d5661be22
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-pk.2.0.3 2.0.3
RUN opam reinstall mirage-crypto-pk.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-pk.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-fp@sha256:3acea4447e1ff4fee1fe319c8e030bb478dd212faa454f217620413d5661be22-mirage-crypto-pk.2.0.3-66e177c9ccf11298b53a7c2c24dada57dd487d9b"
2026-02-10 15:24.05: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.14-fp@sha256:3acea4447e1ff4fee1fe319c8e030bb478dd212faa454f217620413d5661be22)
 (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-pk.2.0.3 2.0.3"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall mirage-crypto-pk.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-pk.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:38.36: Waiting for worker…
2026-02-10 15:41.22: Got resource from pool OCluster
Building on laodoke.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-fp@sha256:3acea4447e1ff4fee1fe319c8e030bb478dd212faa454f217620413d5661be22)
Unable to find image 'ocaml/opam:debian-13-ocaml-4.14-fp@sha256:3acea4447e1ff4fee1fe319c8e030bb478dd212faa454f217620413d5661be22' locally
docker.io/ocaml/opam@sha256:3acea4447e1ff4fee1fe319c8e030bb478dd212faa454f217620413d5661be22: Pulling from ocaml/opam
ef235bf1a09a: Already exists
58b06b604a42: Already exists
b55f23c32d5a: Already exists
aa415425edb7: Already exists
c4f39ed7469c: Already exists
ca248a2fdd5e: Already exists
74109c509b2f: Already exists
18c2fa2271cb: Already exists
37d4d41661a2: Already exists
0b2f35f78814: Already exists
e65f29522a9a: Already exists
603a51b67573: Already exists
89b2faa02f16: Already exists
e5f11471afd4: Already exists
d7b0e5daa224: Already exists
7bec4d50f3b2: Already exists
d3a70ed71f1c: Already exists
90de03d9b27a: Already exists
a28f685cf2db: Already exists
5bb5e02041c7: Already exists
74f9af816199: Already exists
74c2f6cb4138: Already exists
4f4fb700ef54: Already exists
5ce9bdcb2952: Already exists
bf18c14e9b34: Already exists
bb4b67501479: Already exists
89e7ed0468f5: Already exists
640077527026: Already exists
363b481ff012: Already exists
437bd8bc3ce9: Already exists
2bcf3429833a: Already exists
3e5fe21454e9: Already exists
f3afb11ae499: Already exists
c3a5b88f5e5f: Already exists
124a1dc355b1: Already exists
0a9982d37abd: Already exists
9b8b724665ed: Already exists
f81507befe71: Already exists
7984e4546bf9: Already exists
3579b890ab6e: Already exists
e83772930ba8: Already exists
09dcd70f5851: Pulling fs layer
98462d477469: Pulling fs layer
952201a0b1ec: Pulling fs layer
9539546a97c3: Pulling fs layer
9539546a97c3: Waiting
98462d477469: Download complete
952201a0b1ec: Download complete
9539546a97c3: Verifying Checksum
9539546a97c3: Download complete
09dcd70f5851: Download complete
09dcd70f5851: Pull complete
98462d477469: Pull complete
952201a0b1ec: Pull complete
9539546a97c3: Pull complete
Digest: sha256:3acea4447e1ff4fee1fe319c8e030bb478dd212faa454f217620413d5661be22
Status: Downloaded newer image for ocaml/opam@sha256:3acea4447e1ff4fee1fe319c8e030bb478dd212faa454f217620413d5661be22
2026-02-10 15:42.20 ---> saved as "bb0a41371dd4b3a6bd04df6379a6b015e3460e36f41bbd078b6fcf0a01d07d68"

/: (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:42.21 ---> saved as "c6fd2b9bdd022a39366c8e962fba53229838309a00a15937f3d59ca997e12bd8"

/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:42.48 ---> saved as "2bbfbe593aef85c2953b16684fbbce9e809eac30553bfa67efe6f9c69a110c73"

/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.14
# invariant            ["ocaml-options-only-fp"]
# compiler-packages    ocaml-option-fp.1, ocaml-options-only-fp.1, ocaml-variants.4.14.2+options
# 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+options+fp
2026-02-10 15:42.49 ---> saved as "cb80295748bf6d36e6f4581af6a43e48b8bd7676eebd1db34ad031bebaaea1e6"

/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:42.57 ---> saved as "cb1eb135f36a420a53c88fedbad387ff55a600a05acd8b3703f799dfeed1835f"

/home/opam: (copy (src .) (dst opam-repository/))
2026-02-10 15:43.09 ---> saved as "fd7f9aa4d8437f9127e0ca7a886837135509d7e225556e519c584db6b90c0ff9"

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

/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 [104 kB]
- Fetched 195 kB in 0s (1721 kB/s)
- Reading package lists...
- 
2026-02-10 15:43.32 ---> saved as "2c98c20f30dd5fa72db908b3c63a5a68d74340c538b22405be0d900bb794e753"

/home/opam: (run (shell "opam pin add -k version -yn mirage-crypto-pk.2.0.3 2.0.3"))
mirage-crypto-pk is now pinned to version 2.0.3
2026-02-10 15:43.33 ---> saved as "e253439ebb43885265392375b115170d43e21f0ed53b22d563918fa2e1f2f582"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall mirage-crypto-pk.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-pk.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-pk.2.0.3 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 17 packages
  - install conf-gmp          5              [required by conf-gmp-powm-sec, zarith]
  - install conf-gmp-powm-sec 4              [required by mirage-crypto-pk]
  - install conf-pkg-config   4              [required by zarith]
  - install csexp             1.5.2          [required by dune-configurator]
  - install digestif          1.3.0          [required by mirage-crypto-pk]
  - install dune              3.21.0         [required by mirage-crypto-pk]
  - install dune-configurator 3.21.0         [required by mirage-crypto, mirage-crypto-rng]
  - install duration          0.2.1          [required by mirage-crypto-rng]
  - install eqaf              0.10           [required by mirage-crypto-pk]
  - install logs              0.10.0         [required by mirage-crypto-rng]
  - install mirage-crypto     2.0.3          [required by mirage-crypto-pk]
  - install mirage-crypto-pk  2.0.3 (pinned)
  - install mirage-crypto-rng 2.0.3          [required by mirage-crypto-pk]
  - install ocamlbuild        0.16.1         [required by logs]
  - install ocamlfind         1.9.8          [required by zarith]
  - install topkg             1.1.1          [required by logs]
  - install zarith            1.14           [required by mirage-crypto-pk]

The following system packages will first need to be installed:
    libgmp-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" "libgmp-dev" "pkg-config"
- Selecting previously unselected package libgmpxx4ldbl: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 ... 20623 files and directories currently installed.)
- Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.3.0+dfsg-3_amd64.deb ...
- Unpacking libgmpxx4ldbl:amd64 (2:6.3.0+dfsg-3) ...
- Selecting previously unselected package libgmp-dev:amd64.
- Preparing to unpack .../1-libgmp-dev_2%3a6.3.0+dfsg-3_amd64.deb ...
- Unpacking libgmp-dev:amd64 (2:6.3.0+dfsg-3) ...
- 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 pkgconf-bin.
- Preparing to unpack .../3-pkgconf-bin_1.8.1-4_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-4) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../4-pkgconf_1.8.1-4_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-4) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../5-pkg-config_1.8.1-4_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-4) ...
- Setting up libpkgconf3:amd64 (1.8.1-4) ...
- Setting up libgmpxx4ldbl:amd64 (2:6.3.0+dfsg-3) ...
- Setting up pkgconf-bin (1.8.1-4) ...
- Setting up libgmp-dev:amd64 (2:6.3.0+dfsg-3) ...
- 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+deb13u1) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-gmp.5  (cached)
-> retrieved conf-gmp-powm-sec.4  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-gmp.5
-> installed conf-pkg-config.4
-> installed conf-gmp-powm-sec.4
-> retrieved digestif.1.3.0  (cached)
-> retrieved dune.3.21.0, dune-configurator.3.21.0  (cached)
-> retrieved duration.0.2.1  (cached)
-> retrieved eqaf.0.10  (cached)
-> retrieved logs.0.10.0  (cached)
-> retrieved mirage-crypto.2.0.3, mirage-crypto-pk.2.0.3, mirage-crypto-rng.2.0.3  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved topkg.1.1.1  (cached)
-> retrieved zarith.1.14  (cached)
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed zarith.1.14
-> installed topkg.1.1.1
-> installed logs.0.10.0
-> installed dune.3.21.0
-> installed duration.0.2.1
-> installed csexp.1.5.2
-> installed eqaf.0.10
-> installed digestif.1.3.0
-> installed dune-configurator.3.21.0
-> installed mirage-crypto.2.0.3
-> installed mirage-crypto-rng.2.0.3
-> installed mirage-crypto-pk.2.0.3
Done.
# To update the current shell environment, run: eval $(opam env)
2026-02-10 15:44.30 ---> saved as "5fee9cbad0827b319f55153a329278af2e361773f142cb052dda828e2c109b52"
Job succeeded
2026-02-10 15:44.44: Job succeeded