(for PR #28921)

2025-11-18 22:19.44: New job: build conf-oniguruma.1, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28921/head (63a577a02b5ba9eb1a09570a4dc51dda3e0a594d)
                              on centos-10-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/28921/head" && git reset --hard 63a577a0
git fetch origin master
git merge --no-edit 5b6623e1a6044ddcc5808644cab9ba88dfd5e8c3
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:centos-10-ocaml-5.4@sha256:6b0bc66e3e3b074acf9d788b0cf9ee5d700156e6142d658983fac56221dd81d2
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-oniguruma.1 1
RUN opam reinstall conf-oniguruma.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 "\"centos-10\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-oniguruma.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 .

2025-11-18 22:19.44: Using cache hint "ocaml/opam:centos-10-ocaml-5.4@sha256:6b0bc66e3e3b074acf9d788b0cf9ee5d700156e6142d658983fac56221dd81d2-conf-oniguruma.1-63a577a02b5ba9eb1a09570a4dc51dda3e0a594d"
2025-11-18 22:19.44: Using OBuilder spec:
((from ocaml/opam:centos-10-ocaml-5.4@sha256:6b0bc66e3e3b074acf9d788b0cf9ee5d700156e6142d658983fac56221dd81d2)
 (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-oniguruma.1 1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-oniguruma.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 \"\\\"centos-10\\\"\"; 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-oniguruma.1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-11-18 22:19.44: Waiting for resource in pool OCluster
2025-11-18 22:19.45: Waiting for worker…
2025-11-18 22:20.46: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
Updating files:  66% (12410/18771)
Updating files:  67% (12577/18771)
Updating files:  68% (12765/18771)
Updating files:  69% (12952/18771)
Updating files:  70% (13140/18771)
Updating files:  71% (13328/18771)
Updating files:  72% (13516/18771)
Updating files:  73% (13703/18771)
Updating files:  74% (13891/18771)
Updating files:  75% (14079/18771)
Updating files:  76% (14266/18771)
Updating files:  77% (14454/18771)
Updating files:  78% (14642/18771)
Updating files:  79% (14830/18771)
Updating files:  80% (15017/18771)
Updating files:  81% (15205/18771)
Updating files:  82% (15393/18771)
Updating files:  83% (15580/18771)
Updating files:  84% (15768/18771)
Updating files:  85% (15956/18771)
Updating files:  86% (16144/18771)
Updating files:  87% (16331/18771)
Updating files:  88% (16519/18771)
Updating files:  89% (16707/18771)
Updating files:  90% (16894/18771)
Updating files:  91% (17082/18771)
Updating files:  92% (17270/18771)
Updating files:  93% (17458/18771)
Updating files:  94% (17645/18771)
Updating files:  95% (17833/18771)
Updating files:  96% (18021/18771)
Updating files:  97% (18208/18771)
Updating files:  98% (18396/18771)
Updating files:  99% (18584/18771)
Updating files: 100% (18771/18771)
Updating files: 100% (18771/18771), done.
HEAD is now at 5b6623e1a6 Merge pull request #28905 from lindig/expr
Updating 5b6623e1a6..63a577a02b
Fast-forward
 packages/conf-oniguruma/conf-oniguruma.1/opam | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(from ocaml/opam:centos-10-ocaml-5.4@sha256:6b0bc66e3e3b074acf9d788b0cf9ee5d700156e6142d658983fac56221dd81d2)
2025-11-18 22:22.43 ---> saved as "e55c4363cedceba76079627e3602fb47bf0091fb3a2dab1173660f0397ec6334"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-11-18 22:22.44 ---> saved as "9eb66a8916d4190c12b9cb9cb74b17ca4dc8200f847478936e788337d460f49d"

/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
2025-11-18 22:23.18 ---> saved as "b0c132a14154644e2166fecff0120cf5670e428edc022049b8b7fcac6b61b6d6"

/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~beta1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=centos os-version=10
# 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.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
2025-11-18 22:23.19 ---> saved as "25016c1f6dd8c812f1f94fa1f312bb67c6c233b2dba88d09f087e5767409567d"

/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-11-18 22:23.34 ---> saved as "bb0f80462e9a4babeae520c31132db60cf4e723a4885ab151098a29277a35df8"

/home/opam: (copy (src .) (dst opam-repository/))
2025-11-18 22:24.31 ---> saved as "78d52f66a913ef722b09454c50e4de07c6ae6aa23cf479391e9001862bd45a62"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-11-18 22:24.55 ---> saved as "9b411c1f6d9c681a600346886decc7a34836bdddf6b94f25b930997932dc72f5"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- CentOS Stream 10 - BaseOS                        69 kB/s |  14 kB     00:00    
- CentOS Stream 10 - BaseOS                       9.6 MB/s | 6.8 MB     00:00    
- CentOS Stream 10 - AppStream                    142 kB/s |  14 kB     00:00    
- CentOS Stream 10 - AppStream                    8.0 MB/s | 3.4 MB     00:00    
- CentOS Stream 10 - CRB                          115 kB/s |  13 kB     00:00    
- CentOS Stream 10 - CRB                          3.6 MB/s | 763 kB     00:00    
- CentOS Stream 10 - Extras packages              124 kB/s |  16 kB     00:00    
- Metadata cache created.
2025-11-18 22:25.03 ---> saved as "9f17b88f388ed3586cb39f6fce52b557893a27945a26729536c29fd001341e95"

/home/opam: (run (shell "opam pin add -k version -yn conf-oniguruma.1 1"))
conf-oniguruma is now pinned to version 1
2025-11-18 22:25.03 ---> saved as "dd038f12f1443b818d44746bb925162bac70c49fa5f603311c3cb5f702fc27d8"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-oniguruma.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 \"\\\"centos-10\\\"\"; 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-oniguruma.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-oniguruma.1 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 2 packages
  - install conf-oniguruma  1 (pinned)
  - install conf-pkg-config 4          [required by conf-oniguruma]

The following system packages will first need to be installed:
    oniguruma-devel

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

opam believes some required external dependencies are missing. opam can:
> 1. Run yum to install them (may need root/sudo access)
  2. Display the recommended yum 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 "yum" "install" "-y" "oniguruma-devel"
- Last metadata expiration check: 0:00:07 ago on Tue Nov 18 22:25:01 2025.
- Dependencies resolved.
- ================================================================================
-  Package                Architecture  Version               Repository     Size
- ================================================================================
- Installing:
-  oniguruma-devel        x86_64        6.9.9-7.el10          crb            62 k
- Installing dependencies:
-  oniguruma              x86_64        6.9.9-7.el10          baseos        216 k
- 
- Transaction Summary
- ================================================================================
- Install  2 Packages
- 
- Total download size: 279 k
- Installed size: 1.0 M
- Downloading Packages:
- (1/2): oniguruma-devel-6.9.9-7.el10.x86_64.rpm  1.9 MB/s |  62 kB     00:00    
- (2/2): oniguruma-6.9.9-7.el10.x86_64.rpm        3.3 MB/s | 216 kB     00:00    
- --------------------------------------------------------------------------------
- Total                                           1.0 MB/s | 279 kB     00:00     
- Running transaction check
- Transaction check succeeded.
- Running transaction test
- Transaction test succeeded.
- Running transaction
-   Preparing        :                                                        1/1
-  
-   Installing       : oniguruma-6.9.9-7.el10.x86_64                          1/2 
-   Installing       : oniguruma-devel-6.9.9-7.el10.x86_64                    2/2 
-   Running scriptlet: oniguruma-devel-6.9.9-7.el10.x86_64                    2/2 
- 
- Installed:
-   oniguruma-6.9.9-7.el10.x86_64       oniguruma-devel-6.9.9-7.el10.x86_64      
- 
- Complete!
+ /usr/bin/rpm "-q" "--whatprovides" "oniguruma-devel"
- oniguruma-devel-6.9.9-7.el10.x86_64

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-pkg-config.4
-> installed conf-oniguruma.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-11-18 22:25.11 ---> saved as "4f516dd29853e4034b72e5f6c724a5de75f4ae22b5c6eeec97a241704b51c032"
Job succeeded
2025-11-18 22:25.27: Job succeeded