(for PR #28031)

2025-06-16 07:58.05: New job: build graphics.5.2.0, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28031/head (e6e460d07eec225f9bf29a0ba5b9af37215d04b7)
                              on freebsd-14.2-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/28031/head" && git reset --hard e6e460d0
git fetch origin master
git merge --no-edit c7269f729a780d8cad2232be10de94ac8da8381e
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM freebsd-14.2-ocaml-5.3
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/local/bin/opam-2.3 /usr/local/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 graphics.5.2.0 5.2.0
RUN opam reinstall graphics.5.2.0; \
    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 "\"freebsd-14.2\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'graphics.5.2.0' && 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-06-16 07:58.05: Using cache hint "freebsd-14.2-ocaml-5.3-graphics.5.2.0-e6e460d07eec225f9bf29a0ba5b9af37215d04b7"
2025-06-16 07:58.05: Using OBuilder spec:
((from freebsd-14.2-ocaml-5.3)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/local/bin/opam-2.3 /usr/local/bin/opam"))
 (run (network host)
      (shell "opam init --reinit -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 graphics.5.2.0 5.2.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall graphics.5.2.0;\
             \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 \"\\\"freebsd-14.2\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'graphics.5.2.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-06-16 07:58.05: Waiting for resource in pool OCluster
2025-06-16 07:58.05: Waiting for worker…
2025-06-16 07:58.05: Got resource from pool OCluster
Building on rosemary
Updating files: 100% (23307/23307), done.
HEAD is now at 77ddde25eb 6 packages from bensmrs/gendarme at 0.3.0
HEAD is now at c7269f729a Merge pull request #28025 from xavierleroy/camlidl-1.13
Updating c7269f729a..e6e460d07e
Fast-forward
 packages/graphics/graphics.5.2.0/opam | 48 +++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 packages/graphics/graphics.5.2.0/opam

(from freebsd-14.2-ocaml-5.3)
2025-06-16 07:58.19 ---> using "47c9a03b962be450225081ed69acde1f5c6dadb6d1106d9b1a8b4fd61c2defa6" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/local/bin/opam-2.3 /usr/local/bin/opam"))
2025-06-16 07:58.19 ---> using "c100fcff2c574e3682914186172801ecf5aff24e34775f062038baff6ab92d09" from cache

/home/opam: (run (network host)
                 (shell "opam init --reinit -ni"))
No configuration file found, using 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.1 to version 2.2, which can't be reverted.
You may want to back it up before going further.

Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 1 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
           opam option jobs=1 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///home/opam/opam-repository
2025-06-16 07:58.20 ---> using "795fd05166930ba4ba9cad58e2d3788b4915a835784217393e74e9f87e2e9159" 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
# self-upgrade         no
# system               arch=x86_64 os=freebsd os-distribution=freebsd os-version=1402000
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 39
# repositories         1 (version-controlled)
# pinned               0
# current-switch       5.3.0
# invariant            ["ocaml-base-compiler" {= "5.3.0"} | "ocaml-system" {= "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.0/lib/ocaml/stublibs:/home/opam/.opam/5.3.0/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-06-16 07:58.20 ---> using "ff597a628b140c0da12c4190032d4f8ce25cc29eb9a812ed6ff0e3d186fb8562" 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-06-16 07:58.21 ---> using "57e3f7248fa0ab3baaa290ad1e0a00da01320b9679720df35c01763d06b21aa3" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-16 07:58.30 ---> saved as "4f075b269b4ed96dde9f06ea0ed452ad9df7853cb7de7a6e240b7db562f1e739"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-16 07:58.49 ---> saved as "a51a05c82c2e9fe02b32f7914906ea96822dfb9a68b2be56682283bb3fcd4f25"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
[WARNING] Unknown update command for bsd, skipping system update
2025-06-16 07:58.50 ---> saved as "ede9e17d12f270ad25b538cd66ac63928dbe9fcfdf151e1989f5280bb1a09df4"

/home/opam: (run (shell "opam pin add -k version -yn graphics.5.2.0 5.2.0"))
graphics is now pinned to version 5.2.0
2025-06-16 07:58.51 ---> saved as "85d4071e6295d6033f32ed77b98bb208e8fa20d6af58432de32337d9c6744a10"

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

The following system packages will first need to be installed:
    libX11 libXft

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run pkg to install them (may need root/sudo access)
  2. Display the recommended pkg 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/local/bin/sudo "pkg" "install" "-y" "libX11" "libXft"
- Updating FreeBSD repository catalogue...
- [rosemary] Fetching data.pkg: 
- ........
- .. done
- Processing entries: 
- ..
- ...
- ..
- ..
- . done
- FreeBSD repository update completed. 35989 packages processed.
- All repositories are up to date.
- The following 10 package(s) will be affected (of 0 checked):
- 
- New packages to be INSTALLED:
- 	fontconfig: 2.15.0_3,1
- 	freetype2: 2.13.3
- 	libX11: 1.8.12,1
- 	libXau: 1.0.11
- 	libXdmcp: 1.1.5
- 	libXft: 2.3.8
- 	libXrender: 0.9.12
- 	libxcb: 1.17.0
- 	png: 1.6.47
- 	xorgproto: 2024.1
- 
- Number of packages to be installed: 10
- 
- The process will require 23 MiB more space.
- 5 MiB to be downloaded.
- [rosemary] [1/10] Fetching png-1.6.47.pkg: .
- ......... done
- [rosemary] [2/10] Fetching libXau-1.0.11.pkg: . done
- [rosemary] [3/10] Fetching libxcb-1.17.0.pkg: .......... done
- [rosemary] [4/10] Fetching freetype2-2.13.3.pkg: .....
- ..... done
- [rosemary] [5/10] Fetching fontconfig-2.15.0_3,1.pkg: .......... done
- [rosemary] [6/10] Fetching libX11-1.8.12,1.pkg: .......... done
- [rosemary] [7/10] Fetching libXrender-0.9.12.pkg: .
- .. done
- [rosemary] [8/10] Fetching xorgproto-2024.1.pkg: .......... done
- [rosemary] [9/10] Fetching libXft-2.3.8.pkg: ..... done
- [rosemary] [10/10] Fetching libXdmcp-1.1.5.pkg: . done
- Checking integrity... done (0 conflicting)
- [rosemary] [1/10] Installing libXau-1.0.11...
- [rosemary] [1/10] Extracting libXau-1.0.11: .......... done
- [rosemary] [2/10] Installing png-1.6.47...
- [rosemary] [2/10] Extracting png-1.6.47: .......... done
- [rosemary] [3/10] Installing freetype2-2.13.3...
- [rosemary] [3/10] Extracting freetype2-2.13.3: .......... done
- [rosemary] [4/10] Installing fontconfig-2.15.0_3,1...
- [rosemary] [4/10] Extracting fontconfig-2.15.0_3,1: .......... done
- [rosemary] [5/10] Installing xorgproto-2024.1...
- [rosemary] [5/10] Extracting xorgproto-2024.1: .......... done
- [rosemary] [6/10] Installing libXdmcp-1.1.5...
- [rosemary] [6/10] Extracting libXdmcp-1.1.5: ......... done
- [rosemary] [7/10] Installing libxcb-1.17.0...
- [rosemary] [7/10] Extracting libxcb-1.17.0: .......... done
- [rosemary] [8/10] Installing libX11-1.8.12,1...
- [rosemary] [8/10] Extracting libX11-1.8.12,1: .......... done
- [rosemary] [9/10] Installing libXrender-0.9.12...
- [rosemary] [9/10] Extracting libXrender-0.9.12: .......... done
- [rosemary] [10/10] Installing libXft-2.3.8...
- [rosemary] [10/10] Extracting libXft-2.3.8: .......... done
- ==> Running trigger: fontconfig.ucl
- Running fc-cache to build fontconfig cache...
- =====
- Message from freetype2-2.13.3:
- 
- --
- The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
- the default, emulating a modern version of ClearType. This change inevitably
- leads to different rendering results, and you might change port's options to
- adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
- variable).
- 
- The environment variable "FREETYPE_PROPERTIES" can be used to control the
- driver properties. Example:
- 
- FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
- 	cff:no-stem-darkening=1 \
- 	autofitter:warping=1
- 
- This allows to select, say, the subpixel hinting mode at runtime for a given
- application.
- 
- If LONG_PCF_NAMES port's option was enabled, the PCF family names may include
- the foundry and information whether they contain wide characters. For example,
- "Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at
- run time with using pcf:no-long-family-names property, if needed. Example:
- 
- FREETYPE_PROPERTIES=pcf:no-long-family-names=1
- 
- How to recreate fontconfig cache with using such environment variable,
- if needed:
- # env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv
- 
- The controllable properties are listed in the section "Controlling FreeType
- Modules" in the reference's table of contents
- (/usr/local/share/doc/freetype2/reference/index.html, if documentation was installed).

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed conf-pkg-config.4
⬇ retrieved csexp.1.5.2  (cached)
∗ installed conf-libX11.1
∗ installed conf-libXft.1
⬇ retrieved dune.3.19.1, dune-configurator.3.19.1  (cached)
⬇ retrieved graphics.5.2.0  (https://github.com/ocaml/graphics/archive/refs/tags/5.2.0.tar.gz)
∗ installed dune.3.19.1
∗ installed csexp.1.5.2
∗ installed dune-configurator.3.19.1
∗ installed graphics.5.2.0
Done.
2025-06-16 07:59.46 ---> saved as "e5950456e42fce402db46cedadea98c6e850e76a90e50cf9d24f635b7a46d9b9"
Job succeeded
2025-06-16 07:59.53: Job succeeded