OpenSSH seems to be the only big user of opensc-config, but that's somewhat deprecated. There's now libopensc.pc. All other software (pcsc-lite, ccid, openct and so on) uses pkg-config. Also, most users still apply the patch from opensc on top of openssh.
Created attachment 1727 [details] Use pkg-config for opensc if available. Use pkg-config for opensc if available.
As the original reporter and OpenSC dev, I would like to withdraw the request as deprecated as this should be solved by applying patches in bug 1371 instead
OK, I'll close this one (but make no promises about 1371).
As OpenSSH is the only user of opensc-config and use of opensc-config has been deprecated for long time, if OpenSSH continues to access OpenSC via the deprecated way (by linking against internal libopensc) instead of using the recommended public PKCS#11 interface, it is better to use the .pc file. But OpenSSH should use PKCS#11 instead. The OpenSC bits and pieces in OpenSSH are historic. Until bug 1371 is applied, this bug is still a valid issue.
Could you please confirm that the patch does what you want?
I can confirm, that the patch works. I would still suggest to implement bug 1371 instead, especially because there are some other OpenSC related bugs open, which have not been dealt with.
Patch applied, thanks. Please use #1371 if you have further comments about PKCS#11.
With the release of 5.4p1, this bug is now considered closed.