From a7482577ce814c0501c2b932f3241fdc1e76874a Mon Sep 17 00:00:00 2001 From: xarkes Date: Sun, 1 Jul 2018 15:51:45 +0200 Subject: [PATCH] Add python _getentropy fix for macOS El Capitan (Fixes #424) (#559) * Add _getentropy for OsX * Fix sed for python HAVE_GETENTROPY on macOS --- scripts/prepare_python_macos.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/prepare_python_macos.sh b/scripts/prepare_python_macos.sh index bac0018f..fb3cffbd 100755 --- a/scripts/prepare_python_macos.sh +++ b/scripts/prepare_python_macos.sh @@ -10,6 +10,10 @@ export PYTHON_FRAMEWORK_DIR="`pwd`/framework" cd Python-3.6.4 || exit 1 CPPFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" ./configure --enable-framework=$PYTHON_FRAMEWORK_DIR || exit 1 + +# Patch for https://github.com/radareorg/cutter/issues/424 +sed -i ".original" "s/#define HAVE_GETENTROPY 1/#define HAVE_GETENTROPY 0/" pyconfig.h + make -j4 || exit 1 make frameworkinstallframework > /dev/null || exit 1