(for PR #27458)

2025-02-16 23:42.35: New job: build gettext.0.5.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27458/head (e73fb24dc0ddbf5840eab7d67368c66e6f23ddb9)
                              on alpine-3.21-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:alpine-3.21-ocaml-4.14@sha256:1b6e8a1c4a37099cb5bbd1042dae3b871bfa87f26c84dbe4599906c57258d141
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 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 "\"alpine-3.21\""; 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:alpine-3.21-ocaml-4.14@sha256:1b6e8a1c4a37099cb5bbd1042dae3b871bfa87f26c84dbe4599906c57258d141-gettext.0.5.0-e73fb24dc0ddbf5840eab7d67368c66e6f23ddb9"
2025-02-16 23:42.35: Using OBuilder spec:
((from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:1b6e8a1c4a37099cb5bbd1042dae3b871bfa87f26c84dbe4599906c57258d141)
 (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 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 \"\\\"alpine-3.21\\\"\"; 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:42.55: Waiting for worker…
2025-02-16 23:47.46: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  95% (22292/23371)
Updating files:  96% (22437/23371)
Updating files:  97% (22670/23371)
Updating files:  98% (22904/23371)
Updating files:  99% (23138/23371)
Updating files: 100% (23371/23371)
Updating files: 100% (23371/23371), done.
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:alpine-3.21-ocaml-4.14@sha256:1b6e8a1c4a37099cb5bbd1042dae3b871bfa87f26c84dbe4599906c57258d141)
Unable to find image 'ocaml/opam:alpine-3.21-ocaml-4.14@sha256:1b6e8a1c4a37099cb5bbd1042dae3b871bfa87f26c84dbe4599906c57258d141' locally
docker.io/ocaml/opam@sha256:1b6e8a1c4a37099cb5bbd1042dae3b871bfa87f26c84dbe4599906c57258d141: Pulling from ocaml/opam
24be8a720c20: Pulling fs layer
24be8a720c20: Waiting
24be8a720c20: Verifying Checksum
24be8a720c20: Download complete
24be8a720c20: Pull complete
Digest: sha256:1b6e8a1c4a37099cb5bbd1042dae3b871bfa87f26c84dbe4599906c57258d141
Status: Downloaded newer image for ocaml/opam@sha256:1b6e8a1c4a37099cb5bbd1042dae3b871bfa87f26c84dbe4599906c57258d141
2025-02-16 23:50.34 ---> saved as "5c9cbdb759653e99b7decb2b5dbdd8183cd6fe698c3f299ccb1c1f4cba10b53e"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-02-16 23:50.34 ---> saved as "4d109f6a722183a0155b2c6cce85337fb16f475094a97ca4e55519649621a082"

/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.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 ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[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.43 ---> saved as "7bb8c3acd395fb35cebb4115433591f4042b6e8ba30923880c97ba86240498a6"

/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.4.0~alpha1~dev (747e73667ad9d054b0f736be205c0013e1bec087)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=alpine os-version=3.21.2
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (local), 1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# 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.44 ---> saved as "0317a9e66b32180673cd8323b67afef845fa942aa371d1297ae5a1cd626e0a46"

/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.59 ---> saved as "bb589c1bd2d7a3ad1e0d14d5f4d51e00e762e9ac77bd2fd7e85f8f63144fed07"

/home/opam: (copy (src .) (dst opam-repository/))
2025-02-16 23:52.36 ---> saved as "fffa75dc805e80bedb200b18a9f4cf2fb5650a39e103e66333792abaccdadda5"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-02-16 23:53.39 ---> saved as "9bad6f5c7ba9d67a2fa0e8595449d02d938b3f612b34e5644bd412dca3555468"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
- v3.21.3-10-g86668ef9c61 [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
- v3.21.3-15-gbed267dc439 [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
- v20250108-2297-gbb241594e9b [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20250108-2112-g950165b0fd5 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20250108-1862-g95359712816 [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 56477 distinct packages available
2025-02-16 23:53.58 ---> saved as "8989df82081d7f01a78a14f41d2d1c726399ffaa5a01c924e88698e7c5a6ecc6"

/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:53.59 ---> saved as "f24be3a779d38f404aa73a1bcafeb58836852742e58379ba6b05e63b0ad61f91"

/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 \"\\\"alpine-3.21\\\"\"; 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 11 packages
  - install cppo              1.8.0          [required by gettext]
  - install csexp             1.5.2          [required by dune-private-libs]
  - install dune              3.17.2         [required by gettext]
  - install dune-private-libs 3.17.2         [required by dune-site]
  - install dune-site         3.17.2         [required by gettext]
  - install dyn               3.17.2         [required by dune-private-libs]
  - install fileutils         0.6.6          [required by gettext]
  - install gettext           0.5.0 (pinned)
  - install ordering          3.17.2         [required by dyn, stdune]
  - install pp                2.0.0          [required by dune-private-libs]
  - install stdune            3.17.2         [required by dune-private-libs]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved dune.3.17.2, dune-private-libs.3.17.2, dune-site.3.17.2, dyn.3.17.2, ordering.3.17.2, stdune.3.17.2  (cached)
-> retrieved fileutils.0.6.6  (cached)
-> retrieved gettext.0.5.0  (cached)
-> retrieved pp.2.0.0  (cached)
-> installed dune.3.17.2
-> installed cppo.1.8.0
-> installed csexp.1.5.2
-> installed fileutils.0.6.6
-> installed pp.2.0.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.
# To update the current shell environment, run: eval $(opam env)
2025-02-16 23:54.52 ---> saved as "0ac8b08592ba06205d00d515516fa9000ed3d3e2d0e783a1e4f8b2deac2fc8a0"
Job succeeded
2025-02-16 23:55.18: Job succeeded