(for PR #27458)

2025-02-16 23:42.35: New job: build gettext.0.5.0, using opam 2.1
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27458/head (e73fb24dc0ddbf5840eab7d67368c66e6f23ddb9)
                              on debian-12-ocaml-4.14/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/27458/head" && git reset --hard e73fb24d
git fetch origin master
git merge --no-edit a17a63ad3c59d7e1f745e87d85b858a34e0cda25
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:9b775b697973e1ebd27879dfd8615cebf1e59a04a21bc5655bc51ca0eeb7981d
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.1 /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 gettext.0.5.0 0.5.0
RUN opam reinstall gettext.0.5.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 "\"debian-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'gettext.0.5.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-02-16 23:42.35: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:9b775b697973e1ebd27879dfd8615cebf1e59a04a21bc5655bc51ca0eeb7981d-gettext.0.5.0-e73fb24dc0ddbf5840eab7d67368c66e6f23ddb9"
2025-02-16 23:42.35: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:9b775b697973e1ebd27879dfd8615cebf1e59a04a21bc5655bc51ca0eeb7981d)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /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 gettext.0.5.0 0.5.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall gettext.0.5.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 \"\\\"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\" != 'gettext.0.5.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-02-16 23:42.35: Waiting for resource in pool OCluster
2025-02-16 23:44.25: Waiting for worker…
2025-02-16 23:51.36: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at a17a63ad3c Merge pull request #27452 from chetmurthy/release-pcre2-ocaml-8.0.3
Updating a17a63ad3c..e73fb24dc0
Fast-forward
 .../gettext-camomile/gettext-camomile.0.5.0/opam   | 43 +++++++++++++++++
 packages/gettext-stub/gettext-stub.0.5.0/opam      | 50 ++++++++++++++++++++
 packages/gettext/gettext.0.5.0/opam                | 54 ++++++++++++++++++++++
 3 files changed, 147 insertions(+)
 create mode 100644 packages/gettext-camomile/gettext-camomile.0.5.0/opam
 create mode 100644 packages/gettext-stub/gettext-stub.0.5.0/opam
 create mode 100644 packages/gettext/gettext.0.5.0/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:9b775b697973e1ebd27879dfd8615cebf1e59a04a21bc5655bc51ca0eeb7981d)
2025-02-16 23:51.38 ---> using "25d8f449c53ac4ceb7bc92684a0577e52cccab1d904fe59a3f2b38a998bb7c0f" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2025-02-16 23:51.38 ---> using "e98440a79fef9443f86ff4a4012bfe51927b325813768cfcf08e7fdf6989f6c8" 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 development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.1, which can't be reverted.
You may want to back it up before going further.

Continue? [Y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] no changes from git+https://github.com/ocaml/opam-repository-archive
[default] synchronised from file:///home/opam/opam-repository
2025-02-16 23:51.38 ---> using "272f60821a91b18428ccb95ccf7e891fceb4702f672d3cd74f8e93613e94d7db" 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.1.6 (263921263e1f745613e2882745114b7b08f3608b) 
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=12
# solver               builtin-0install
# install-criteria     
# upgrade-criteria     
# jobs                 39
# repositories         1 (local), 1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-02-16 23:51.38 ---> using "a5639ac32f41a2a91e01036ea47d5a6b1487252a64d02aaadf19fb253c564d86" 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-02-16 23:51.38 ---> using "28e1ba8ea95fd4bb6af27c324662ef1d234013c6519b9eba646ba67ce4f56a53" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-02-16 23:51.39 ---> using "e2314402991f4b3c40231823ff606e335a087fb0e4980acd5272dcfdc9ca5724" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-02-16 23:51.39 ---> using "a576a23b1d6e307805b4e2cf0f0fd2040d67c9158eb8f62d2eccff9afe6942d1" from cache

/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 amd64 Packages [245 kB]
- Fetched 348 kB in 1s (416 kB/s)
- Reading package lists...
- 
2025-02-16 23:51.39 ---> using "c956e4c7e0fe7ed0f9d938369cebf9ed4db69fd4faec218140ae41e2cff93428" from cache

/home/opam: (run (shell "opam pin add -k version -yn gettext.0.5.0 0.5.0"))
gettext is now pinned to version 0.5.0
2025-02-16 23:51.40 ---> saved as "a8c85de8948169cef912ae25fb0ecc7d31c7274dd1a80a54a7f22cc803830065"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall gettext.0.5.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 \"\\\"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\" != 'gettext.0.5.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
gettext.0.5.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install dune              3.17.2 [required by gettext]
  - install pp                2.0.0  [required by dune-private-libs]
  - install ordering          3.17.2 [required by dyn, stdune]
  - install fileutils         0.6.6  [required by gettext]
  - install csexp             1.5.2  [required by dune-private-libs]
  - install cppo              1.8.0  [required by gettext]
  - install dyn               3.17.2 [required by dune-private-libs]
  - install stdune            3.17.2 [required by dune-private-libs]
  - install dune-private-libs 3.17.2 [required by dune-site]
  - install dune-site         3.17.2 [required by gettext]
  - install gettext           0.5.0*
===== 11 to install =====

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved dune.3.17.2  (cached)
-> retrieved dune-private-libs.3.17.2  (cached)
-> retrieved dune-site.3.17.2  (cached)
-> retrieved dyn.3.17.2  (cached)
-> retrieved fileutils.0.6.6  (cached)
-> retrieved gettext.0.5.0  (cached)
-> retrieved ordering.3.17.2  (cached)
-> retrieved pp.2.0.0  (cached)
-> retrieved stdune.3.17.2  (cached)
-> installed dune.3.17.2
-> installed csexp.1.5.2
-> installed fileutils.0.6.6
-> installed pp.2.0.0
-> installed cppo.1.8.0
-> installed ordering.3.17.2
-> installed dyn.3.17.2
-> installed stdune.3.17.2
-> installed dune-private-libs.3.17.2
-> installed dune-site.3.17.2
-> installed gettext.0.5.0
Done.
# Run eval $(opam env) to update the current shell environment
2025-02-16 23:52.27 ---> saved as "b8532d466d04a0e942c6eea4bc8f1a6382a63f6ed7b92f8f3b58ee5d6fba4822"
Job succeeded
2025-02-16 23:52.36: Job succeeded