(for PR #27917)

2025-05-23 16:30.07: New job: build conf-gnomecanvas.2, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27917/head (27629106677025daf0a3cb209da4a6bd766041d6)
                              on opensuse-15.6-ocaml-5.3/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/27917/head" && git reset --hard 27629106
git fetch origin master
git merge --no-edit d4d1aa63ab7830b868cb8cbd85e076c699d8eb06
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-15.6-ocaml-5.3@sha256:e7b964d91598a8844fd3d94c94859365dfb16bea903b1b3dcf0c6c2f8eab824c
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /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-gnomecanvas.2 2
RUN opam reinstall conf-gnomecanvas.2; \
    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-15.6\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-gnomecanvas.2' && 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 .

2025-05-23 16:30.07: Using cache hint "ocaml/opam:opensuse-15.6-ocaml-5.3@sha256:e7b964d91598a8844fd3d94c94859365dfb16bea903b1b3dcf0c6c2f8eab824c-conf-gnomecanvas.2-27629106677025daf0a3cb209da4a6bd766041d6"
2025-05-23 16:30.07: Using OBuilder spec:
((from ocaml/opam:opensuse-15.6-ocaml-5.3@sha256:e7b964d91598a8844fd3d94c94859365dfb16bea903b1b3dcf0c6c2f8eab824c)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.3 /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-gnomecanvas.2 2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-gnomecanvas.2;\
             \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-15.6\\\"\"; 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-gnomecanvas.2' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-05-23 16:30.07: Waiting for resource in pool OCluster
2025-05-23 16:30.08: Waiting for worker…
2025-05-23 16:30.42: Got resource from pool OCluster
Building on phoebe.caelum.ci.dev
All commits already cached
Updating files:  53% (12303/23088)
Updating files:  54% (12468/23088)
Updating files:  55% (12699/23088)
Updating files:  56% (12930/23088)
Updating files:  57% (13161/23088)
Updating files:  58% (13392/23088)
Updating files:  59% (13622/23088)
Updating files:  60% (13853/23088)
Updating files:  61% (14084/23088)
Updating files:  62% (14315/23088)
Updating files:  63% (14546/23088)
Updating files:  64% (14777/23088)
Updating files:  65% (15008/23088)
Updating files:  66% (15239/23088)
Updating files:  67% (15469/23088)
Updating files:  68% (15700/23088)
Updating files:  69% (15931/23088)
Updating files:  70% (16162/23088)
Updating files:  71% (16393/23088)
Updating files:  72% (16624/23088)
Updating files:  73% (16855/23088)
Updating files:  74% (17086/23088)
Updating files:  75% (17316/23088)
Updating files:  76% (17547/23088)
Updating files:  77% (17778/23088)
Updating files:  78% (18009/23088)
Updating files:  79% (18240/23088)
Updating files:  80% (18471/23088)
Updating files:  81% (18702/23088)
Updating files:  82% (18933/23088)
Updating files:  83% (19164/23088)
Updating files:  84% (19394/23088)
Updating files:  85% (19625/23088)
Updating files:  86% (19856/23088)
Updating files:  87% (20087/23088)
Updating files:  88% (20318/23088)
Updating files:  89% (20549/23088)
Updating files:  90% (20780/23088)
Updating files:  91% (21011/23088)
Updating files:  92% (21241/23088)
Updating files:  93% (21472/23088)
Updating files:  94% (21703/23088)
Updating files:  95% (21934/23088)
Updating files:  96% (22165/23088)
Updating files:  97% (22396/23088)
Updating files:  98% (22627/23088)
Updating files:  99% (22858/23088)
Updating files: 100% (23088/23088)
Updating files: 100% (23088/23088), done.
HEAD is now at d4d1aa63ab Merge pull request #27896 from aqjune/hol
Updating d4d1aa63ab..2762910667
Fast-forward
 packages/conf-gnomecanvas/conf-gnomecanvas.2/opam  | 16 ++++++++++++++--
 .../conf-mingw-w64-gnomecanvas-i686.1/opam         | 19 +++++++++++++++++++
 .../conf-mingw-w64-gnomecanvas-x86_64.1/opam       | 22 ++++++++++++++++++++++
 3 files changed, 55 insertions(+), 2 deletions(-)
 create mode 100644 packages/conf-mingw-w64-gnomecanvas-i686/conf-mingw-w64-gnomecanvas-i686.1/opam
 create mode 100644 packages/conf-mingw-w64-gnomecanvas-x86_64/conf-mingw-w64-gnomecanvas-x86_64.1/opam

(from ocaml/opam:opensuse-15.6-ocaml-5.3@sha256:e7b964d91598a8844fd3d94c94859365dfb16bea903b1b3dcf0c6c2f8eab824c)
2025-05-23 16:34.42 ---> using "5ebce3078283acce5b924fd7bf23a00ec8813a4d8cdec297a1d96c072ac35b1f" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-05-23 16:34.42 ---> using "e0ef4ca4224b2c4dea7420d7e2175335b71aacdac1e3bf5c59e9fa8554f5696c" 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.

Continue? [y/n] y
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.

Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-05-23 16:34.42 ---> using "40bd948da967720593e44d4b303f3ec6d9e1f272d88416c59c4b913b9aaf0b0b" 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.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=opensuse-leap os-version=15.6
# 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       5.3
# invariant            ["ocaml-base-compiler" {>= "5.3.0"}]
# compiler-packages    ocaml-base-compiler.5.3.0, ocaml-compiler.5.3.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.3/lib/ocaml/stublibs:/home/opam/.opam/5.3/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-05-23 16:34.42 ---> using "8e38756c922510176773fd8089578b97369b763a694fa905b6cac05085ce9b82" 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/"))
2025-05-23 16:34.42 ---> using "3675a7d683e502fcf9598edbf61032f14c557974541376c60928948d127c0397" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-05-23 16:34.44 ---> using "e12cf48fc2385d309c14ddc3d9f9f96bad40fd5ccc7f07219097b705f86fc6a8" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-05-23 16:34.44 ---> using "182334019c90e5ea9af5e4ab5801c8af0b50fcc274139792317cdcd9f0b1d8a3" from cache

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Retrieving repository 'Update repository of openSUSE Backports' metadata [.....
- ..........
- .done]
- Building repository 'Update repository of openSUSE Backports' cache [....done]
- Retrieving repository 'Update repository with updates from SUSE Linux Enterprise 15' metadata [.
- .........
- .........
- ..........
- ..........
- .........
- ..........
- ..........
- ........
- .....
- .........
- .....done]
- Building repository 'Update repository with updates from SUSE Linux Enterprise 15' cache [..
- ..done]
- Repository 'Main Update Repository' is up to date.
- Repository 'Update Repository (Non-Oss)' is up to date.
- Repository 'Non-OSS Repository' is up to date.
- Repository 'Main Repository' is up to date.
- All repositories have been refreshed.
2025-05-23 16:35.08 ---> saved as "197c1d6c549c380beecbfc1a0792eda14e260f90b3378c85db0cdd9d761f4183"

/home/opam: (run (shell "opam pin add -k version -yn conf-gnomecanvas.2 2"))
conf-gnomecanvas is now pinned to version 2
2025-05-23 16:35.09 ---> saved as "22193bcdbc14e2982520756b94df41afcf8e260a60dd59e359da98b62aee91a0"

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

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-pkg-config.4
[ERROR] The compilation of conf-gnomecanvas.2 failed at "pkg-config libgnomecanvas-2.0".

#=== ERROR while compiling conf-gnomecanvas.2 =================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.5.3.0 | pinned
# path                 ~/.opam/5.3/.opam-switch/build/conf-gnomecanvas.2
# command              ~/.opam/opam-init/hooks/sandbox.sh build pkg-config libgnomecanvas-2.0
# exit-code            1
# env-file             ~/.opam/log/conf-gnomecanvas-7-ff31bb.env
# output-file          ~/.opam/log/conf-gnomecanvas-7-ff31bb.out



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build conf-gnomecanvas 2
+- 
+- 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.3/.opam-switch/backup/state-20250523163510.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-gnomecanvas.2;
        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-15.6\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-gnomecanvas.2' && 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
2025-05-23 16:35.59: Job failed: Failed: Build failed
2025-05-23 16:35.59: Log analysis:
2025-05-23 16:35.59: >>> 
[ERROR] The compilation of conf-gnomecanvas.2 failed at "pkg-config libgnomecanvas-2.0".
 (score = 20)
2025-05-23 16:35.59: The compilation of conf-gnomecanvas.2 failed at "pkg-config libgnomecanvas-2.0".