Bug 239109 - databases/mysql57-client: mysqlclient.pc is broken on systems without installing openssl from ports
Summary: databases/mysql57-client: mysqlclient.pc is broken on systems without install...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mahdi Mokhtari
Depends on:
Reported: 2019-07-10 10:42 UTC by Ting-Wei Lan
Modified: 2019-07-25 15:18 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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.