Gentoo Archives: gentoo-dev

From: Aron Griffis <agriffis@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] portage prize winners
Date: Thu, 03 Jun 2004 14:45:03
Message-Id: 20040603144251.GC18102@time.flatmonk.org
In Reply to: Re: [gentoo-dev] portage prize winners by splite-gentoo@sigint.cs.purdue.edu
1 splite-gentoo@××××××××××××××××.edu wrote: [Thu Jun 03 2004, 09:59:37AM EDT]
2 > On Wed, Jun 02, 2004 at 09:28:17PM -0400, Aron Griffis wrote:
3 > > Doing some maintenance on the tree, found some real prize winning
4 > > brokenness. Here's just a taste...
5 > >
6 > > use python && use ppc || myconf="$myconf --with-python"
7 >
8 > What's wrong with this? It's just a succinct way of saying:
9 >
10 > if use python && ! use ppc; then
11 > myconf="$myconf --with-python"
12 > fi
13
14 I'm glad you asked! It's actually a succinct way of saying:
15
16 if ! use python || ! use ppc; then
17 myconf="$myconf --with-python"
18 fi
19
20 Try these on the bash command-line:
21
22 true && false || echo borken
23 false && true || echo borken
24
25 If you're still confused by this, or think I'm wrong, let me know and
26 I'll explain further. The BEST would be the following, which
27 explicitly disables python instead of leaving it to be determined by
28 configure.
29
30 if use ppc; then
31 myconf="$myconf --without-python"
32 else
33 myconf="$myconf $(use_with python)"
34 fi
35
36 Regards,
37 Aron
38
39 --
40 Aron Griffis
41 Gentoo Linux Developer

Replies

Subject Author
Re: [gentoo-dev] portage prize winners splite-gentoo@××××××××××××××××.edu