Created attachment 259288 [details] [PATCH] devel/pcsc-lite: update 2.3.1 => 2.3.3 2.3.3: Ludovic Rousseau 2 April 2025 - Make polkit rules work again (bug introduced in 2.3.2) 2.3.2: Ludovic Rousseau 26 March 2025 - Hardening systemd pcscd.service file - pcscd.service: add missing Requires=polkit.service - pcsc-spy: add missing PCSCv2_PART10_PROPERTY_* definitions - Support udev PCSCLITE_IGNORE property to filter readers - debuglog: force use of colors when --color is used - Some other minor improvements
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=9ce815f493cfda45a17c435db6fbef3ed88d2a9d commit 9ce815f493cfda45a17c435db6fbef3ed88d2a9d Author: Älven <alster@vinterdalen.se> AuthorDate: 2025-04-03 15:09:31 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2025-04-03 15:10:05 +0000 devel/pcsc-lite: Update to 2.3.3 PR: 285857 devel/pcsc-lite/Makefile | 2 +- devel/pcsc-lite/distinfo | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
Pushed, thank you.
Some programs may not work when migrating to version 2.3.3. It can be verified by extracting only the following part. #include <stdlib.h> #include <stdio.h> #include <winscard.h> int main(int argc, char * argv[]) { LONG rv; SCARDCONTEXT sc_ctx; sc_ctx = 0; rv = SCardEstablishContext(SCARD_SCOPE_USER, NULL, NULL, &sc_ctx); if (rv != SCARD_S_SUCCESS) { fprintf(stderr, "rv (%#10.8lx) != SCARD_S_SUCCESS\n", rv); } (void)SCardReleaseContext(sc_ctx); return 0; } It does not work when built with a command like this. clang -Wall `pkgconf --cflags libpcsclite` the_file.c `pkgconf --libs libpcsclite` The difference between the working program and the non-working program was whether they were using pthread. Therefore, it will work by adding -pthread as follows. clang -Wall `pkgconf --cflags libpcsclite` the_file.c -pthread `pkgconf --libs libpcsclite` If any problems arise regarding this version up, please check its part...
Reported upstream: https://github.com/LudovicRousseau/PCSC/pull/232