Skip to content

Commit

Permalink
[3.9] pythongh-89452: GHA: Set --with-dbmliborder to avoid issues wit…
Browse files Browse the repository at this point in the history
…h homebrew's gdbm 1.24 (pythonGH-125112)

Per https://github.com/python/cpython/issues/89452GH-issuecomment-1116329316,
the issue is fixed in configure for 3.11+, and

> For older Python versions, the workaround is to build with:
>
>     ./configure --with-dbmliborder=gdbm:ndbm

We need this workaround in GitHub Actions, otherwise the tests fail.
(cherry picked from commit 850189a)
  • Loading branch information
encukou committed Oct 9, 2024
1 parent 8b9a8e0 commit 993f70d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ jobs:
--with-pydebug \
--with-openssl="$(brew --prefix [email protected])" \
--with-tcltk-libs="$(pkg-config --libs tk)" \
--with-tcltk-includes="$(pkg-config --cflags tk)"
--with-tcltk-includes="$(pkg-config --cflags tk)" \
--with-dbmliborder=gdbm:ndbm
# (--with-dbmliborder needed for homebrew's gdbm 1.24: see gh-89452)
- name: Build CPython
run: make -j4
- name: Display build info
Expand Down

0 comments on commit 993f70d

Please sign in to comment.