• [gentoo-user] emerge with another PATH

    From karl@aspodata.se@21:1/5 to All on Fri May 20 16:00:01 2022
    How do I run emerge so that when buildin/emerging the package another
    PATH is used ?

    Regards,
    /Karl Hammar

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to karl@aspodata.se on Fri May 20 16:30:01 2022
    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.

    Unless what you are really asking is how do you get emerge to install
    files to a different location. In that case look at the --root option in
    man emerge.


    --
    Neil Bothwick

    Is there another word for synonym?

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmKHpYkACgkQ92eFu0QS MJiT0A//SbRlqZNmOkynAlnfKSv6FN/aG6QjlhjItc2zTKPsUc5gDMudEAaQSj0K KHvu7edSmLApAZuJ8Ky5DHoNO9FlZVwDaLsIXkmI1c9lqXqu3nLnpxTBgZLsxiUP hS2U8UOGGPd+qzgnp7cOp8+UdioPBSDO2F2L6HRUluNUTH8lOwCxrrwVoZhk0DOi NcVkz5/ttB1NZNtm3gTZqk2s1yrjMBKq94P0BpKwOe2rTUb+JLXryb/xPCl5k6rp BkB44caP57faJofIXisn7ph69Bh1QtHZeGklQg6FylBCs2NvrwFbFL3BVS6WImMX UVob6qMvfQhBBqOcfb9yyeFm9Pv2yPjDFCoc0tt4rG3ApES2Q8UpKA8sLJ+vv5JH 04slM6/l/ifyqoquxX4zh4lTZ6ve3Tzhk/e93rBcrznrSAKiVpOHdJWBXfA5ITMi hVpRroLgIUMxu8BUUT2RjOrhr+QNhsm/NQYPZTNH1MbIfoqX2RTdwclsate5Ty3O FCrbNvnVN17k39DAAJNYvBFzLT8JWh/bckYSX067qvs5X2ZHVNfQYZXGziHE11U6 1SRMjmSbDmEdxbqT2IRRpzwhNbFji5wTfMoEbigSPuMc/nGYLD4OgcayoHdzKGil PXFV57m/djxKT8qC10aumOW6ap9XEWyKO9M0Ry98zBLGqGQexT8=
    =G2EL
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From karl@aspodata.se@21:1/5 to All on Fri May 20 17:30:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From karl@aspodata.se@21:1/5 to All on Fri May 20 17:50:01 2022
    tastytea:
    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>.

    Thanks, that solved it.

    Regards,
    /Karl Hammar

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tastytea@21:1/5 to karl@aspodata.se on Fri May 20 17:40:01 2022
    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...

    # 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

    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>.

    Kind regards, tastytea

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to karl@aspodata.se on Fri May 20 17:50:01 2022
    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...

    # 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




    From man emerge:

    ENVIRONMENT OPTIONS

    ROOT = [path]
    Use ROOT to specify the target root filesystem to be used for merging
    the requested packages or ebuilds and their runtime dependencies. This
    variable can be set via the --root option or in make.conf(5) (the
    command line overrides other settings).
    Defaults to /.

    --root=DIR
    Set the ROOT environment variable.

    That variable is either set in make.conf or on the emerge command line
    as a option.  Of course, this depends on what it is you are trying to accomplish.  More info on that may help others to know what settings
    need to be adjusted. 

    Hope that helps.

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)