Ignore:
Timestamp:
02/05/2022 12:48:27 PM (2 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
d79ba5b
Parents:
69c4524
git-author:
Xi Ruoyao <xry111@…> (02/05/2022 03:36:39 AM)
git-committer:
Xi Ruoyao <xry111@…> (02/05/2022 12:48:27 PM)
Message:

remove "+h" in bash commands in chroot (#4998)

In the new cross-compilation approach, the $PATH in chroot does not
contain '/tools/bin'. So "+h" is useless in chroot as the newly
installed tools always replace the temporary counterpart at the same
location.

"+h" in chapter4/settingenviron.xml is kept deliberately. Currently
$LFS/tools/bin only contains programs prefixed with
"x86_64-lfs-linux-gnu-", and it's highly unlikely that any distro will
ever ship a program named with such prefix. So it may seems that we can
remove this "+h" as well. However, the situation may change in future
and we can take this oppertunity to teach the advantage and disvantage
of bash hash feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter04/settingenviron.xml

    r69c4524 r490dc153  
    6565  the shell will always search the <envar>PATH</envar> when a program is to
    6666  be run. As such, the shell will find the newly compiled tools in
    67   <filename class="directory">$LFS/tools</filename> as soon as they are
    68   available without remembering a previous version of the same program in a
    69   different location.</para>
     67  <filename class="directory">$LFS/tools/bin</filename> as soon as they are
     68  available without remembering a previous version of the same program
     69  provided by the host distro, in
     70  <filename class='directory'>/usr/bin</filename> or
     71  <filename class='directory'>/bin</filename>.</para>
    7072      </listitem>
    7173    </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.