How do I run emerge so that when buildin/emerging the package another
PATH is used ?
On Fri, 20 May 2022 15:55:22 +0200 (CEST), karl@aspodata.se wrote:
How do I run emerge so that when buildin/emerging the package another
PATH is used ?
PATH is just an environment variable, so
PATH="/path1:/path2" emerge blah
should do that.
On 2022-05-20 17:22+0200 karl@aspodata.se wrote:...
Neil Bothwick:
On Fri, 20 May 2022 15:55:22 +0200 (CEST), karl@aspodata.se wrote:
How do I run emerge so that when buildin/emerging the package
another PATH is used ?
PATH is just an environment variable, so
PATH="/path1:/path2" emerge blah
should do that.
Doesn't seems to work...
It probably reinitialises PATH when dropping to the portage user? Try modifying PATH in /etc/portage/bashrc — note that this file is sourced multiple times during the build, see <https://wiki.gentoo.org/wiki//etc/portage/bashrc>.
Neil Bothwick:
On Fri, 20 May 2022 15:55:22 +0200 (CEST), karl@aspodata.se wrote:
How do I run emerge so that when buildin/emerging the package
another PATH is used ?
PATH is just an environment variable, so
PATH="/path1:/path2" emerge blah
should do that.
Doesn't seems to work...
# echo $PATH /usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2022/bin/x86_64-linux
# emerge -aqvu app-text/dblatex
...
# grep ^Err /Net/gentoo/tmpdir/portage/app-text/dblatex-0.3.11-r1/temp/build.log
Error: not found: latex, makeindex, pdflatex, kpsewhich # which latex /usr/local/texlive/2022/bin/x86_64-linux/latex
#
Something seems to set its own PATH.
Regards,
/Karl Hammar
Neil Bothwick:
On Fri, 20 May 2022 15:55:22 +0200 (CEST), karl@aspodata.se wrote:Doesn't seems to work...
How do I run emerge so that when buildin/emerging the package anotherPATH is just an environment variable, so
PATH is used ?
PATH="/path1:/path2" emerge blah
should do that.
# echo $PATH /usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2022/bin/x86_64-linux
# emerge -aqvu app-text/dblatex
...
# grep ^Err /Net/gentoo/tmpdir/portage/app-text/dblatex-0.3.11-r1/temp/build.log
Error: not found: latex, makeindex, pdflatex, kpsewhich
# which latex
/usr/local/texlive/2022/bin/x86_64-linux/latex
#
Something seems to set its own PATH.
Regards,
/Karl Hammar
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 303 |
Nodes: | 16 (2 / 14) |
Uptime: | 74:52:52 |
Calls: | 6,805 |
Calls today: | 1 |
Files: | 12,327 |
Messages: | 5,400,052 |