]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] gh-89452: GHA: Set --with-dbmliborder to avoid issues with homebrew's gdbm...
authorPetr Viktorin <encukou@gmail.com>
Wed, 9 Oct 2024 14:06:08 +0000 (16:06 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2024 14:06:08 +0000 (16:06 +0200)
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 850189a64e7f0b920fe48cb12a5da3e648435680)

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
.github/workflows/build.yml

index d26ebc8e6bf5ac5b3abe444c67a1d885cc6da36b..eb0c11946643498103b1800d18f935241184dc91 100644 (file)
@@ -168,7 +168,9 @@ jobs:
             --with-pydebug \
             --with-openssl="$(brew --prefix openssl@3.0)" \
             --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