Subject: pkg-config and OpenSSL
To: None <tech-pkg@NetBSD.org>
From: Adrian Portelli <firstname.lastname@example.org>
Date: 02/21/2006 23:33:16
I've been playing with a few packages of late that use pkg-config to try
and identify if OpenSSL exists and the CFLAGS and LIBS involved (i.e.
pkg-config --exists, --libs and --cflags).
Now the issue is that I'm on 3.0 so OpenSSL is in the base, and is
for many other NetBSD releases as well. pkg-config, in this case, fails
to detect that OpenSSL is installed as the base OpenSSL is not
registered with pkg-config. This does not represent an issue for some
packages but others do fail if they can't "see" openssl using pkg-config.
So my question is this:
Should we dummy up a pkg-config entry for the OpenSSL in base so if
a package tries to use pkg-config it will work or should the package not
be just relying on pkg-config to see if OpenSSL is installed i.e. should
it be checking separately for OpenSSL libraries and headers if
pkg-config fails ?