community/opensc: pkcs11 module incorrectly moved to `-dev`
Package Information
- Package name: opensc
- Package version: 0.25.1-r1
Summary
Commit ed9ada7f moved all pkcs11 modules to -dev
subpackages. This was in order to remove a circular dependency, but the resolution is incorrect and broke pkcs11
support.
Details
The root cause is that OpenSC
earlier added an onepin
flavor of the pkcs11 module. This was considered a mistake and got removed with compat symlinks left. See https://github.com/OpenSC/OpenSC/pull/2681
The compat symlinks in order trigger abuild
heuristic since the pkcs11 modules end with .so
. That is, the symlink /usr/lib/onepin-opensc-pkcs11.so -> opensc-pkcs11.so
gets moved by default_dev
split function incorrectly. Since the other compat symlink is /usr/lib/pkcs11/onepin-opensc-pkcs11.so -> ../onepin-opensc-pkcs11.so
this triggers the creation recursive dependency.
Anyhow, we should revert ed9ada7f, and instead I suggest that we remove the onepin-opensc-pkcs11.so
files from both /usr/lib/
and /usr/lib/pkcs11/
since it is no longer needed and is redundant with p11-kit
. This alone should be enough to remove the recursive dependency.
Additionally we/should move the pkcs11-spy.so
(both in /usr/lib/pkcs11/pkcs11-spy.so and /usr/lib/pkcs11-spy.so) to either a new subpackage, or keep those in the -dev
subpackage as it is developer utility.