]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-89452: GHA: Set --with-dbmliborder to avoid issues with homebrew's gdbm...
authorPetr Viktorin <encukou@gmail.com>
Tue, 8 Oct 2024 14:37:22 +0000 (16:37 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 14:37:22 +0000 (16:37 +0200)
Per https://github.com/python/cpython/issues/89452#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.

.github/workflows/build.yml

index 0d7545368d7a706234526bee2ccce46113c33a54..eecca69316f6f3ee7268cdc9860e4a4685c69074 100644 (file)
@@ -193,7 +193,9 @@ jobs:
         ./configure \
           --with-pydebug \
           --prefix=/opt/python-dev \
-          --with-openssl="$(brew --prefix openssl@3.0)"
+          --with-openssl="$(brew --prefix openssl@3.0)" \
+          --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