Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: Donnie Berkholz <dberkholz@g.o>
Cc: gentoo-dev@l.g.o, marineam@g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-emulation/xen: ChangeLog xen-3.1.1.ebuild
Date: Wed, 31 Oct 2007 04:54:13
Message-Id: 200710310051.04539.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-emulation/xen: ChangeLog xen-3.1.1.ebuild by Donnie Berkholz
1 On Wednesday 31 October 2007, Donnie Berkholz wrote:
2 > On 00:31 Wed 31 Oct , Mike Frysinger wrote:
3 > > On Monday 15 October 2007, Donnie Berkholz wrote:
4 > > > On 18:33 Mon 15 Oct , Micheal Marineau (marineam) wrote:
5 > > > > 1.1 app-emulation/xen/xen-3.1.1.ebuild
6 > > > >
7 > > > > file :
8 > > > > http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen
9 > > > >-3.1 .1.ebuild?rev=1.1&view=markup plain:
10 > > > > http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/xen/xen
11 > > > >-3.1 .1.ebuild?rev=1.1&content-type=text/plain
12 > > > >
13 > > > > src_compile() {
14 > > > > local myopt
15 > > > > use debug && myopt="${myopt} debug=y"
16 > > > > use pae && myopt="${myopt} pae=y"
17 > > > >
18 > > > > if use custom-cflags; then
19 > > > > filter-flags -fPIE -fstack-protector
20 > > > > else
21 > > > > unset CFLAGS
22 > > > > fi
23 > > > >
24 > > > > # Send raw LDFLAGS so that --as-needed works
25 > > > > emake LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile
26 > > > > failed" }
27 > > > >
28 > > > > src_install() {
29 > > > > local myopt
30 > > > > use debug && myopt="${myopt} debug=y"
31 > > > > use pae && myopt="${myopt} pae=y"
32 > > >
33 > > > The environment should be preserved across phases, so you shouldn't
34 > > > have to repeat this stuff.
35 > >
36 > > "myopt" is declared "local"
37 >
38 > Sure, but did you notice it's set to the exact thing in both phases?
39 > Seems a bit pointless.
40
41 i'm not disagreeing on that point, just that "myopt" is not currently part of
42 the environment so it wont be preserved ;)
43 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature