Skip to content

Commit 338a217

Browse files
committed
Ruby 2.3.x with M1-compatible OpenSSL 1.0
1 parent 68bf590 commit 338a217

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

2.3.3

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Old config.guess isn't arm64-aware. Pull a new one in from automake.
2+
build_package_freshen_automake_config() {
3+
{
4+
mv tool/config.guess tool/config.guess.dist
5+
mv tool/config.sub tool/config.sub.dist
6+
} >&4 2>&1
7+
}
8+
9+
# Suppress warnings we aren't going to address so they don't flood build output"
10+
export RUBY_CFLAGS="-Wno-implicit-function-declaration -Wno-compound-token-split-by-macro"
11+
12+
# M1-compatible OpenSSL 1.0 from https://github.com/basecamp/homebrew-dev
13+
brew install basecamp/dev/[email protected]
14+
openssl_prefix_path="$(brew --prefix basecamp/dev/[email protected])"
15+
package_option ruby configure --with-openssl-dir="$openssl_prefix_path"
16+
export PKG_CONFIG_PATH="$openssl_prefix_path/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
17+
18+
package_option ruby configure --with-out-ext=tk --disable-install-doc
19+
install_package "ruby-2.3.3" "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.bz2#882e6146ed26c6e78c02342835f5d46b86de95f0dc4e16543294bc656594cc5b" freshen_automake_config ldflags_dirs standard verify_openssl

2.3.8

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Old config.guess isn't arm64-aware. Pull a new one in from automake.
2+
build_package_freshen_automake_config() {
3+
{
4+
mv tool/config.guess tool/config.guess.dist
5+
mv tool/config.sub tool/config.sub.dist
6+
} >&4 2>&1
7+
}
8+
9+
# Suppress warnings we aren't going to address so they don't flood build output"
10+
export RUBY_CFLAGS="-Wno-implicit-function-declaration -Wno-compound-token-split-by-macro"
11+
12+
# M1-compatible OpenSSL 1.0 from https://github.com/basecamp/homebrew-dev
13+
brew install basecamp/dev/[email protected]
14+
openssl_prefix_path="$(brew --prefix basecamp/dev/[email protected])"
15+
package_option ruby configure --with-openssl-dir="$openssl_prefix_path"
16+
export PKG_CONFIG_PATH="$openssl_prefix_path/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
17+
18+
package_option ruby configure --with-out-ext=tk --disable-install-doc
19+
install_package "ruby-2.3.8" "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.8.tar.bz2#4d1a3a88e8cf9aea624eb73843fbfc60a9a281582660f86d5e4e00870397407c" freshen_automake_config ldflags_dirs standard verify_openssl

0 commit comments

Comments
 (0)