(for PR #23932)

2024-02-08 11:39.21: New job: build hpke.0.0.pre-alpha, lower-bounds, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/23932/head (04858040f13a0b01bae25ee9bb5a66a8430570f1)
                              on debian-12-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/23932/head" && git reset --hard 04858040
git fetch origin master
git merge --no-edit d87a1eb8c3d0e6228e3f957b25aa87f49e397d03
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.13@sha256:1d2b3e850b35941b6ab196f98e838e83df5423af8d3f7b46173ff03f0b580001
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="500"
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
ENV OPAMCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMFIXUPCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMUPGRADECRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
RUN opam pin add -k version -yn hpke.0.0.pre-alpha 0.0.pre-alpha
RUN opam reinstall hpke.0.0.pre-alpha; \
    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-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'hpke.0.0.pre-alpha' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1
ENV OPAMCRITERIA="+removed,+count[version-lag,solution]"
ENV OPAMFIXUPCRITERIA="+removed,+count[version-lag,solution]"
ENV OPAMUPGRADECRITERIA="+removed,+count[version-lag,solution]"
ENV OPAMEXTERNALSOLVER="builtin-0install"
RUN opam reinstall hpke.0.0.pre-alpha; \
    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-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'hpke.0.0.pre-alpha' && 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 .

2024-02-08 11:39.21: Using cache hint "ocaml/opam:debian-12-ocaml-4.13@sha256:1d2b3e850b35941b6ab196f98e838e83df5423af8d3f7b46173ff03f0b580001-hpke.0.0.pre-alpha-04858040f13a0b01bae25ee9bb5a66a8430570f1"
2024-02-08 11:39.21: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.13@sha256:1d2b3e850b35941b6ab196f98e838e83df5423af8d3f7b46173ff03f0b580001)
 (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"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 500)
 (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"))
 (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (run (shell "opam pin add -k version -yn hpke.0.0.pre-alpha 0.0.pre-alpha"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall hpke.0.0.pre-alpha;\
             \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-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'hpke.0.0.pre-alpha' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
 (env OPAMCRITERIA +removed,+count[version-lag,solution])
 (env OPAMFIXUPCRITERIA +removed,+count[version-lag,solution])
 (env OPAMUPGRADECRITERIA +removed,+count[version-lag,solution])
 (env OPAMEXTERNALSOLVER builtin-0install)
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall hpke.0.0.pre-alpha;\
             \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-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'hpke.0.0.pre-alpha' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-02-08 11:39.21: Connecting to build cluster…
2024-02-08 11:39.21: Waiting for resource in pool OCluster
2024-02-08 11:39.29: Waiting for worker…
2024-02-08 11:41.50: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at d87a1eb8c3 Merge pull request #25204 from toots/opam-publish-tls-liquidsoap.1-prometheus-liquidsoap.2-liquidsoap.2.2.4-sdl-liquidsoap.3
Merge made by the 'ort' strategy.
 packages/hpke/hpke.0.0.pre-alpha/opam | 43 +++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 packages/hpke/hpke.0.0.pre-alpha/opam

(from ocaml/opam:debian-12-ocaml-4.13@sha256:1d2b3e850b35941b6ab196f98e838e83df5423af8d3f7b46173ff03f0b580001)
2024-02-08 12:08.49 ---> using "ab9f734185a61ed224207f00d40d49e91ca91e306ebfedd0bbead120435b1bab" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-02-08 12:08.49 ---> using "7cb7332df5d916c9e40b5a47a439d3b85877aa70fed13207a276b26b355edcdc" 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 development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2~alpha, 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] synchronised from file:///home/opam/opam-repository
2024-02-08 12:08.49 ---> using "16a8bba78dddba8970d5e331a1e10fad775a7525db8abcff61f41ec0ccacf748" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 500)

/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/"))
2024-02-08 12:08.49 ---> using "f300f9d41ee138712eacd3c295ba983a863af5437b6c2f6df62d7aee8587f405" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-02-08 12:08.50 ---> using "0d324f5be086023e18582d26a3e90a2820124809b3664c85b3ffde348074e37c" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-02-08 12:08.50 ---> using "51e8d465a829a0d600473e4dadbe3dc7b3d2fad5d07d880bbf858fe7c3b7a3cc" from cache

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [137 kB]
- Fetched 237 kB in 0s (814 kB/s)
- Reading package lists...
2024-02-08 12:08.50 ---> using "b2273751b9e0a0e53b4c216ee779d3a9404b848e8e2ae8e255aacb568f094ba1" from cache

/home/opam: (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (run (shell "opam pin add -k version -yn hpke.0.0.pre-alpha 0.0.pre-alpha"))
hpke is now pinned to version 0.0.pre-alpha
2024-02-08 12:08.50 ---> using "141c6d2ecad4547ddc3d86ac4378e6dfaceca2a7999562904d12211bdba274e7" from cache

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall hpke.0.0.pre-alpha;\
                        \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-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'hpke.0.0.pre-alpha' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
hpke.0.0.pre-alpha is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 20 packages
  - install conf-gmp          4                      [required by conf-gmp-powm-sec, zarith]
  - install conf-gmp-powm-sec 3                      [required by mirage-crypto-pk]
  - install csexp             1.5.2                  [required by dune-configurator]
  - install cstruct           6.2.0                  [required by hpke]
  - install dune              3.13.1                 [required by hpke]
  - install dune-configurator 3.13.1                 [required by mirage-crypto, mirage-crypto-rng]
  - install duration          0.2.1                  [required by mirage-crypto-rng]
  - install eqaf              0.9                    [required by mirage-crypto-pk]
  - install fmt               0.9.0                  [required by cstruct]
  - install hkdf              1.0.4                  [required by hpke]
  - install hpke              0.0.pre-alpha (pinned)
  - install logs              0.7.0                  [required by mirage-crypto-rng]
  - install mirage-crypto     0.11.2                 [required by hpke]
  - install mirage-crypto-pk  0.11.2                 [required by hpke]
  - install mirage-crypto-rng 0.11.2                 [required by mirage-crypto-pk]
  - install ocamlbuild        0.14.3                 [required by fmt]
  - install ocamlfind         1.9.6                  [required by fmt, zarith]
  - install sexplib0          v0.16.0                [required by mirage-crypto-pk]
  - install topkg             1.0.7                  [required by fmt]
  - install zarith            1.13                   [required by mirage-crypto-pk]

The following system packages will first need to be installed:
    libgmp-dev

<><> 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"
- debconf: delaying package configuration, since apt-utils is not installed
- 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 ... 18743 files and directories currently installed.)
- Preparing to unpack .../libgmpxx4ldbl_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libgmp-dev:amd64.
- Preparing to unpack .../libgmp-dev_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Processing triggers for libc-bin (2.36-9+deb12u3) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved csexp.1.5.2  (cached)
-> retrieved cstruct.6.2.0  (cached)
-> installed conf-gmp.4
-> installed conf-gmp-powm-sec.3
-> retrieved dune.3.13.1, dune-configurator.3.13.1  (cached)
-> retrieved duration.0.2.1  (cached)
-> retrieved eqaf.0.9  (cached)
-> retrieved fmt.0.9.0  (cached)
-> retrieved hkdf.1.0.4  (cached)
-> retrieved hpke.0.0.pre-alpha  (cached)
-> retrieved logs.0.7.0  (cached)
-> retrieved mirage-crypto.0.11.2, mirage-crypto-pk.0.11.2, mirage-crypto-rng.0.11.2  (cached)
-> retrieved ocamlbuild.0.14.3  (cached)
-> retrieved ocamlfind.1.9.6  (cached)
-> retrieved sexplib0.v0.16.0  (cached)
-> retrieved topkg.1.0.7  (cached)
-> retrieved zarith.1.13  (cached)
-> installed ocamlfind.1.9.6
-> installed ocamlbuild.0.14.3
-> installed zarith.1.13
-> installed topkg.1.0.7
-> installed fmt.0.9.0
-> installed logs.0.7.0
-> installed dune.3.13.1
-> installed duration.0.2.1
-> installed csexp.1.5.2
-> installed cstruct.6.2.0
-> installed sexplib0.v0.16.0
-> installed eqaf.0.9
-> installed dune-configurator.3.13.1
-> installed mirage-crypto.0.11.2
-> installed hkdf.1.0.4
-> installed mirage-crypto-rng.0.11.2
-> installed mirage-crypto-pk.0.11.2
-> installed hpke.0.0.pre-alpha
Done.
# Run eval $(opam env) to update the current shell environment
2024-02-08 12:08.50 ---> using "0efd370ed88ad1dbebeabfc15b9fc3069d6c0fc0be18e1a50e89df14587adc54" from cache

/home/opam: (env OPAMCRITERIA +removed,+count[version-lag,solution])

/home/opam: (env OPAMFIXUPCRITERIA +removed,+count[version-lag,solution])

/home/opam: (env OPAMUPGRADECRITERIA +removed,+count[version-lag,solution])

/home/opam: (env OPAMEXTERNALSOLVER builtin-0install)

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall hpke.0.0.pre-alpha;\
                        \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-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'hpke.0.0.pre-alpha' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
The following actions will be performed:
=== remove 4 packages
  - remove    csexp                   1.5.2                  [conflicts with dune]
  - remove    duration                0.2.1                  [conflicts with dune]
  - remove    fmt                     0.9.0                  [conflicts with ocamlbuild]
  - remove    logs                    0.7.0                  [conflicts with ocamlbuild]
=== downgrade 15 packages
  - downgrade conf-gmp                4 to 1                 [required by zarith]
  - downgrade conf-gmp-powm-sec       3 to 1                 [uses conf-gmp]
  - downgrade cstruct                 6.2.0 to 3.2.0         [required by hpke]
  - downgrade dune                    3.13.1 to 3.7.0        [required by hpke]
  - downgrade dune-configurator       3.13.1 to 2.3.0        [uses dune]
  - downgrade eqaf                    0.9 to 0.8             [uses cstruct]
  - downgrade hkdf                    1.0.4 to 1.0.0         [required by hpke]
  - downgrade mirage-crypto           0.11.2 to 0.6.0        [required by hpke]
  - downgrade mirage-crypto-pk        0.11.2 to 0.6.0        [required by hpke]
  - downgrade mirage-crypto-rng       0.11.2 to 0.6.0        [uses cstruct]
  - downgrade ocamlbuild              0.14.3 to 0.14.0       [required by ocplib-endian]
  - downgrade ocamlfind               1.9.6 to 1.9.1         [required by num]
  - downgrade sexplib0                v0.16.0 to v0.14.0     [required by sexplib]
  - downgrade topkg                   1.0.7 to 1.0.3         [uses ocamlbuild]
  - downgrade zarith                  1.13 to 1.4            [uses ocamlfind]
=== recompile 1 package
  - recompile hpke                    0.0.pre-alpha (pinned)
=== install 31 packages
  - install   astring                 0.8.5                  [required by ocb-stubblr]
  - install   base                    v0.14.1                [required by parsexp]
  - install   base-bytes              base                   [required by ocplib-endian]
  - install   bigarray-compat         1.0.0                  [required by mirage-crypto-pk]
  - install   conf-perl               1                      [required by zarith]
  - install   conf-pkg-config         1.0                    [required by mirage-crypto]
  - install   cppo                    1.6.1                  [required by ocplib-endian]
  - install   cpuid                   0.1.2                  [required by mirage-crypto]
  - install   cstruct-lwt             3.1.0                  [required by nocrypto]
  - install   dune-private-libs       2.3.0                  [required by dune-configurator]
  - install   jbuilder                1.0+beta20.1           [required by cstruct]
  - install   lwt                     5.4.0                  [required by nocrypto]
  - install   mirage-no-solo5         1                      [required by nocrypto]
  - install   mirage-no-xen           1                      [required by nocrypto]
  - install   mmap                    1.1.0                  [required by lwt]
  - install   nocrypto                0.5.4-1                [required by hkdf]
  - install   num                     1.0                    [required by sexplib]
  - install   ocaml-compiler-libs     v0.11.0                [required by ppxlib]
  - install   ocaml-migrate-parsetree 2.2.0 (deprecated)     [required by ppxlib]
  - install   ocb-stubblr             0.1.0                  [required by nocrypto]
  - install   ocplib-endian           1.0                    [required by mirage-crypto]
  - install   parsexp                 v0.14.1                [required by sexplib]
  - install   ppx_derivers            1.0                    [required by ppx_deriving]
  - install   ppx_deriving            5.2                    [required by nocrypto]
  - install   ppx_sexp_conv           v0.14.3                [required by nocrypto]
  - install   ppxlib                  0.22.2                 [required by ppx_deriving]
  - install   result                  1.0                    [required by ppx_deriving]
  - install   rresult                 0.6.0                  [required by mirage-crypto-pk]
  - install   seq                     0.2.2                  [required by lwt]
  - install   sexplib                 v0.14.0                [required by cstruct]
  - install   stdlib-shims            0.1.0                  [required by ppxlib]

The following system packages will first need to be installed:
    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" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libpkgconf3: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 ... 18765 files and directories currently installed.)
- Preparing to unpack .../libpkgconf3_1.8.1-1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../pkgconf-bin_1.8.1-1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../pkgconf_1.8.1-1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../pkg-config_1.8.1-1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-1) ...
- Setting up libpkgconf3:amd64 (1.8.1-1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up pkgconf:amd64 (1.8.1-1) ...
- Setting up pkg-config:amd64 (1.8.1-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u3) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved astring.0.8.5  (cached)
-> retrieved base.v0.14.1  (cached)
-> retrieved bigarray-compat.1.0.0  (cached)
-> retrieved cppo.1.6.1  (cached)
-> retrieved cpuid.0.1.2  (cached)
-> retrieved cstruct.3.2.0  (cached)
-> installed conf-perl.1
-> installed conf-pkg-config.1.0
-> retrieved cstruct-lwt.3.1.0  (cached)
-> retrieved dune.3.7.0  (cached)
-> retrieved dune-configurator.2.3.0, dune-private-libs.2.3.0  (cached)
-> retrieved eqaf.0.8  (cached)
-> retrieved hkdf.1.0.0  (cached)
-> retrieved hpke.0.0.pre-alpha  (cached)
-> retrieved jbuilder.1.0+beta20.1  (cached)
-> retrieved lwt.5.4.0  (cached)
-> retrieved mirage-crypto.0.6.0, mirage-crypto-pk.0.6.0, mirage-crypto-rng.0.6.0  (cached)
-> installed mirage-no-solo5.1
-> installed mirage-no-xen.1
-> retrieved mmap.1.1.0  (cached)
-> retrieved nocrypto.0.5.4-1  (cached)
-> retrieved num.1.0  (cached)
-> retrieved ocaml-compiler-libs.v0.11.0  (cached)
-> retrieved ocaml-migrate-parsetree.2.2.0  (cached)
-> retrieved ocamlbuild.0.14.0  (cached)
-> retrieved ocamlfind.1.9.1  (cached)
-> retrieved ocb-stubblr.0.1.0  (cached)
-> retrieved ocplib-endian.1.0  (cached)
-> retrieved parsexp.v0.14.1  (cached)
-> retrieved ppx_derivers.1.0  (cached)
-> retrieved ppx_deriving.5.2  (cached)
-> retrieved ppx_sexp_conv.v0.14.3  (cached)
-> retrieved ppxlib.0.22.2  (cached)
-> retrieved result.1.0  (cached)
-> retrieved rresult.0.6.0  (cached)
-> retrieved seq.0.2.2  (cached)
-> retrieved sexplib.v0.14.0  (cached)
-> retrieved sexplib0.v0.14.0  (cached)
-> retrieved stdlib-shims.0.1.0  (cached)
-> retrieved topkg.1.0.3  (cached)
-> retrieved zarith.1.4  (cached)
-> installed result.1.0
-> installed jbuilder.1.0+beta20.1
-> installed ppx_derivers.1.0
-> installed ocaml-compiler-libs.v0.11.0
-> removed   hpke.0.0.pre-alpha
-> removed   hkdf.1.0.4
-> removed   mirage-crypto-pk.0.11.2
-> removed   conf-gmp-powm-sec.3
-> removed   mirage-crypto-rng.0.11.2
-> removed   duration.0.2.1
-> removed   logs.0.7.0
-> removed   mirage-crypto.0.11.2
-> removed   dune-configurator.3.13.1
-> removed   csexp.1.5.2
-> removed   eqaf.0.9
-> removed   cstruct.6.2.0
-> removed   fmt.0.9.0
-> removed   sexplib0.v0.16.0
-> removed   dune.3.13.1
-> removed   topkg.1.0.7
-> removed   ocamlbuild.0.14.3
-> removed   zarith.1.13
-> removed   conf-gmp.4
-> removed   ocamlfind.1.9.6
-> installed conf-gmp.1
-> installed dune.3.7.0
-> installed ocamlbuild.0.14.0
-> installed ocamlfind.1.9.1
-> installed base-bytes.base
-> installed bigarray-compat.1.0.0
-> installed conf-gmp-powm-sec.1
-> installed cpuid.0.1.2
-> installed mmap.1.1.0
-> installed ocaml-migrate-parsetree.2.2.0
-> installed seq.0.2.2
-> installed sexplib0.v0.14.0
-> installed stdlib-shims.0.1.0
-> installed cppo.1.6.1
-> installed dune-private-libs.2.3.0
-> installed num.1.0
-> installed dune-configurator.2.3.0
-> installed zarith.1.4
-> installed topkg.1.0.3
-> installed rresult.0.6.0
-> installed ocplib-endian.1.0
-> installed astring.0.8.5
-> installed ocb-stubblr.0.1.0
-> installed base.v0.14.1
-> installed lwt.5.4.0
-> installed parsexp.v0.14.1
-> installed sexplib.v0.14.0
-> installed ppxlib.0.22.2
-> installed cstruct.3.2.0
-> installed cstruct-lwt.3.1.0
-> installed eqaf.0.8
-> installed mirage-crypto.0.6.0
-> installed mirage-crypto-rng.0.6.0
-> installed ppx_deriving.5.2
-> installed ppx_sexp_conv.v0.14.3
-> installed mirage-crypto-pk.0.6.0
-> installed nocrypto.0.5.4-1
-> installed hkdf.1.0.0
[ERROR] The compilation of hpke.0.0.pre-alpha failed at "dune build -p hpke -j 255 @install".

#=== ERROR while compiling hpke.0.0.pre-alpha =================================#
# context              2.2.0~beta2~dev | linux/x86_64 | ocaml-base-compiler.4.13.1 | pinned(https://github.com/FantomeBeignet/ohpke/archive/refs/tags/0.0.pre-alpha.tar.gz)
# path                 ~/.opam/4.13/.opam-switch/build/hpke.0.0.pre-alpha
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p hpke -j 255 @install
# exit-code            1
# env-file             ~/.opam/log/hpke-7-4b7fb6.env
# output-file          ~/.opam/log/hpke-7-4b7fb6.out
### output ###
# File "/home/opam/.opam/4.13/lib/cstruct/cstruct.dune", line 1, characters 0-0:
# Warning: .dune files are ignored since 2.0. Reinstall the library with dune
# >= 2.0 to get rid of this warning and enable support for the subsystem this
# library provides.
# (cd _build/default && /home/opam/.opam/4.13/bin/ocamlc.opt -w -40 -g -bin-annot -I lib/.hpke.objs/byte -I /home/opam/.opam/4.13/lib/base/caml -I /home/opam/.opam/4.13/lib/cstruct -I /home/opam/.opam/4.13/lib/eqaf -I /home/opam/.opam/4.13/lib/eqaf/bigstring -I /home/opam/.opam/4.13/lib/eqaf/cstruct -I /home/opam/.opam/4.13/lib/hkdf -I /home/opam/.opam/4.13/lib/mirage-crypto -I /home/opam/.opam/4.13/lib/mirage-crypto-pk -I /home/opam/.opam/4.13/lib/mirage-crypto-rng -I /home/opam/.opam/4.13/lib/nocrypto -I /home/opam/.opam/4.13/lib/ocplib-endian -I /home/opam/.opam/4.13/lib/parsexp -I /home/opam/.opam/4.13/lib/ppx_deriving/runtime -I /home/opam/.opam/4.13/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/4.13/lib/result -I /home/opam/.opam/4.13/lib/rresult -I /home/opam/.opam/4.13/lib/sexplib -I /home/opam/.opam/4.13/lib/sexplib0 -I /home/opam/.opam/4.13/lib/zarith -no-alias-deps -open Hpke -o lib/.hpke.objs/byte/hpke__Utils.cmo -c -impl lib/utils.ml)
# File "lib/utils.ml", line 3, characters 5-11:
# 3 |   if length a <> length b then failwith "unequal length"
#          ^^^^^^
# Error: Unbound value length
# (cd _build/default && /home/opam/.opam/4.13/bin/ocamlc.opt -w -40 -g -bin-annot -I lib/.hpke.objs/byte -I /home/opam/.opam/4.13/lib/base/caml -I /home/opam/.opam/4.13/lib/cstruct -I /home/opam/.opam/4.13/lib/eqaf -I /home/opam/.opam/4.13/lib/eqaf/bigstring -I /home/opam/.opam/4.13/lib/eqaf/cstruct -I /home/opam/.opam/4.13/lib/hkdf -I /home/opam/.opam/4.13/lib/mirage-crypto -I /home/opam/.opam/4.13/lib/mirage-crypto-pk -I /home/opam/.opam/4.13/lib/mirage-crypto-rng -I /home/opam/.opam/4.13/lib/nocrypto -I /home/opam/.opam/4.13/lib/ocplib-endian -I /home/opam/.opam/4.13/lib/parsexp -I /home/opam/.opam/4.13/lib/ppx_deriving/runtime -I /home/opam/.opam/4.13/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/4.13/lib/result -I /home/opam/.opam/4.13/lib/rresult -I /home/opam/.opam/4.13/lib/sexplib -I /home/opam/.opam/4.13/lib/sexplib0 -I /home/opam/.opam/4.13/lib/zarith -no-alias-deps -open Hpke -o lib/.hpke.objs/byte/hpke__Kdf.cmo -c -impl lib/kdf.ml)
# File "lib/kdf.ml", line 40, characters 22-38:
# 40 |     let module HKDF = Hkdf.Make (Hash) in
#                            ^^^^^^^^^^^^^^^^
# Error: Modules do not match:
#        sig
#          val digest_size : int
#          type t = Hash.t
#          val empty : t
#          val feed : t -> Cstruct.t -> t
#          val get : t -> Mirage_crypto.Hash.digest
#          val digest : Cstruct.t -> Mirage_crypto.Hash.digest
#          val hmac : key:Cstruct.t -> Cstruct.t -> Mirage_crypto.Hash.digest
#          val feedi : t -> Cstruct.t Mirage_crypto.Hash.iter -> t
#          val digesti :
#            Cstruct.t Mirage_crypto.Hash.iter -> Mirage_crypto.Hash.digest
#          val hmaci :
#            key:Cstruct.t ->
#            Cstruct.t Mirage_crypto.Hash.iter -> Mirage_crypto.Hash.digest
#        end
#      is not included in Nocrypto.Hash.S
#      The value `init' is required but not provided
#      File "src/nocrypto.mli", line 176, characters 4-24: Expected declaration
#      The value `digestv' is required but not provided
#      File "src/nocrypto.mli", line 188, characters 4-45: Expected declaration



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build hpke 0.0.pre-alpha
+- 
+- The following changes have been performed
| - remove    csexp                   1.5.2
| - remove    duration                0.2.1
| - remove    fmt                     0.9.0
| - remove    hpke                    0.0.pre-alpha
| - remove    logs                    0.7.0
| - downgrade conf-gmp                4 to 1
| - downgrade conf-gmp-powm-sec       3 to 1
| - downgrade cstruct                 6.2.0 to 3.2.0
| - downgrade dune                    3.13.1 to 3.7.0
| - downgrade dune-configurator       3.13.1 to 2.3.0
| - downgrade eqaf                    0.9 to 0.8
| - downgrade hkdf                    1.0.4 to 1.0.0
| - downgrade mirage-crypto           0.11.2 to 0.6.0
| - downgrade mirage-crypto-pk        0.11.2 to 0.6.0
| - downgrade mirage-crypto-rng       0.11.2 to 0.6.0
| - downgrade ocamlbuild              0.14.3 to 0.14.0
| - downgrade ocamlfind               1.9.6 to 1.9.1
| - downgrade sexplib0                v0.16.0 to v0.14.0
| - downgrade topkg                   1.0.7 to 1.0.3
| - downgrade zarith                  1.13 to 1.4
| - install   astring                 0.8.5
| - install   base                    v0.14.1
| - install   base-bytes              base
| - install   bigarray-compat         1.0.0
| - install   conf-perl               1
| - install   conf-pkg-config         1.0
| - install   cppo                    1.6.1
| - install   cpuid                   0.1.2
| - install   cstruct-lwt             3.1.0
| - install   dune-private-libs       2.3.0
| - install   jbuilder                1.0+beta20.1
| - install   lwt                     5.4.0
| - install   mirage-no-solo5         1
| - install   mirage-no-xen           1
| - install   mmap                    1.1.0
| - install   nocrypto                0.5.4-1
| - install   num                     1.0
| - install   ocaml-compiler-libs     v0.11.0
| - install   ocaml-migrate-parsetree 2.2.0
| - install   ocb-stubblr             0.1.0
| - install   ocplib-endian           1.0
| - install   parsexp                 v0.14.1
| - install   ppx_derivers            1.0
| - install   ppx_deriving            5.2
| - install   ppx_sexp_conv           v0.14.3
| - install   ppxlib                  0.22.2
| - install   result                  1.0
| - install   rresult                 0.6.0
| - install   seq                     0.2.2
| - install   sexplib                 v0.14.0
| - install   stdlib-shims            0.1.0
+- 

<><> ocaml-migrate-parsetree.2.2.0 installed successfully <><><><><><><><><><><>
=> Note: This package is deprecated.
# Run eval $(opam env) to update the current shell environment

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.13/.opam-switch/backup/state-20240208120851.export"
Or you can retry to install your package selection with:
    /usr/bin/opam install --restore
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
"/usr/bin/env" "bash" "-c" "opam reinstall hpke.0.0.pre-alpha;
        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-12\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'hpke.0.0.pre-alpha' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 1
2024-02-08 12:09.55: Job failed: Failed: Build failed
2024-02-08 12:09.55: Log analysis:
2024-02-08 12:09.55: >>> 
[ERROR] The compilation of hpke.0.0.pre-alpha failed at "dune build -p hpke -j 255 @install".
 (score = 20)
2024-02-08 12:09.55: >>> 
# Error: Unbound value length
 (score = 48)
2024-02-08 12:09.55: >>> 
# Error: Modules do not match:
 (score = 48)
2024-02-08 12:09.55: Unbound value length