Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#79571 - [pinentry] pinentry-qt preexec example needs small tweak
Attached to Project:
Arch Linux
Opened by Gene (GeneC) - Tuesday, 05 September 2023, 11:44 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:22 GMT
Opened by Gene (GeneC) - Tuesday, 05 September 2023, 11:44 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:22 GMT
|
Detailspinentry does not depend on kwayland which is good for gnome users. The pinentry-qt example should probably be changed to reflect the actual shared library dependency:
preexec file sample entry for pinentry-qt currently has: #test -e /usr/lib/libQt5Widgets.so.5 && exec /usr/bin/pinentry-qt "$@" but this should be changed to: #test -e /usr/lib/libKF5WaylandClient.so.5&& exec /usr/bin/pinentry-qt "$@" Current version would actually work fine since kwayland provides both libs. What pinentry-qt actually uses: ldd /usr/bin/pinentry-qt | grep KF libKF5WaylandClient.so.5 => not found My system is gnome and kwayland is not installed, hence I get 'not found'. Additional info: pinentry : 1.2.1-2 |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:22 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/pinentry/issues/3
Saturday, 25 November 2023, 20:22 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/pinentry/issues/3
FS#75740implementation.```
diff --git preexec preexec
index b8312d1..0c8ab3b 100755
--- preexec
+++ preexec
@@ -2,4 +2,4 @@
# Define additional functionality for pinentry. For example
#test -e /usr/lib/libgcr-base-3.so.1 && exec /usr/bin/pinentry-gnome3 "$@"
-#test -e /usr/lib/libQt5Widgets.so.5 && exec /usr/bin/pinentry-qt "$@"
+#test -e /usr/lib/libKF5WaylandClient.so.5 -a -e /usr/lib/libQt5X11Extras.so.5 && exec /usr/bin/pinentry-qt "$@"
```
$ readelf -d /usr/bin/pinentry-qt | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libsecret-1.so.0]
0x0000000000000001 (NEEDED) Shared library: [libglib-2.0.so.0]
0x0000000000000001 (NEEDED) Shared library: [libassuan.so.0]
0x0000000000000001 (NEEDED) Shared library: [libgpg-error.so.0]
0x0000000000000001 (NEEDED) Shared library: [libKF5WaylandClient.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Gui.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5Core.so.5]
0x0000000000000001 (NEEDED) Shared library: [libX11.so.6]
0x0000000000000001 (NEEDED) Shared library: [libQt5Widgets.so.5]
0x0000000000000001 (NEEDED) Shared library: [libQt5X11Extras.so.5]
0x0000000000000001 (NEEDED) Shared library: [libncursesw.so.6]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
if you run the code in pure wayland setting, does the code still require X11 shared libs even though its not actually in the running code path? does it work or not run?
pinentry-qt does not run without libQt5X11Extras.so.5 even in a pure Wayland environment. That is because NEEDED libraries are checked before pinentry determines to use Wayland or X11 code path.
https://dev.gnupg.org/
```
/usr/bin/pinentry-qt: error while loading shared libraries: libKF5WaylandClient.so.5: cannot open shared object file: No such file or directory
```
P.S. Yes, there are still people running X11 out there ;-/