1 |
On 2022-05-20 17:22+0200 karl@××××××××.se wrote: |
2 |
|
3 |
> Neil Bothwick: |
4 |
> > On Fri, 20 May 2022 15:55:22 +0200 (CEST), karl@××××××××.se wrote: |
5 |
> > > How do I run emerge so that when buildin/emerging the package |
6 |
> > > another PATH is used ? |
7 |
> > |
8 |
> > PATH is just an environment variable, so |
9 |
> > |
10 |
> > PATH="/path1:/path2" emerge blah |
11 |
> > |
12 |
> > should do that. |
13 |
> |
14 |
> Doesn't seems to work... |
15 |
> |
16 |
> # echo $PATH |
17 |
> /usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2022/bin/x86_64-linux |
18 |
> # emerge -aqvu app-text/dblatex |
19 |
> ... |
20 |
> # grep ^Err |
21 |
> /Net/gentoo/tmpdir/portage/app-text/dblatex-0.3.11-r1/temp/build.log |
22 |
> Error: not found: latex, makeindex, pdflatex, kpsewhich # which latex |
23 |
> /usr/local/texlive/2022/bin/x86_64-linux/latex |
24 |
> # |
25 |
> |
26 |
> Something seems to set its own PATH. |
27 |
> |
28 |
> Regards, |
29 |
> /Karl Hammar |
30 |
|
31 |
It probably reinitialises PATH when dropping to the portage user? Try |
32 |
modifying PATH in /etc/portage/bashrc — note that this file is sourced |
33 |
multiple times during the build, see |
34 |
<https://wiki.gentoo.org/wiki//etc/portage/bashrc>. |
35 |
|
36 |
Kind regards, tastytea |