Gentoo Archives: gentoo-dev

From: David Michael <fedora.dm0@×××××.com>
To: gentoo-dev@l.g.o
Cc: base-system@g.o
Subject: [gentoo-dev] [PATCH] fcaps.eclass: use BDEPEND for EAPI 7
Date: Fri, 13 Mar 2020 18:23:51
Message-Id: 871rpwcdw0.fsf@gmail.com
1 The eclass installs libcap to execute the setcap program, so it
2 must be installed in /. Optional libcap linking is handled by the
3 USE=caps flag, which is unrelated to this eclass, so the DEPEND
4 declaration is not needed on EAPI 7.
5
6 Closes: https://bugs.gentoo.org/700018
7 Signed-off-by: David Michael <fedora.dm0@×××××.com>
8 ---
9 eclass/fcaps.eclass | 7 +++++--
10 1 file changed, 5 insertions(+), 2 deletions(-)
11
12 diff --git a/eclass/fcaps.eclass b/eclass/fcaps.eclass
13 index 467f955f5e9..b0479f32456 100644
14 --- a/eclass/fcaps.eclass
15 +++ b/eclass/fcaps.eclass
16 @@ -1,4 +1,4 @@
17 -# Copyright 1999-2015 Gentoo Foundation
18 +# Copyright 1999-2020 Gentoo Authors
19 # Distributed under the terms of the GNU General Public License v2
20
21 # @ECLASS: fcaps.eclass
22 @@ -34,7 +34,10 @@ _FCAPS_ECLASS=1
23 IUSE="+filecaps"
24
25 # We can't use libcap-ng atm due to #471414.
26 -DEPEND="filecaps? ( sys-libs/libcap )"
27 +case "${EAPI:-0}" in
28 + 7) BDEPEND="filecaps? ( sys-libs/libcap )" ;;
29 + *) DEPEND="filecaps? ( sys-libs/libcap )" ;;
30 +esac
31
32 # @ECLASS-VARIABLE: FILECAPS
33 # @DEFAULT_UNSET
34 --
35 2.21.1

Replies

Subject Author
Re: [gentoo-dev] [PATCH] fcaps.eclass: use BDEPEND for EAPI 7 Mike Gilbert <floppym@g.o>