On Sun, 14 Apr 2013 11:59:14 +0200
Pacho Ramos <pa...@gentoo.org> wrote:

> El dom, 14-04-2013 a las 11:45 +0200, Michał Górny escribió:
> > On Sun, 14 Apr 2013 11:40:03 +0200
> > Pacho Ramos <pa...@gentoo.org> wrote:
> > 
> > > # >=mono-0.92 versions using mcs -pkg:foo-sharp require shared memory, so 
> > > we set the
> > > # shared dir to ${T} so that ${T}/.wapi can be used during the install 
> > > process.
> > > export MONO_SHARED_DIR="${T}"
> > 
> > Don't use ${T} in global scope. And just don't export them
> > in the global scope either.
> 
> Why not?

Let's start with the fact that ${T} is only partially persistent
by the words of PMS. I don't know if it's really relevant here but
you're exporting persistent variables with value based on
an non-persistent one.

Thinking about it more, it probably would work. As long as you don't
assume anything about those directories on pkg_*rm() where ${T} would
have changed already and your variables wouldn't.

Also, why are you exporting HOME? PMS does that already...

-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: PGP signature

Reply via email to