Page MenuHomeFreeBSD

security/libfido2: Don't require libcrypto.pc for base ssl
ClosedPublic

Authored by bdrewery on Nov 19 2020, 8:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 12, 11:28 AM
Unknown Object (File)
Sat, May 9, 10:54 AM
Unknown Object (File)
Tue, May 5, 11:50 PM
Unknown Object (File)
Thu, Apr 30, 11:05 PM
Unknown Object (File)
Thu, Apr 30, 6:27 PM
Unknown Object (File)
Tue, Apr 21, 1:07 AM
Unknown Object (File)
Sun, Apr 19, 7:08 PM
Unknown Object (File)
Apr 7 2026, 6:36 AM
Subscribers

Details

Summary

I recently added a LIB_DEPENDS+=libfido2 to openssh-portable. A user reported to me that there was an error. I didn't catch this because the port lacked USES+= pkgconfig but they had it installed on their system where they were building.

Current situation when built with *base* SSL:

# pkg-config --libs libfido2
-L/usr/local/lib -lfido2 -lcrypto
# mv /usr/local/libdata/pkgconfig/libcrypto.pc .
# pkg-config --libs libfido2
Package libcrypto was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcrypto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libcrypto', required by 'libfido2', not found
Test Plan

Built openssh-portable with USES+= pkgconfig.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I don't get it at the first sight wondering why would there be a libcrypto.pc under LOCALBASE when using ssl from base.
After a few minutes, I realized that the problem is caused by missing libcrypto.pc in base system.
I'll commit a modified version which removes libcrypto lines in both CMakeLists.txt and libfido2.pc.in.
And I'll bump PORTREVISION for package change.
Thanks.

This revision was not accepted when it landed; it landed in state Needs Review.Nov 24 2020, 8:49 PM
This revision was automatically updated to reflect the committed changes.