Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468258 - gnome-base/gnome-keyring-3.6.3: Failed to set capabilities
Summary: gnome-base/gnome-keyring-3.6.3: Failed to set capabilities
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2013-05-02 09:38 UTC by Nikos Chantziaras
Modified: 2013-05-11 16:13 UTC (History)
1 user (show)

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


Attachments
emerge --info =gnome-base/gnome-keyring-3.6.3 (file_468258.txt,5.99 KB, text/plain)
2013-05-02 09:38 UTC, Nikos Chantziaras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikos Chantziaras 2013-05-02 09:38:22 UTC
Created attachment 347128 [details]
emerge --info =gnome-base/gnome-keyring-3.6.3

When emerging gnome-base/gnome-keyring-3.6.3, I get this portage warning:

"Failed to set capabilities. Probable reason is missing kernel support. Your kernel must have <FS>_FS_SECURITY enabled (e.g. EXT4_FS_SECURITY) where <FS> is the filesystem to store //usr/bin/gnome-keyring-daemon"

My kernel does have EXT4_FS_SECURITY enabled. The real problem here is that sys-libs/libcap is not installed, and gnome-keyring-3.6.3.ebuild does not pull it in as a dep (it pulls-in sys-libs/libcap-ng instead, which doesn't seem to help).

After I emerged sys-libs/libcap manually and then re-emerged gnome-keyring, the warning was gone.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-05-10 10:28:16 UTC
This dependency comes from the eclass.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2013-05-10 13:11:40 UTC
(In reply to comment #1)
> This dependency comes from the eclass.

the gnome-keyring ebuild has a function called fcaps() which manually calls setcap without depending on the package that provides it, no eclass involved here.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-05-10 13:45:33 UTC
ah right, I thought the change to use eclass was backported to 3.6, my bad.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-05-10 16:37:17 UTC
Apply the same change done to 3.8, see bug #454908.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-05-10 19:51:01 UTC
+  10 May 2013; Gilles Dartiguelongue <eva@gentoo.org>
+  gnome-keyring-3.6.3.ebuild, metadata.xml:
+  Add longdescription, bug #463542. Use fcaps eclass instead of custom code,
+  bug #468258.
+

Thanks for reporting.
Comment 6 Nikos Chantziaras 2013-05-11 08:02:03 UTC
The USE flags are somewhat confusing though:

$ equery uses gnome-base/gnome-keyring
 + + caps     : Use Linux capabilities library to control privilege
 + + filecaps : Use Linux file capabilities to control privilege rather than set*id

Looks like the exact same thing to me.
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-05-11 15:03:50 UTC
Yes, this was discussed on the mailing list when the eclass was introduced and I still can't make my head clear about this stuff for the few cases we have to handle. I just seems to match the explanation from vapier though.
Comment 8 Pacho Ramos gentoo-dev 2013-05-11 16:13:34 UTC
https://bugs.gentoo.org/show_bug.cgi?id=454908#c8

The same for me, I don't fully understand the reasoning but, since I even don't know much about fcaps...