Bug #87938 Implement -DWITH_SSL=system for OsX and Windows
Submitted: 2 Oct 2017 8:53 Modified: 10 Nov 2017 0:30
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.4 OS:Any
Assigned to: CPU Architecture:Any

[2 Oct 2017 8:53] Tor Didriksen
Description:
The current default for WITH_SSL is "bundled", i.e. YaSSL
We plan to remove YaSSL, and set default to "system" instead.

There are no "system" SSL libraries for OsX and Windows.
Instead we propose to install these libraries on all lab machines:

OSX:
http://brewformulas.org/Openssl
brew install openssl

Installs to:
/usr/local/opt/openssl

# Permissions fix for multi user environment:
chmod -R a+rx /usr/local/opt/
chmod -R a+rx /usr/local/Cellar/
# Symlinks
chmod -h a+rx /usr/local/opt/openssl
chmod -h a+rx /usr/local/opt/openssl*
chmod -h a+rx /usr/local/opt/openssl/lib/libcrypto.dylib
chmod -h a+rx /usr/local/opt/openssl/lib/libssl.dylib

Windows:
https://slproweb.com/products/Win32OpenSSL.html

Installs to:
C:\OpenSSL-Win64

Contents of Unattended install answer file "OpenSSL-1.0.2L_unattended.inf":
[Setup]
Lang=default
Dir=C:\OpenSSL-Win64
Group=OpenSSL
NoIcons=0
Tasks=copytobin

Unattended install command:
C:\OpenSSL-1.0.2L.exe /LOADINF="C:\OpenSSL-1.0.2L_unattended.inf" /SILENT /NORESTART

This is done in order to simplify building/testing on OsX/Win. The alternative would be to download SSL packages from pushbuild,
and run 'cmake -DWITH_SSL=/path/to/SSL/package'

How to repeat:
Build on OsX/Windows

Suggested fix:
Do FIND_PACKAGE(OpenSSL), and build as if cmake was invoked with -DWITH_SSL=/path/to/SSL/package,
i.e. copy libraries into the build directory (with appropriate softlinks on OsX)
[10 Nov 2017 0:30] Paul DuBois
Posted by developer:
 
Fixed in 8.0.4, 9.0.0.

Internal issue. No changelog entry needed.
[14 Nov 2017 17:27] Paul DuBois
Posted by developer:
 
Fixed in 8.0.4, 9.0.0.

For compiling MySQL from source, the -DWITH_SSL=system CMake option
now works on Windows and macOS.
[6 Feb 2018 23:05] Philip Olson
Related doc bug: MySQL Bug #89377