Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Cc: Ian Stakenvicius <axs@g.o>
Subject: Re: [gentoo-dev] patch eutils.eclass for EAPI 5
Date: Thu, 27 Sep 2012 17:32:05
Message-Id: 50648D2D.9010308@gentoo.org
In Reply to: Re: [gentoo-dev] patch eutils.eclass for EAPI 5 by Ian Stakenvicius
1 On 09/27/2012 10:16 AM, Ian Stakenvicius wrote:
2 > On 27/09/12 01:07 PM, Zac Medico wrote:
3 >> On 09/27/2012 09:49 AM, Ulrich Mueller wrote:
4 >>> As far as I can see, only the definition of the usex function
5 >>> must be disabled. Please review the patch included below.
6 >>>
7 >>> Ulrich
8 >>>
9 >>> --- eutils.eclass 15 Sep 2012 16:16:53 -0000 1.403 +++
10 >>> eutils.eclass 27 Sep 2012 16:45:14 -0000 @@ -1373,7 +1373,9 @@ #
11 >>> @DESCRIPTION: # If USE flag is set, echo [true output][true
12 >>> suffix] (defaults to "yes"), # otherwise echo [false
13 >>> output][false suffix] (defaults to "no"). +if has "${EAPI:-0}" 0
14 >>> 1 2 3 4; then usex() { use "$1" && echo "${2-yes}$4" || echo
15 >>> "${3-no}$5" ; } #382963 +fi
16 >>>
17 >>> # @FUNCTION: prune_libtool_files # @USAGE: [--all]
18 >>>
19 >
20 >> Looks good to me.
21 >
22 >> It may not work for unofficial EAPIs that don't include usex, but
23 >> I guess there's nothing we can do for those, and they can just be
24 >> replaced with newer EAPIs that include usex.
25 >
26 > ....i actually just committed the fix discussed in #gentoo-dev , using
27 > 'declare -F' instead (similar to the eqawarn conditional declaration
28 > already in eutils.eclass)
29 >
30 >
31 > Sorry..
32
33 It's fine with me, but some of the other package manager devs might
34 object, since it makes assumptions about implementation details.
35 --
36 Thanks,
37 Zac

Replies

Subject Author
Re: [gentoo-dev] patch eutils.eclass for EAPI 5 Brian Harring <ferringb@×××××.com>