From c8ad3385c7a3038221d23326d43d4af427446216 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Thu, 26 Apr 2018 00:56:08 +0000 Subject: [PATCH] Import latest changes from https://github.com/rbenv/ruby-build as of v20180424 --- plugins/python-build/bin/python-build | 12 ++++++++++-- plugins/python-build/test/build.bats | 4 ++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index eccfec18..040213f2 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -14,7 +14,7 @@ # -g/--debug Build a debug version # -PYTHON_BUILD_VERSION="20160602" +PYTHON_BUILD_VERSION="20180424" OLDIFS="$IFS" @@ -60,6 +60,7 @@ resolve_link() { } abs_dirname() { + local cwd="$(pwd)" local path="$1" # Use a subshell to avoid modifying the current path @@ -72,6 +73,7 @@ abs_dirname() { pwd ) +# cd "$cwd" } capitalize() { @@ -1183,7 +1185,7 @@ fix_rbx_irb() { require_java7() { local version="$(java -version 2>&1 | grep '\(java\|openjdk\) version' | head -1)" - if [[ $version != *1.[789]* ]]; then + if [[ $version != *[789]* ]]; then colorize 1 "ERROR" >&3 echo ": Java 7 required. Please install a 1.7-compatible JRE." >&3 return 1 @@ -1506,10 +1508,16 @@ build_package_mac_openssl() { export CPPFLAGS="-I${OPENSSL_PREFIX_PATH}/include ${CPPFLAGS}" export LDFLAGS="-L${OPENSSL_PREFIX_PATH}/lib ${LDFLAGS}" + # Make sure pkg-config finds our build first. + export PKG_CONFIG_PATH="${OPENSSL_PREFIX_PATH}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" + # Hint OpenSSL that we prefer a 64-bit build. export KERNEL_BITS="64" OPENSSL_CONFIGURE="${OPENSSL_CONFIGURE:-./config}" + local nokerberos + [[ "$1" != openssl-1.0.* ]] || nokerberos=1 + # Compile a shared lib with zlib dynamically linked, no kerberos. package_option openssl configure --openssldir="$OPENSSLDIR" zlib-dynamic no-ssl2 no-ssl3 no-krb5 shared diff --git a/plugins/python-build/test/build.bats b/plugins/python-build/test/build.bats index 69afb6f4..3526aa27 100644 --- a/plugins/python-build/test/build.bats +++ b/plugins/python-build/test/build.bats @@ -537,6 +537,10 @@ OUT # nop } +@test "JRuby Java 9 version string" { + # nop +} + @test "non-writable TMPDIR aborts build" { export TMPDIR="${TMP}/build" mkdir -p "$TMPDIR"