1 |
tastytea: |
2 |
> On 2022-05-20 17:22+0200 karl@××××××××.se wrote: |
3 |
> |
4 |
> > Neil Bothwick: |
5 |
> > > On Fri, 20 May 2022 15:55:22 +0200 (CEST), karl@××××××××.se wrote: |
6 |
> > > > How do I run emerge so that when buildin/emerging the package |
7 |
> > > > another PATH is used ? |
8 |
> > > |
9 |
> > > PATH is just an environment variable, so |
10 |
> > > |
11 |
> > > PATH="/path1:/path2" emerge blah |
12 |
> > > |
13 |
> > > should do that. |
14 |
> > |
15 |
> > Doesn't seems to work... |
16 |
... |
17 |
> It probably reinitialises PATH when dropping to the portage user? Try |
18 |
> modifying PATH in /etc/portage/bashrc — note that this file is sourced |
19 |
> multiple times during the build, see |
20 |
> <https://wiki.gentoo.org/wiki//etc/portage/bashrc>. |
21 |
|
22 |
Thanks, that solved it. |
23 |
|
24 |
Regards, |
25 |
/Karl Hammar |