From e6fd8be69a3cbae3356d7a079211cff79a85622f Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Fri, 9 Jun 2023 00:24:35 +0200 Subject: [PATCH 1/2] gh-1111: Bump macOS build recommendations to OpenSSL v3.0 --- getting-started/setup-building.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index 8be292818a..33f7a1d95c 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -417,14 +417,14 @@ for the header and library files to your ``configure`` command. For example, with **Homebrew**, install the dependencies:: - $ brew install pkg-config openssl@1.1 xz gdbm tcl-tk + $ brew install pkg-config openssl@3.0 xz gdbm tcl-tk Then, for Python 3.11 and newer, run ``configure``:: $ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \ GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \ ./configure --with-pydebug \ - --with-openssl="$(brew --prefix openssl@1.1)" + --with-openssl="$(brew --prefix openssl@3.0)" Or, for Python 3.7 through 3.10:: From d7443d172e3d5c3a0530bcceb53850f74d0f4eed Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Thu, 8 Jun 2023 19:21:01 -0400 Subject: [PATCH 2/2] Simplify recipes by: 1. removing references to 3.7 which will be end-of-life shortly and otherwise would require including OpenSSL 1.1.1 libs. 2. removing MacPorts recipe for 3.10 and earlier because there are conflicts with the use of --with-openssl and the use of CPPFLAGS/LDFLAGS. --- getting-started/setup-building.rst | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/getting-started/setup-building.rst b/getting-started/setup-building.rst index 33f7a1d95c..9baa545e5b 100644 --- a/getting-started/setup-building.rst +++ b/getting-started/setup-building.rst @@ -426,12 +426,12 @@ Then, for Python 3.11 and newer, run ``configure``:: ./configure --with-pydebug \ --with-openssl="$(brew --prefix openssl@3.0)" -Or, for Python 3.7 through 3.10:: +Or, for Python 3.8 through 3.10:: $ CPPFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \ LDFLAGS="-L$(brew --prefix gdbm)/lib -L$(brew --prefix xz)/lib" \ ./configure --with-pydebug \ - --with-openssl="$(brew --prefix openssl@1.1)" \ + --with-openssl="$(brew --prefix openssl@3.0)" \ --with-tcltk-libs="$(pkg-config --libs tcl tk)" \ --with-tcltk-includes="$(pkg-config --cflags tcl tk)" @@ -441,23 +441,13 @@ And finally, run ``make``:: Alternatively, with **MacPorts**:: - $ sudo port install pkgconfig openssl11 xz gdbm tcl tk +quartz + $ sudo port install pkgconfig openssl xz gdbm tcl tk +quartz Then, for Python 3.11 and newer, run ``configure``:: $ GDBM_CFLAGS="-I$(dirname $(dirname $(which port)))/include" \ GDBM_LIBS="-L$(dirname $(dirname $(which port)))/lib -lgdbm" \ - ./configure --with-pydebug \ - --with-openssl="$(dirname $(dirname $(which port)))/libexec/openssl11" - -Or, for Python 3.7 through 3.10:: - - $ CPPFLAGS="-I$(dirname $(dirname $(which port)))/include" \ - LDFLAGS="-L$(dirname $(dirname $(which port)))/lib" \ - ./configure --with-pydebug \ - --with-openssl="$(dirname $(dirname $(which port)))/libexec/openssl11" \ - --with-tcltk-libs="$(pkg-config --libs tcl tk)" \ - --with-tcltk-includes="$(pkg-config --cflags tcl tk)" + ./configure --with-pydebug And finally, run ``make``::