On 04/14/2013 02:59 AM, Pacho Ramos 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?
It's more flexible if you put it in a function and call it from pkg_setup. That way, if it turns out that you need to do something that can't be done in global scope, you're already prepared. -- Thanks, Zac