(for PR #26864)

2024-11-13 13:54.21: New job: build ocamlfind.1.9.7, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26864/head (1fe86a030d1aa680aac111c48a41dca97d43900a)
                              on debian-12-ocaml-5.2/ppc64le

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/26864/head" && git reset --hard 1fe86a03
git fetch origin master
git merge --no-edit d4c6a480805e2a9eafb47afe89128b65244cbdac
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.2@sha256:52da7e31b0777223dd1032ca10393b8ce827709c772dbb421239a1b474af2f82
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="1000"
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 ocamlfind.1.9.7 1.9.7
RUN opam reinstall ocamlfind.1.9.7; \
    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" != 'ocamlfind.1.9.7' && 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-11-13 13:54.21: Using cache hint "ocaml/opam:debian-12-ocaml-5.2@sha256:52da7e31b0777223dd1032ca10393b8ce827709c772dbb421239a1b474af2f82-ocamlfind.1.9.7-1fe86a030d1aa680aac111c48a41dca97d43900a"
2024-11-13 13:54.21: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.2@sha256:52da7e31b0777223dd1032ca10393b8ce827709c772dbb421239a1b474af2f82)
 (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 "uname -rs && opam exec -- ocaml -version && opam --version"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 1000)
 (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 ocamlfind.1.9.7 1.9.7"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ocamlfind.1.9.7;\
             \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\" != 'ocamlfind.1.9.7' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-11-13 13:54.21: Waiting for resource in pool OCluster
2024-11-13 13:54.22: Waiting for worker…
2024-11-13 13:54.22: Got resource from pool OCluster
Building on orithia.caelum.ci.dev
Updating files:  29% (9736/32655)
Updating files:  30% (9797/32655)
Updating files:  31% (10124/32655)
Updating files:  32% (10450/32655)
Updating files:  33% (10777/32655)
Updating files:  34% (11103/32655)
Updating files:  35% (11430/32655)
Updating files:  36% (11756/32655)
Updating files:  37% (12083/32655)
Updating files:  38% (12409/32655)
Updating files:  39% (12736/32655)
Updating files:  40% (13062/32655)
Updating files:  41% (13389/32655)
Updating files:  42% (13716/32655)
Updating files:  43% (14042/32655)
Updating files:  44% (14369/32655)
Updating files:  45% (14695/32655)
Updating files:  46% (15022/32655)
Updating files:  47% (15348/32655)
Updating files:  48% (15675/32655)
Updating files:  49% (16001/32655)
Updating files:  50% (16328/32655)
Updating files:  51% (16655/32655)
Updating files:  52% (16981/32655)
Updating files:  53% (17308/32655)
Updating files:  54% (17634/32655)
Updating files:  55% (17961/32655)
Updating files:  55% (18213/32655)
Updating files:  56% (18287/32655)
Updating files:  57% (18614/32655)
Updating files:  58% (18940/32655)
Updating files:  59% (19267/32655)
Updating files:  60% (19593/32655)
Updating files:  61% (19920/32655)
Updating files:  62% (20247/32655)
Updating files:  63% (20573/32655)
Updating files:  64% (20900/32655)
Updating files:  65% (21226/32655)
Updating files:  66% (21553/32655)
Updating files:  67% (21879/32655)
Updating files:  68% (22206/32655)
Updating files:  69% (22532/32655)
Updating files:  70% (22859/32655)
Updating files:  71% (23186/32655)
Updating files:  72% (23512/32655)
Updating files:  73% (23839/32655)
Updating files:  74% (24165/32655)
Updating files:  75% (24492/32655)
Updating files:  76% (24818/32655)
Updating files:  77% (25145/32655)
Updating files:  78% (25471/32655)
Updating files:  79% (25798/32655)
Updating files:  80% (26124/32655)
Updating files:  81% (26451/32655)
Updating files:  82% (26778/32655)
Updating files:  83% (27104/32655)
Updating files:  83% (27141/32655)
Updating files:  84% (27431/32655)
Updating files:  85% (27757/32655)
Updating files:  86% (28084/32655)
Updating files:  87% (28410/32655)
Updating files:  88% (28737/32655)
Updating files:  89% (29063/32655)
Updating files:  90% (29390/32655)
Updating files:  91% (29717/32655)
Updating files:  92% (30043/32655)
Updating files:  93% (30370/32655)
Updating files:  94% (30696/32655)
Updating files:  95% (31023/32655)
Updating files:  96% (31349/32655)
Updating files:  97% (31676/32655)
Updating files:  98% (32002/32655)
Updating files:  99% (32329/32655)
Updating files: 100% (32655/32655)
Updating files: 100% (32655/32655), done.
HEAD is now at e6b4b6b9a3 Fix PostgreSQL on Cygwin
HEAD is now at d4c6a48080 Merge pull request #26854 from balat/opam-publish-ocsigen-toolkit.4.1.0
Merge made by the 'ort' strategy.
 packages/ocamlfind/ocamlfind.1.9.7/opam | 44 +++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 packages/ocamlfind/ocamlfind.1.9.7/opam

(from ocaml/opam:debian-12-ocaml-5.2@sha256:52da7e31b0777223dd1032ca10393b8ce827709c772dbb421239a1b474af2f82)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.2@sha256:52da7e31b0777223dd1032ca10393b8ce827709c772dbb421239a1b474af2f82' locally
docker.io/ocaml/opam@sha256:52da7e31b0777223dd1032ca10393b8ce827709c772dbb421239a1b474af2f82: Pulling from ocaml/opam
Digest: sha256:52da7e31b0777223dd1032ca10393b8ce827709c772dbb421239a1b474af2f82
Status: Downloaded newer image for ocaml/opam@sha256:52da7e31b0777223dd1032ca10393b8ce827709c772dbb421239a1b474af2f82
2024-11-13 13:54.58 ---> saved as "56bc5244e71c39f2dc6757c60e7cca1dccb6a3380ef909ca321e0d0f5239221c"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-11-13 13:54.58 ---> saved as "f18d1838b2a2bcb47f25ffcd9dc82adb1f9d35e360c5c068db4715eebe824517"

/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, 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-11-13 13:56.43 ---> saved as "ec9568ec9b0d2c0108647a5206bb6b1a0b97b9221583b11919d2ba5ecaf13086"

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 6.8.0-45-generic
The OCaml toplevel, version 5.2.0
2.4.0~alpha1~dev
2024-11-13 13:56.43 ---> saved as "3075b964f00e62b85bf263ddd98f616ea8ffa083f513f17fa99e0640464dfadf"

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 1000)

/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-11-13 13:56.54 ---> saved as "22ed47251c89da2edf4431796681df29f1c78a4c3d3f5cdb1313cb0231a51e1c"

/home/opam: (copy (src .) (dst opam-repository/))
2024-11-13 13:58.37 ---> saved as "fbefcca83a2fd65042a96a5b40e96604efc458695296da4c9c73595d430e1c69"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-11-13 13:59.45 ---> saved as "352932ffb51fd5e55622f071ff21e7597b5963ae970f6f8fef5abf0287f946fb"

/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 [55.4 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 ppc64el Packages [196 kB]
- Fetched 299 kB in 0s (649 kB/s)
- Reading package lists...
- 
2024-11-13 13:59.47 ---> saved as "71211d257c7f55e9410d558ca326f5fc285ec4f925562c92f10d6b6a0346a452"

/home/opam: (run (shell "opam pin add -k version -yn ocamlfind.1.9.7 1.9.7"))
ocamlfind is now pinned to version 1.9.7
2024-11-13 13:59.48 ---> saved as "3c55117f7050cf662d781bed492a2b617d9b5781e56b8d562cd2ff59b3733a7e"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ocamlfind.1.9.7;\
                        \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\" != 'ocamlfind.1.9.7' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ocamlfind.1.9.7 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 1 package
  - install ocamlfind 1.9.7 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ocamlfind.1.9.7  (cached)
-> installed ocamlfind.1.9.7
Done.
# To update the current shell environment, run: eval $(opam env)
2024-11-13 14:00.04 ---> saved as "6930f45ef73306a70d2257c5abecae0e98025b5d91606e23b6ceb8c8649e16fe"
Job succeeded
2024-11-13 14:00.27: Job succeeded