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: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2019-07-10 10:42 UTC by Ting-Wei Lan
Modified: 2020-12-07 20:00 UTC (History)
3 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.
Comment 2 Jochen Neumeister freebsd_committer 2019-12-07 18:06:35 UTC
Can you please test it with this update?  https://svnweb.freebsd.org/changeset/ports/519226
Comment 3 Ting-Wei Lan 2019-12-11 16:17:36 UTC
(In reply to Jochen Neumeister from comment #2)
No, the same problem can be reproduced with the same command.
Comment 4 Rene Ladan freebsd_committer 2020-12-07 20:00:23 UTC
Assignee reset.