You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pcsc-lite 2.2.x branch switched from autotools to meson and reworked the pkg-config file to be more standard, which involves some difference from the previous versions that cause the yubihsm-shell fail to build:
From my reading this change is ok according to the pkg-config specification as the users should make use of the provided CFLAGS to get the right include directories, instead of making the #include <PCSC/winscard.h> as done here.
I think the right solution for this is to add LIBPCSC_CFLAGS (which should come from pkg_check_modules(LIBPCSC REQUIRED libpcsclite). Not sure what would be best for Windows/OSX though so filling only an issue.
I am not a CMake expert so I tried the following change:
The pcsc-lite 2.2.0 switched from autotools to meson and reworked the
pkgconfig files. The new pkg config provides CFLAGS that work ok, but
the yubihsm-shell ignores them and hopes that all included files are in
the default include directory (with the PCSC prefix).
Note, the value ${LIBPCSC_CFLAGS} is not in quotes because it is a
semicolon separated list which we need to split to separate items here.
This solution works with both old and new versions.
Fixes: Yubico#404
Signed-off-by: Jakub Jelen <[email protected]>
The pcsc-lite 2.2.0 switched from autotools to meson and reworked the
pkgconfig files. The new pkg config provides CFLAGS that work ok, but
the yubihsm-shell ignores them and hopes that all included files are in
the default include directory (with the PCSC prefix).
Note, the value ${LIBPCSC_CFLAGS} is a semicolon separated list which
we need to split to separate items here.
This solution works with both old and new versions.
Fixes: Yubico#404
Signed-off-by: Jakub Jelen <[email protected]>
The pcsc-lite 2.2.x branch switched from autotools to meson and reworked the pkg-config file to be more standard, which involves some difference from the previous versions that cause the yubihsm-shell fail to build:
From my reading this change is ok according to the pkg-config specification as the users should make use of the provided CFLAGS to get the right include directories, instead of making the
#include <PCSC/winscard.h>
as done here.I think the right solution for this is to add
LIBPCSC_CFLAGS
(which should come frompkg_check_modules(LIBPCSC REQUIRED libpcsclite)
. Not sure what would be best for Windows/OSX though so filling only an issue.I am not a CMake expert so I tried the following change:
but it does not work as the
LIBPCSC_CFLAGS
pushes here the stray semicolon;
causing the build fail at Fedora 39:so it might need some more clever fix to work correctly.
The text was updated successfully, but these errors were encountered: