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

MacPorts noreply at macports.org
Wed Sep 29 23:16:56 UTC 2021


#63550: ruby26 @2.6.8_2: 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 openssl  |
-----------------------------+--------------------

Comment (by kencu):

 our method of providing both openssl10 and openssl11 might have to be
 altered to also include a simple {{{--with-openssl=}}} layout, something
 like this:
 {{{
 /path/to/openssl-1.1/include/*
 /path/to/openssl-1.1/lib/*
 }}}

 ruby 2.6 has a {{{--with-openssl=}}} option, but I can't find something
 where the headers and libs can be separately specified it seems, at least
 without hacking into the ruby build scripts...

 If you first deactivate openssl, then ruby26 will build against openssl11
 using the {{{build_flags}}} method:
 {{{
 % port -v installed ruby26
 The following ports are currently installed:
   ruby26 @2.6.8_2 (active) requested_variants='' platform='darwin 20'
 archs='x86_64' date='2021-09-29T16:12:01-0700'

 % port contents ruby26 | grep openssl.bundle
   /opt/local/lib/ruby2.6/2.6.0/x86_64-darwin20/openssl.bundle

 % otool -L  /opt/local/lib/ruby2.6/2.6.0/x86_64-darwin20/openssl.bundle
 /opt/local/lib/ruby2.6/2.6.0/x86_64-darwin20/openssl.bundle:
         /opt/local/lib/libruby.2.6.dylib (compatibility version 2.6.0,
 current version 2.6.8)
         /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)
 }}}

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


More information about the macports-tickets mailing list