Skip to content

Commit 8641bb7

Browse files
Merge PR #22315: Fix Windows CI: work around Cygwin pkgconf 3.0.4-1 personality path bug
Reviewed-by: SkySkimmer Co-authored-by: SkySkimmer <[email protected]>
2 parents 8414b2c + cc4df6c commit 8641bb7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci-github.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ jobs:
5555
ocaml-compiler: ${{ matrix.ocaml }}
5656
dune-cache: true
5757

58+
# Cygwin's pkgconf 3.0.4-1 (2026-07-26) compiles its personality search
59+
# path as /usr/lib/pkgconfig/personality.d:/usr/share/pkgconfig/personality.d
60+
# but still installs the mingw-w64 personality files under
61+
# /etc/pkgconfig/personality.d, so `pkgconf --personality=<triplet>`
62+
# silently falls back to the native personality and the
63+
# conf-mingw-w64-{gmp,zlib}-* opam packages fail their probes. pkgconf
64+
# also searches $XDG_DATA_DIRS/pkgconfig/personality.d, so prepending /etc
65+
# restores the lookup. Drop this once Cygwin ships a fixed pkgconf
66+
# packaging.
67+
- name: 🩹 Work around Cygwin pkgconf 3.0.4-1 personality path bug
68+
if: matrix.os == 'windows-latest'
69+
run: |
70+
"XDG_DATA_DIRS=/etc:/usr/local/share:/usr/share" >> $env:GITHUB_ENV
71+
5872
- name: 🐫🐪🐫 Get Rocq dependencies
5973
run: opam install --deps-only ${{ matrix.packages }}
6074

0 commit comments

Comments
 (0)