Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/i3status: ChangeLog i3status-2.3.ebuild
Date: Fri, 18 Nov 2011 09:32:19
Message-Id: 20111118093209.82B172004B@flycatcher.gentoo.org
1 tetromino 11/11/18 09:32:09
2
3 Modified: ChangeLog i3status-2.3.ebuild
4 Log:
5 Update fcaps() error message for recent kernels (bug #390903). Acked by xarthisius.
6
7 (Portage version: 2.2.0_alpha75/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.2 x11-misc/i3status/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/ChangeLog?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/ChangeLog?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/ChangeLog?r1=1.1&r2=1.2
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-misc/i3status/ChangeLog,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- ChangeLog 22 Jul 2011 08:14:00 -0000 1.1
23 +++ ChangeLog 18 Nov 2011 09:32:09 -0000 1.2
24 @@ -1,6 +1,10 @@
25 # ChangeLog for x11-misc/i3status
26 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3status/ChangeLog,v 1.1 2011/07/22 08:14:00 xarthisius Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3status/ChangeLog,v 1.2 2011/11/18 09:32:09 tetromino Exp $
29 +
30 + 18 Nov 2011; Alexandre Rostovtsev <tetromino@g.o> i3status-2.3.ebuild:
31 + Update fcaps() error message for recent kernels (bug #390903). Acked by
32 + xarthisius.
33
34 *i3status-2.3 (22 Jul 2011)
35
36
37
38
39 1.2 x11-misc/i3status/i3status-2.3.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/i3status-2.3.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/i3status-2.3.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/i3status-2.3.ebuild?r1=1.1&r2=1.2
44
45 Index: i3status-2.3.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/x11-misc/i3status/i3status-2.3.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- i3status-2.3.ebuild 22 Jul 2011 08:14:00 -0000 1.1
52 +++ i3status-2.3.ebuild 18 Nov 2011 09:32:09 -0000 1.2
53 @@ -1,10 +1,10 @@
54 # Copyright 1999-2011 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3status/i3status-2.3.ebuild,v 1.1 2011/07/22 08:14:00 xarthisius Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3status/i3status-2.3.ebuild,v 1.2 2011/11/18 09:32:09 tetromino Exp $
58
59 EAPI=4
60
61 -inherit toolchain-funcs
62 +inherit toolchain-funcs versionator
63
64 DESCRIPTION="generates a status bar for dzen2, xmobar or similar"
65 HOMEPAGE="http://i3wm.org/i3status/"
66 @@ -28,6 +28,7 @@
67 # @DESCRIPTION:
68 # fcaps sets the specified capabilities in the effective and permitted set of
69 # the given file. In case of failure fcaps sets the given file-mode.
70 +# Requires versionator.eclass
71 fcaps() {
72 local uid_gid=$1
73 local perms=$2
74 @@ -48,10 +49,13 @@
75 res=$?
76
77 if [ $res -ne 0 ]; then
78 - ewarn "Failed to set capabilities. Probable reason is missed kernel support."
79 - ewarn "Kernel must have SECURITY_FILE_CAPABILITIES, and <FS>_FS_SECURITY"
80 - ewarn "enabled (e.g. EXT3_FS_SECURITY) where <FS> is the filesystem to store"
81 - ewarn "${path}"
82 + ewarn "Failed to set capabilities. Probable reason is missing kernel support."
83 + ewarn "Your kernel must have <FS>_FS_SECURITY enabled (e.g. EXT4_FS_SECURITY)"
84 + ewarn "where <FS> is the filesystem to store ${path}"
85 + if ! version_is_at_least 2.6.33 "$(uname -r)"; then
86 + ewarn "For kernel 2.6.32 or older, you will also need to enable"
87 + ewarn "SECURITY_FILE_CAPABILITIES."
88 + fi
89 ewarn
90 ewarn "Falling back to suid now..."
91 chmod u+s ${path}