Gentoo Archives: gentoo-alt

From: Alan Hourihane <alanh@×××××××××××.uk>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Re: cmake eclass fix
Date: Thu, 06 Oct 2011 09:34:38
Message-Id: 4E8D7622.3070904@fairlite.co.uk
In Reply to: Re: [gentoo-alt] Re: cmake eclass fix by Alan Hourihane
1 On 10/06/11 10:29, Alan Hourihane wrote:
2 > On 10/06/11 10:15, Michael Haubenwallner wrote:
3 >> Hi Alan,
4 >>
5 >> On 10/06/2011 12:33 AM, Alan Hourihane wrote:
6 >>> On 10/05/11 22:39, Jonathan Callen wrote:
7 >>>> On 10/05/2011 03:01 PM, Alan Hourihane wrote:
8 >>>>> On 10/04/11 11:24, Alan Hourihane wrote:
9 >>>>>> On 10/04/11 11:21, Alan Hourihane wrote:
10 >>>>>>> On 08/14/11 19:05, Alan Hourihane wrote:
11 >>>>>>>> On 08/14/11 11:40, Fabian Groffen wrote:
12 >>>>>>>>> On 07-07-2011 15:42:40 +0100, Alan Hourihane wrote:
13 >>>>>>>>>> Hi all,
14 >>>>>>>>>>
15 >>>>>>>>>> Can someone replace the link the cmake eclass that says
16 >>>>>>>>>> ....
17 >>>>>>>>>>
18 >>>>>>>>>> if use prefix; then
19 >>>>>>>>>>
20 >>>>>>>>>> to
21 >>>>>>>>>>
22 >>>>>>>>>> if use prefix && ! EPREFIX=; then
23 >>>>>> if use prefix && "${EPREFIX}" != ""; then
24 >>>>>>
25 >>>>>> The above is better. Can this be committed ?
26 >>>>>>
27 >>>>> Actually this works for me.....
28 >>>>> if use prefix && ! ${EPREFIX}; then
29 >>>> I hope you meant:
30 >>>>
31 >>>> if use prefix && ! [[ ${EPREFIX} ]]; then
32 >> Reading the different variants (without reading the cmake.eclass),
33 >> these variants do give different results.
34 >>
35 >> Probably, you do want to fire that 'if' when "EPREFIX is not empty", right?
36 > Right.
37 >
38 >> Actually, the last one (as reported in [1]) does fire "when EPREFIX is empty".
39 >>
40 >> So you probably want:
41 >>
42 >> - if use prefix; then
43 >> + if use prefix && [[ ${EPREFIX} ]]; then
44 >>
45 >> So - have you actually tried your reported variant?
46 > It originally started out with
47 >
48 > if use prefix && ! $EPREFIX=; then
49 >
50 > which seemed to do the trick, but obviously hadn't tested it.
51
52 Meant to say, obviously hadn't tested the later variants.
53
54 Alan.