#1065380 ausweisapp2 FTBFS with pcsc-lite 2.0.2

Package:
libpcsclite-dev
Source:
libpcsclite-dev
Description:
Middleware to access a smart card using PC/SC (development files)
Submitter:
Adrian Bunk
Date:
2024-03-03 18:57:07 UTC
Severity:
normal
Tags:
#1065380#5
Date:
2024-03-03 16:13:13 UTC
From:
To:
https://buildd.debian.org/status/logs.php?pkg=ausweisapp2&ver=2.1.0-1

...
/<<PKGBUILDDIR>>/src/card/pcsc/PcscUtils.h:112:46: error: ‘SCARD_E_UNKNOWN_RES_MNG’ was not declared in this scope; did you mean ‘SCARD_E_UNKNOWN_RES_MSG’?
  112 |         Scard_E_Unknown_Res_Mng = returnCode(SCARD_E_UNKNOWN_RES_MNG),         /**< An unrecognized error code was returned from a layered component. */
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~
...


This is not a regression in the new ausweisapp2 upload,
but due to a change in pcsc-lite 2.0.2 (maintainer Cc'ed):

https://salsa.debian.org/rousseau/PCSC/-/commit/65f9b610138c8a4a5563d0332120f684682e0237
"Fix typo in (unused) error code SCARD_E_UNKNOWN_RES_MSG"

#1065380#10
Date:
2024-03-03 16:17:44 UTC
From:
To:
Hi Adrian,

I've already seen that and also notified upstream. He is also now CC'ed here.

Adrian

#1065380#15
Date:
2024-03-03 17:41:25 UTC
From:
To:
Le 03/03/2024 à 17:13, Adrian Bunk a écrit :

I now discover that Windows does define BOTH values:
SCARD_E_UNKNOWN_RES_MSG 0x8010002B in https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpesc/9861f8da-76fe-41e6-847e-40c9aa35df8d
SCARD_E_UNKNOWN_RES_MNG 0x8010002B in https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-return-values

I guess pcsc-lite will also have to define both values.
I will release a new pcsc-lite version soon.

Sorry.

#1065380#20
Date:
2024-03-03 18:15:22 UTC
From:
To:
Control: reassign -1 libpcsclite-dev 2.0.2-1
Control: affects -1 src:ausweisapp2

Thanks, I'm reassigning the bug to libpcsclite-dev since that's where it
will be fixed.

cu
Adrian