Bug 285857 - devel/pcsc-lite: update 2.3.1 => 2.3.3
Summary: devel/pcsc-lite: update 2.3.1 => 2.3.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Gleb Popov
URL: https://salsa.debian.org/rousseau/PCS...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-03 04:52 UTC by Älven
Modified: 2025-04-13 08:39 UTC (History)
2 users (show)

See Also:
arrowd: maintainer-feedback+


Attachments
[PATCH] devel/pcsc-lite: update 2.3.1 => 2.3.3 (1.16 KB, patch)
2025-04-03 04:52 UTC, Älven
alster: maintainer-approval? (arrowd)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Älven 2025-04-03 04:52:27 UTC
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
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-04-03 15:11:09 UTC
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(-)
Comment 2 Gleb Popov freebsd_committer freebsd_triage 2025-04-03 15:11:46 UTC
Pushed, thank you.
Comment 3 Tatsuki Makino 2025-04-11 23:01:38 UTC
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...
Comment 4 Gleb Popov freebsd_committer freebsd_triage 2025-04-13 08:39:51 UTC
Reported upstream: https://github.com/LudovicRousseau/PCSC/pull/232