Bug 239109

Summary: databases/mysql57-client: mysqlclient.pc is broken on systems without installing openssl from ports
Product: Ports & Packages Reporter: Ting-Wei Lan <lantw44>
Component: Individual Port(s)Assignee: Mahdi Mokhtari <mmokhi>
Status: New ---    
Severity: Affects Only Me CC: me, mmokhi
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Ting-Wei Lan 2019-07-10 10:42:00 UTC
$ pkg-config --cflags mysqlclient
Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openssl', required by 'mysqlclient', not found

The reason of the error is that /usr/local/libdata/pkgconfig/mysqlclient.pc includes this line:
Requires.private: openssl

FreeBSD base doesn't provide a openssl.pc file, so attempts to use mysqlclient.pc always fails if there is no openssl port installed.
Comment 1 Ting-Wei Lan 2019-07-10 10:42:47 UTC
The same problem also occurs in databases/mysql80-client.