Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] emerge with another PATH
Date: Fri, 20 May 2022 15:44:04
Message-Id: 92fff584-19d5-d730-ab23-6c041c527ab8@gmail.com
In Reply to: Re: [gentoo-user] emerge with another PATH by karl@aspodata.se
1 karl@××××××××.se wrote:
2 > Neil Bothwick:
3 >> On Fri, 20 May 2022 15:55:22 +0200 (CEST), karl@××××××××.se wrote:
4 >>> How do I run emerge so that when buildin/emerging the package another
5 >>> PATH is used ?
6 >> PATH is just an environment variable, so
7 >>
8 >> PATH="/path1:/path2" emerge blah
9 >>
10 >> should do that.
11 > Doesn't seems to work...
12 >
13 > # echo $PATH
14 > /usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2022/bin/x86_64-linux
15 > # emerge -aqvu app-text/dblatex
16 > ...
17 > # grep ^Err /Net/gentoo/tmpdir/portage/app-text/dblatex-0.3.11-r1/temp/build.log
18 > Error: not found: latex, makeindex, pdflatex, kpsewhich
19 > # which latex
20 > /usr/local/texlive/2022/bin/x86_64-linux/latex
21 > #
22 >
23 > Something seems to set its own PATH.
24 >
25 > Regards,
26 > /Karl Hammar
27 >
28 >
29 >
30
31 From man emerge:
32
33 ENVIRONMENT OPTIONS
34
35 ROOT = [path]
36 Use ROOT to specify the target root filesystem to be used for merging
37 the requested packages or ebuilds and their runtime dependencies. This
38 variable can be set via the --root option or in make.conf(5) (the
39 command line overrides other settings).
40 Defaults to /.
41
42 --root=DIR
43 Set the ROOT environment variable.
44
45 That variable is either set in make.conf or on the emerge command line
46 as a option.  Of course, this depends on what it is you are trying to
47 accomplish.  More info on that may help others to know what settings
48 need to be adjusted. 
49
50 Hope that helps.
51
52 Dale
53
54 :-)  :-)