The packages keepassxc-2.7.4-browser-yubikey and keepassxc-2.7.4-yubikey
seem to require pcsc-lite-1.9.8, but somehow pcsc-lite doesn't seem
to be registered as a dependency.
This happens for me on a machine running:
kern.version kern.version=OpenBSD 7.2-current
(GENERIC.MP) #822: Fri Oct 28 21:59:48 MDT 2022
and another running:
kern.version=OpenBSD 7.2-current (GENERIC.MP) #824: Thu Nov  3
21:21:08 MDT 2022
This might just be me not understanding how things work, or it may
be something that will clear itself out, but in case it's not,
a description follows.
The slightly-edited output of typescript found below shows 
that keepassxc won't run unless pcsc-lite installed, but 
keepassxc doesn't register pcsc-lite as a dependency, so the
system doesn't seem to see that pcsc-lite is required (as indicated
by pkg_info -t). These commands were run on the machine with 
the kernel from Oct 28, but the same thing happens on the other
machine.

I do sysupgrade -s for all my boxes and pkg_info -D snap
and did not get the "minor too small" messages that occasionally
happens.

If pcsc-lite just needs to be explicitly added as a dependency,
then the patch would just change WANTLIB and LIB_DEPENDS, I think.
That patch is at the end of this message. I think WANTLIB wants
"pcsclite" and LIB_DEPENDS wants "pcsc-lite."

Edited script showing the problem follows:

machine# /usr/sbin/pkg_delete -a

machine# /bin/ls /var/db/pkg/pcsc* No such file or directory

machine# /bin/ls /var/db/pkg/keepass* No such file or directory

machine# /usr/sbin/pkg_add -D snap keepassxc-2.7.4-browser-yubikey
keepassxc-2.7.4-browser-yub...:minizip-3.0.6:*ok
...

machine# /bin/ls /var/db/pkg/pcsc* No such file or directory

machine# /bin/echo "after regular user tries to run keepassxc, they
get: ld.so: keepassxc: can't load library 'libpcsclite.so.1.0'"
...

machine# /usr/sbin/pkg_add -D snap-pcsc-lite
...
pcsc-lite-1.9.8:*ok The following new rcscripts were installed:
/etc/rc.d/pcscd

machine# /bin/echo "now keepassxc opens" 

machine# /usr/sbin/pkg_info -t
...
pcsc-lite-1.9.8     resource manager for PC/SC

machine# /usr/sbin/pkg_delete pcsc-lite pcsc-lite-1.9.8:*ok
...

machine#/sbin/ls /var/db/pkg/pcsc* No such file or directory

machine# /bin/echo "if user tries to open keepassxc now, we're"
machine# /bin/echo "back to::ld.so: keepassxc: can't load library"
machine# /bin/echo "'libpcsclite.so.1.0'" 

machine# /usr/sbin/pkg_add -D snap pcsc-lite
...
pcsc-lite-1.9.8:*ok

machine# /bin/ls /var/db/pkg/pcsc* +CONTENTS  +DESC      +REQUIRING

machine# /usr/sbin/pkg_info -t
...
pcsc-lite-1.9.8     resource manager for PC/SC

# ------------------ end of script -------------

# Patch follows:

Index: security/keepassxc/Makefile
===================================================================
RCS file: /cvs/ports/security/keepassxc/Makefile,v
retrieving revision 1.45
diff -u -p -u -r1.45 Makefile
--- security/keepassxc/Makefile 30 Oct 2022 06:41:31 -0000 1.45
+++ security/keepassxc/Makefile 7 Nov 2022 18:48:30 -0000
@@ -14,7 +14,7 @@ PERMIT_PACKAGE = Yes

WANTLIB += ${COMPILER_LIBCXX} Qt5Concurrent Qt5Core Qt5DBus Qt5Gui
WANTLIB += Qt5Network Qt5Svg Qt5Widgets Qt5X11Extras X11 Xtst
-WANTLIB += argon2 botan-2 c m minizip qrencode readline z
+WANTLIB += argon2 botan-2 c m minizip qrencode readline z pcsclite

MASTER_SITES = \
https://github.com/keepassxreboot/keepassxc/releases/download/${V}/ 
<https://github.com/keepassxreboot/keepassxc/releases/download/$%7BV%7D/>
@@ -26,6 +26,7 @@ MODULES = x11/qt5 \
LIB_DEPENDS = archivers/minizip \
security/argon2 \
security/botan2 \
+  security/pcsc-lite \
graphics/libqrencode \
x11/qt5/qtsvg \

Reply via email to