Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: pacho@g.o, dotnet@g.o
Subject: Re: [gentoo-dev] mono-env.eclass: new eclass to be used by most of dotnet packages
Date: Sun, 14 Apr 2013 10:07:44
Message-Id: 20130414120842.46d1a18d@pomiocik.lan
In Reply to: Re: [gentoo-dev] mono-env.eclass: new eclass to be used by most of dotnet packages by Pacho Ramos
1 On Sun, 14 Apr 2013 11:59:14 +0200
2 Pacho Ramos <pacho@g.o> wrote:
3
4 > El dom, 14-04-2013 a las 11:45 +0200, Michał Górny escribió:
5 > > On Sun, 14 Apr 2013 11:40:03 +0200
6 > > Pacho Ramos <pacho@g.o> wrote:
7 > >
8 > > > # >=mono-0.92 versions using mcs -pkg:foo-sharp require shared memory, so we set the
9 > > > # shared dir to ${T} so that ${T}/.wapi can be used during the install process.
10 > > > export MONO_SHARED_DIR="${T}"
11 > >
12 > > Don't use ${T} in global scope. And just don't export them
13 > > in the global scope either.
14 >
15 > Why not?
16
17 Let's start with the fact that ${T} is only partially persistent
18 by the words of PMS. I don't know if it's really relevant here but
19 you're exporting persistent variables with value based on
20 an non-persistent one.
21
22 Thinking about it more, it probably would work. As long as you don't
23 assume anything about those directories on pkg_*rm() where ${T} would
24 have changed already and your variables wouldn't.
25
26 Also, why are you exporting HOME? PMS does that already...
27
28 --
29 Best regards,
30 Michał Górny

Attachments

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

Replies