(for PR #27798)

2026-01-12 13:21.31: New job: build conf-magick-core6.1, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27798/head (a42564e5e1564b7351bcc8fa077725a8fa704e3e)
                              on opensuse-16.0-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/27798/head" && git reset --hard a42564e5
git fetch origin master
git merge --no-edit 2bf2bf6ea0c8867eede5e26c1c591999dd5a9ee1
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-16.0-ocaml-5.4@sha256:b4c4078273e87bccedd39788dec2f1547d525cdade7f23d755aa37113ddc398a
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 conf-magick-core6.1 1
RUN opam reinstall conf-magick-core6.1; \
    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-16.0\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-magick-core6.1' && 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-01-12 13:21.31: Using cache hint "ocaml/opam:opensuse-16.0-ocaml-5.4@sha256:b4c4078273e87bccedd39788dec2f1547d525cdade7f23d755aa37113ddc398a-conf-magick-core6.1-a42564e5e1564b7351bcc8fa077725a8fa704e3e"
2026-01-12 13:21.31: Using OBuilder spec:
((from ocaml/opam:opensuse-16.0-ocaml-5.4@sha256:b4c4078273e87bccedd39788dec2f1547d525cdade7f23d755aa37113ddc398a)
 (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 conf-magick-core6.1 1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-magick-core6.1;\
             \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-16.0\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'conf-magick-core6.1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-01-12 13:21.31: Connecting to build cluster…
2026-01-12 13:21.31: Waiting for resource in pool OCluster
2026-01-12 13:23.16: Waiting for worker…
2026-01-12 13:27.41: Got resource from pool OCluster
Building on odawa.caelum.ci.dev
All commits already cached
HEAD is now at 2bf2bf6ea0 Merge pull request #29204 from jserot/opam-publish-rfsm.2.3
Merge made by the 'ort' strategy.
 packages/conf-magick-core6/conf-magick-core6.1/opam | 20 ++++++++++++++++++++
 packages/conf-magick-core7/conf-magick-core7.1/opam | 20 ++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 packages/conf-magick-core6/conf-magick-core6.1/opam
 create mode 100644 packages/conf-magick-core7/conf-magick-core7.1/opam

(from ocaml/opam:opensuse-16.0-ocaml-5.4@sha256:b4c4078273e87bccedd39788dec2f1547d525cdade7f23d755aa37113ddc398a)
Unable to find image 'ocaml/opam:opensuse-16.0-ocaml-5.4@sha256:b4c4078273e87bccedd39788dec2f1547d525cdade7f23d755aa37113ddc398a' locally
docker.io/ocaml/opam@sha256:b4c4078273e87bccedd39788dec2f1547d525cdade7f23d755aa37113ddc398a: Pulling from ocaml/opam
64cfa2a65095: Already exists
1edcfb1efe19: Already exists
3ddbff1fae48: Already exists
6f97b42e121d: Already exists
35edc2941e66: Already exists
664494e6aa3b: Already exists
6e72e374834b: Already exists
9897d53e41d9: Already exists
5955f0d634c5: Already exists
39569ccf3df4: Already exists
3835c4318084: Already exists
549825d0ab03: Already exists
6e7368d99114: Already exists
cb6191f3eef1: Already exists
188d98a9d457: Already exists
d034bf0e16e1: Already exists
8cb90b8f1fc2: Already exists
5fad6a4c52b5: Already exists
debd84a910b3: Already exists
4f4fb700ef54: Already exists
152a68323944: Already exists
1f7f98a5f0d2: Already exists
667866023596: Already exists
474d64aaa83a: Already exists
81e9448f8d7d: Already exists
8f7471ae6f30: Already exists
ba1c9d522099: Already exists
847d9b38068d: Already exists
6c1cb3b3dd7c: Already exists
30a81ee5e9b7: Already exists
b395d300d073: Already exists
689e54a1bb6f: Already exists
cfba20ff1fbb: Already exists
d6503c133859: Already exists
3dcf084af38f: Already exists
22043404df4c: Already exists
780f53a6c5cb: Already exists
38b848127537: Already exists
7d097aa57719: Pulling fs layer
6d4fee4093bd: Pulling fs layer
923f8d6aefab: Pulling fs layer
ffa955d5e936: Pulling fs layer
39bed0558f8a: Pulling fs layer
7bc20d60116c: Pulling fs layer
9abb721d7658: Pulling fs layer
ffa955d5e936: Waiting
39bed0558f8a: Waiting
9abb721d7658: Waiting
7bc20d60116c: Waiting
7d097aa57719: Verifying Checksum
7d097aa57719: Download complete
7d097aa57719: Pull complete
6d4fee4093bd: Verifying Checksum
6d4fee4093bd: Download complete
6d4fee4093bd: Pull complete
923f8d6aefab: Download complete
923f8d6aefab: Pull complete
39bed0558f8a: Verifying Checksum
39bed0558f8a: Download complete
9abb721d7658: Verifying Checksum
9abb721d7658: Download complete
7bc20d60116c: Verifying Checksum
7bc20d60116c: Download complete
ffa955d5e936: Verifying Checksum
ffa955d5e936: Download complete
ffa955d5e936: Pull complete
39bed0558f8a: Pull complete
7bc20d60116c: Pull complete
9abb721d7658: Pull complete
Digest: sha256:b4c4078273e87bccedd39788dec2f1547d525cdade7f23d755aa37113ddc398a
Status: Downloaded newer image for ocaml/opam@sha256:b4c4078273e87bccedd39788dec2f1547d525cdade7f23d755aa37113ddc398a
2026-01-12 13:28.05 ---> using "b406375448d05c740c3dfe01a84fe3cd4b6f40cee7cc2d77fc552f60deaa28cc" 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-01-12 13:28.05 ---> using "9d16cd35284e14fb6e0df42923cf19d87aa63616d68c318f491ab32eb166fa51" 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-01-12 13:28.05 ---> using "c971d2f72b7bd8ed3a79194099d3c2a0f988c873c259b6b73f382a9b23201bd2" 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=x86_64 os=linux os-distribution=opensuse-leap os-version=16.0
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# 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
2026-01-12 13:28.05 ---> using "760bf56f18425d9a34fcf28594c35601937376e700ed03dfd872869a09e8170e" 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-01-12 13:28.05 ---> using "33a9e37cad08fa7273f962bc92088ff3b7b341181e16cba882792926f5b5b954" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-12 13:28.17 ---> saved as "fb67d1c712da9f90ce99beaefb8d15b73a174f52e9e8e14ef5fa172bb8bbf1c1"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-12 13:28.34 ---> saved as "8b902d8eba83975219990d0e604d39a579b7853ca1f2de54db9bf8c2c2144dfb"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Repository 'repo-openh264 (16.0)' is up to date.
- Repository 'repo-oss (16.0)' is up to date.
- All repositories have been refreshed.
2026-01-12 13:28.35 ---> saved as "ed42615bfe1a8a69cda57254f7d5dd7fe1dec7dd537f17037cd63481b0d9b4e9"

/home/opam: (run (shell "opam pin add -k version -yn conf-magick-core6.1 1"))
conf-magick-core6 is now pinned to version 1
2026-01-12 13:28.36 ---> saved as "33e8e31930881acb469b6422a08495b6bd5a706f6e268a27bed514adf3a3fdc4"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-magick-core6.1;\
                        \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-16.0\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'conf-magick-core6.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
conf-magick-core6.1 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 2 packages
  - install conf-magick-core6 1 (pinned)
  - install conf-pkg-config   4          [required by conf-magick-core6]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-pkg-config.4
[ERROR] The compilation of conf-magick-core6.1 failed at "sh -c pkg-config --exists MagickCore && pkg-config --modversion MagickCore | awk -F. '{ if ($1 == 6) exit 0; else exit 1; }'".

#=== ERROR while compiling conf-magick-core6.1 ================================#
# context              2.5.0 | linux/x86_64 | ocaml-base-compiler.5.4.0 | pinned
# path                 ~/.opam/5.4/.opam-switch/build/conf-magick-core6.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build sh -c pkg-config --exists MagickCore && pkg-config --modversion MagickCore | awk -F. '{ if ($1 == 6) exit 0; else exit 1; }'
# exit-code            1
# env-file             ~/.opam/log/conf-magick-core6-7-dd1fa1.env
# output-file          ~/.opam/log/conf-magick-core6-7-dd1fa1.out



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build conf-magick-core6 1
+- 
+- The following changes have been performed
| - install conf-pkg-config 4
+- 
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/5.4/.opam-switch/backup/state-20260112132836.export"
[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 conf-magick-core6.1;
        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-16.0\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-magick-core6.1' && 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
2026-01-12 13:28.46: Job failed: Failed: Build failed
2026-01-12 13:28.46: Log analysis:
2026-01-12 13:28.46: >>> 
[ERROR] The compilation of conf-magick-core6.1 failed at "sh -c pkg-config --exists MagickCore && pkg-config --modversion MagickCore | awk -F. '{ if ($1 == 6) exit 0; else exit 1; }'".
 (score = 20)
2026-01-12 13:28.46: The compilation of conf-magick-core6.1 failed at "sh -c pkg-config --exists MagickCore && pkg-config --modversion MagickCore | awk -F. '{ if ($1 == 6) exit 0; else exit 1; }'".