[MacPorts] #63845: ruby30 fails to build because of openssl 3 even though it is marked portgroup openssl 1.0

MacPorts noreply at macports.org
Sun Nov 7 23:36:09 UTC 2021


#63845: ruby30 fails to build because of openssl 3 even though it is marked
portgroup openssl 1.0
-----------------------+----------------------
  Reporter:  pmetzger  |      Owner:  kimuraw
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  monterey
      Port:  ruby30    |
-----------------------+----------------------

Comment (by mascguy):

 Based on the logs, it appears that the OpenSSL header location isn't being
 added by the portfile, nor is the library search path being properly set:

 {{{
 CPPFLAGS = -I/opt/local/include
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk
 -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
 -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT

 DLDFLAGS = -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk
 -arch x86_64 -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress
 -L/opt/local/lib -install_name /opt/local/lib/libruby.3.0.dylib
 -compatibility_version 3.0 -current_version 3.0.2  -fstack-protector-
 strong -framework Security -framework Foundation  -fstack-protector-strong
 -framework Security -framework Foundation  -arch x86_64
 }}}

 So the appropriate flags need to be adjusted, to prepend something akin to
 `-I [openssl::include_dir]` for the headers, and `-L [openssl::lib_dir]`
 for the libs.

 There may be a better way, like passing an OpenSSL-specific flag to the
 path as well. But that's the overall gist.

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


More information about the macports-tickets mailing list