Amazon Linux 2 Builds No Longer Use System OpenSSL #2567
-
|
On v20250811 ruby-build uses the system OpenSSL, but on v20250829 openssl is built from source on amazonlinux 2. This broke my builds because I had CONFIGURE_OPTS instead of RUBY_CONFIGURE_OPTS, and didn't have some of the perl dependencies required. Fixing those the builds pass but it looks like the new pkg-config check from fd0f332 is causing the system openssl not to be detected. Reproduction: $ docker run --rm -it amazonlinux:2
$ yum install -y autoconf gcc patch bzip2 openssl-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel tar \
make pkgconfig
$ git clone https://github.com/rbenv/ruby-build.git ruby-build
$ cd ruby-build
$ ./bin/ruby-build -d ruby-3.2.2 ~/.rubies -v
./bin/ruby-build: line 1155: 2k: value too great for base (error token is "2k")
# OpenSSL installedComparing the new pkg-config method and the old I think I see the issue: bash-4.2# pkg-config --modversion openssl
1.0.2k# system_openssl_version
bash-4.2# cc -xc -E - <<EOF 2>/dev/null | sed -n 's/"\{0,1\}OpenSSL \([0-9][0-9.]*\).*/\1/p'
> #include <openssl/opensslv.h>
> OPENSSL_VERSION_TEXT
> EOF
1.0.2The extra |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Fantastic sleuthing; thank you! Will work on a fix. |
Beta Was this translation helpful? Give feedback.
This was fixed in ruby-build 20250908, but I forgot to post and update and resolve this discussion.