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] fixheadtails.eclass: move sed to BDEPEND for EAPI 7
Date: Fri, 20 Mar 2020 18:19:31
Message-Id: 875zey51p1.fsf@gmail.com
1 It executes sed at build time, so it should be installed in /.
2
3 Signed-off-by: David Michael <fedora.dm0@×××××.com>
4 ---
5
6 Hi,
7
8 Here is another simple dependency move to put a required program in the
9 correct ROOT so it can be executed during the build. It's basically the
10 same as 814ab1294edf3565fc02fe63d15d6fa7ca886429.
11
12 Thanks.
13
14 David
15
16 eclass/fixheadtails.eclass | 7 +++++--
17 1 file changed, 5 insertions(+), 2 deletions(-)
18
19 diff --git a/eclass/fixheadtails.eclass b/eclass/fixheadtails.eclass
20 index c19d33924aa..5d221ca678c 100644
21 --- a/eclass/fixheadtails.eclass
22 +++ b/eclass/fixheadtails.eclass
23 @@ -1,4 +1,4 @@
24 -# Copyright 1999-2014 Gentoo Foundation
25 +# Copyright 1999-2020 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 # @ECLASS: fixheadtails.eclass
29 @@ -8,7 +8,10 @@
30 # Original author John Mylchreest <johnm@g.o>
31 # @BLURB: functions to replace obsolete head/tail with POSIX compliant ones
32
33 -DEPEND=">=sys-apps/sed-4"
34 +case "${EAPI:-0}" in
35 + [0-6]) DEPEND=">=sys-apps/sed-4" ;;
36 + *) BDEPEND=">=sys-apps/sed-4" ;;
37 +esac
38
39 _do_sed_fix() {
40 einfo " - fixed $1"
41 --
42 2.21.1

Replies