I use okular outside of KDE, and I don't need any functionality provided by kwallet. It seems like upstream supports building without kwallet support, as there's a WITH_KWALLET ifdef available, though support for it can not be disabled without patching the CMakeLists.txt: https://invent.kde.org/graphics/okular/-/blob/master/CMakeLists.txt#L101 I've contacted upstream about whether it's possible to build without KWallet support (mistakenly using the wrong bug tracker), but they just told me to get my vision checked: https://invent.kde.org/graphics/okular/-/issues/61 Something like a `sed -i '/^ Wallet$/d' CMakeLists.txt` in src_prepare() would likely be enough to disable support for it, as setting the `${optionalComponents}` variable will still cause it to be used when it's installed. I'd like it if kwallet support was made optional through a USE flag, given it's "supported" (at least partially) by upstream.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=1d70d930366adcb88fef9f0559af30b1a64f7352 commit 1d70d930366adcb88fef9f0559af30b1a64f7352 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-08-31 15:26:50 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-08-31 15:40:12 +0000 kde-apps/okular: Add IUSE="kwallet" via upstream submitted patch See also: https://invent.kde.org/graphics/okular/-/merge_requests/474 Bug: https://bugs.gentoo.org/810958 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../files/okular-21.08.1-optional-options.patch | 109 +++++++++++++++++++++ kde-apps/okular/metadata.xml | 1 + kde-apps/okular/okular-21.08.49.9999.ebuild | 6 +- kde-apps/okular/okular-9999.ebuild | 6 +- 4 files changed, 118 insertions(+), 4 deletions(-)
Thanks a lot for looking into this!
With the kwallet USE flag disabled, I got error "Could not open file:///path/to/file.pdf" when trying to open a password protected PDF file.
(In reply to Sok Ann Yap from comment #3) > With the kwallet USE flag disabled, I got error "Could not open > file:///path/to/file.pdf" when trying to open a password protected PDF file. I'd probably open a new bug for this, but that might well be expected.
I think that's very much expected.