Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705132 - app-crypt/libsecret should not PDEPEND on >=gnome-base/gnome-keyring-3
Summary: app-crypt/libsecret should not PDEPEND on >=gnome-base/gnome-keyring-3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 4 votes (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PullRequest
: 710072 773346 777456 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-01-10 22:22 UTC by Oliver Freyermuth
Modified: 2021-06-30 17:55 UTC (History)
15 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libsecret-0.20.3-r1.ebuild (libsecret-0.20.3-r1.ebuild,2.60 KB, text/plain)
2020-12-07 16:03 UTC, Paolo Pedroni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Freyermuth 2020-01-10 22:22:31 UTC
app-crypt/libsecret has a fixed PDEPEND on >=gnome-base/gnome-keyring-3.

https://bugs.gentoo.org/475182#c2 explains this is due to gnome-keyring being the only package implementing the fdo Secret Service API in portage. 

This is not true anymore:
>=app-admin/keepassxc-2.5.0 implements this API and actually collides at runtime when gnome-keyring-daemon is running ( see e.g. https://github.com/keepassxreboot/keepassxc/issues/3945 ), so ideally, users should disable (or not install) gnome-keyring when using KeepassXC as fdo Secret Service API provider. 

A clean replacement of gnome-keyring in Gentoo as fdo Secret Service API provider by KeepassXC is not yet possible due to the hard dependency enforced by libsecret. 

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2020-02-22 17:48:44 UTC
*** Bug 710072 has been marked as a duplicate of this bug. ***
Comment 2 Paolo Pedroni 2020-12-07 16:03:18 UTC
Created attachment 677158 [details]
libsecret-0.20.3-r1.ebuild

Could this work? Anyone dare to try?

Signed-off-by: Paolo Pedroni <paolo.pedroni@iol.it>
Comment 3 Andreas Fink 2020-12-07 17:09:31 UTC
Works for me. Allows me to have a system without gnome-keyring. I am using keepassxc for quite some time as fdo Secret Service API provider which also works fine.
Comment 4 Konstantinos Smanis 2020-12-07 20:31:33 UTC
Thanks for the heads-up, I have been meaning to get rid of gnome-keyring for quite some time. KeePassXC seems to be working like a charm as a Secret Service provider.
Comment 5 Pacho Ramos gentoo-dev 2021-03-22 09:53:52 UTC
*** Bug 777456 has been marked as a duplicate of this bug. ***
Comment 6 WGH 2021-03-22 14:45:43 UTC
One could also add gnome-base/gnome-keyring to /etc/portage/profile/package.provided for testing/as a workaround.
Comment 7 Anton Bolshakov 2021-05-30 02:49:57 UTC
*** Bug 773346 has been marked as a duplicate of this bug. ***
Comment 8 Anton Bolshakov 2021-05-30 03:31:40 UTC
In addition to keepassxc, it might be possible to add more options:

1)
kwallet too with WIP patch:
https://invent.kde.org/frameworks/kwallet/-/merge_requests/11
also, see https://bugs.kde.org/show_bug.cgi?id=313216

2)
dev-libs/qtkeychain
 "If running, GNOME Keyring is used, otherwise QtKeychain tries to use KWallet (via D-Bus), if available. Libsecret (common API for desktop-specific solutions) is also supported."
Comment 9 Larry the Git Cow gentoo-dev 2021-06-30 17:55:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=375d4ecea4f6065b75cdd99cc19c372ab7fd5c64

commit 375d4ecea4f6065b75cdd99cc19c372ab7fd5c64
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2021-06-30 13:33:59 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2021-06-30 17:55:05 +0000

    app-crypt/libsecret: virtualise Secret Service API dependency
    
    User tests - including my own - show that app-admin/keepassxc works fine
    as a Secret Service API provider, and KDE will likely acquire a
    compatible provider soon.
    
    Change made with permission from leio on behalf of the Gnome Project.
    
    Closes: https://bugs.gentoo.org/705132
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 app-crypt/libsecret/libsecret-0.20.4-r1.ebuild | 89 ++++++++++++++++++++++++++
 1 file changed, 89 insertions(+)