[MacPorts] #63550: ruby26 @2.6.8_2 and ruby30 @3.0.2_1 build fails against openssl v3.0.0

MacPorts noreply at macports.org
Thu Sep 30 00:10:07 UTC 2021


#63550: ruby26 @2.6.8_2 and ruby30 @3.0.2_1 build fails against openssl v3.0.0
------------------------------------+--------------------
  Reporter:  kencu                  |      Owner:  (none)
      Type:  defect                 |     Status:  new
  Priority:  Normal                 |  Milestone:
 Component:  ports                  |    Version:
Resolution:                         |   Keywords:
      Port:  ruby26 ruby30 openssl  |
------------------------------------+--------------------

Comment (by kencu):

 Making a typical directory structure as above:
 {{{
 /path/to/openssl-1.1/include/*
 /path/to/openssl-1.1/lib/*
 }}}
 like this, for example:
 {{{
 sudo mkdir /opt/local/libexec/openssl11
 sudo mkdir /opt/local/libexec/openssl11/include
 sudo ln -s /opt/local/include/openssl-1.1/openssl
 /opt/local/libexec/openssl11/include/
 sudo ln -s /opt/local/lib/openssl-1.1 /opt/local/libexec/openssl11/lib
 }}}

 so that we have this typical structure in the end:
 {{{
 % ls -la /opt/local/libexec/openssl11
 total 0
 drwxr-xr-x  4 root  wheel  128 29 Sep 16:45 .
 drwxr-xr-x  9 root  wheel  288 29 Sep 17:01 ..
 drwxr-xr-x  3 root  wheel   96 29 Sep 16:44 include
 lrwxr-xr-x  1 root  wheel   26 29 Sep 16:45 lib ->
 /opt/local/lib/openssl-1.1

 % ls -la /opt/local/libexec/openssl11/include
 total 0
 drwxr-xr-x  3 root  wheel   96 29 Sep 16:44 .
 drwxr-xr-x  4 root  wheel  128 29 Sep 16:45 ..
 lrwxr-xr-x  1 root  wheel   38 29 Sep 16:44 openssl ->
 /opt/local/include/openssl-1.1/openssl
 }}}

 we can then add the usual argument to ruby
 {{{
 --with-openssl-dir="${prefix}/libexec/openssl11"
 }}}
 and all is well, ruby30 (at least 30) builds against openssl-1.1 even if
 openssl-3.0 is installed:
 {{{
 % port -v installed ruby30 openssl openssl11
 The following ports are currently installed:
   openssl @3.0.0_0+universal (active) requested_variants='+universal'
 platform='darwin 20' archs='arm64 x86_64' date='2021-09-29T15:06:28-0700'
   openssl11 @1.1.1l_0 (active) requested_variants='' platform='darwin 20'
 archs='x86_64' date='2021-09-29T09:18:06-0700'
   ruby30 @3.0.2_1 (active) requested_variants='' platform='darwin 20'
 archs='x86_64' date='2021-09-29T17:01:06-0700'
 }}}

 and it is linked properly:
 {{{
 % otool -L /opt/local/lib/ruby3.0/3.0.0/x86_64-darwin20/openssl.bundle
 /opt/local/lib/ruby3.0/3.0.0/x86_64-darwin20/openssl.bundle:
         /opt/local/lib/libruby.3.0.dylib (compatibility version 3.0.0,
 current version 3.0.2)
         /opt/local/lib/openssl-1.1/libssl.1.1.dylib (compatibility version
 1.1.0, current version 1.1.0)
         /opt/local/lib/openssl-1.1/libcrypto.1.1.dylib (compatibility
 version 1.1.0, current version 1.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1292.100.5)
 }}}

 so it would appear that the {{{openssl10}}} and {{{openssl11}}} ports
 could be modified to add those directory structures.

-- 
Ticket URL: <https://trac.macports.org/ticket/63550#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list