[MacPorts] #51516: MacPorts should use a bundled copy of a newer libcurl and SSL library rather than the OS X version

MacPorts noreply at macports.org
Fri Aug 21 20:56:42 UTC 2020


#51516: MacPorts should use a bundled copy of a newer libcurl and SSL library
rather than the OS X version
--------------------------+--------------------------------
  Reporter:  ryandesign   |      Owner:  macports-tickets@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:  MacPorts Future
 Component:  base         |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------------------

Comment (by noloader):

 > I suppose using a bootstrap version of MacPorts in /opt/bootstrap to
 provide a full current version of curl and openssl that can be used by the
 main installation of MacPorts in ${prefix} is felt to be just beyond the
 capability of average users?

 Yes.

 In fact, for bootstrapping, I recommend you build Wget rather then cURL.
 Wget is easier to build because it has two dependencies - OpenSSL and
 Unistring. Bootstrapping Wget/OpenSSL/Unistring works back to at least OS
 X 10.5 on PowerMacs.

 I eat my own dogfood: https://github.com/noloader/Build-
 Scripts/blob/master/bootstrap/bootstrap-wget.sh.

 Wget has a minor annoyance due to dynamic linking. Sed fixes that with:


 {{{
 # Fix makefiles. No shared objects.
 IFS="" find "$PWD" -iname 'Makefile' -print | while read -r file
 do
     sed "s|-lssl|$LIBDIR/libssl.a|g" "$file" > "$file.fixed"
     mv "$file.fixed" "$file"
     sed "s|-lcrypto|$LIBDIR/libcrypto.a|g" "$file" > "$file.fixed"
     mv "$file.fixed" "$file"
     sed "s|-lunistring|$LIBDIR/libunistring.a|g" "$file" > "$file.fixed"
     mv "$file.fixed" "$file"
 done
 }}}

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


More information about the macports-tickets mailing list