- Timestamp:
- 05/03/2020 09:02:51 PM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 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, ml-11.0, 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:
- a715dec
- Parents:
- 9d719e2
- Location:
- chapter04
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter04/abouttestsuites.xml
r9d719e2 refcb393 26 26 27 27 <note> 28 <para>Experience has shown that there is little to be gained from running 29 the test suites in <xref linkend="chapter-temporary-tools"/>. There can be 30 no escaping the fact that the host system always exerts some influence on 31 the tests in that chapter, often causing inexplicable failures. Because 32 the tools built in <xref linkend="chapter-temporary-tools"/> are temporary 33 and eventually discarded, we do not recommend running the test suites in 34 <xref linkend="chapter-temporary-tools"/> for the average reader. The 35 instructions for running those test suites are provided for the benefit of 36 testers and developers, but they are strictly optional.</para> 28 <para>Running the test suites in <xref linkend="chapter-temporary-tools"/> 29 is impossible, since the programs are compiled with a cross-compiler, 30 so are not supposed to be able to run on the build host.</para> 37 31 </note> 38 32 -
chapter04/addinguser.xml
r9d719e2 refcb393 78 78 79 79 <para>Grant <systemitem class="username">lfs</systemitem> full access to 80 <filename class="directory">$LFS/tools</filename> by making80 all directories under <filename class="directory">$LFS</filename> by making 81 81 <systemitem class="username">lfs</systemitem> the directory owner:</para> 82 82 83 <screen><userinput>chown -v lfs $LFS/ tools</userinput></screen>83 <screen><userinput>chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,lib64,tools}</userinput></screen> 84 84 85 85 <para>If a separate working directory was created as suggested, give -
chapter04/chapter04.xml
r9d719e2 refcb393 14 14 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="introduction.xml"/> 15 15 <!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="aboutlfs.xml"/>--> 16 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="creating toolsdir.xml"/>16 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="creatingminlayout.xml"/> 17 17 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="addinguser.xml"/> 18 18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="settingenviron.xml"/> -
chapter04/introduction.xml
r9d719e2 refcb393 12 12 13 13 <para>In this chapter, we will perform a few additional tasks to prepare 14 for building the temporary system. We will create a directoryin14 for building the temporary system. We will create a set of directories in 15 15 <filename class="directory">$LFS</filename> for the installation of the 16 16 temporary tools, add an unprivileged user to reduce risk, -
chapter04/settingenviron.xml
r9d719e2 refcb393 44 44 LC_ALL=POSIX 45 45 LFS_TGT=$(uname -m)-lfs-linux-gnu 46 PATH= /tools/bin:/bin:/usr/bin46 PATH=$LFS/tools/bin:/bin:/usr/bin 47 47 export LFS LC_ALL LFS_TGT PATH</literal> 48 48 EOF</userinput></screen> … … 62 62 the shell will always search the <envar>PATH</envar> when a program is to 63 63 be run. As such, the shell will find the newly compiled tools in 64 <filename class="directory"> $LFS/tools</filename> as soon as they are64 <filename class="directory">~/tools</filename> as soon as they are 65 65 available without remembering a previous version of the same program in a 66 66 different location.</para> … … 109 109 110 110 <varlistentry> 111 <term><parameter>PATH= /tools/bin:/bin:/usr/bin</parameter></term>111 <term><parameter>PATH=$LFS/tools/bin:/bin:/usr/bin</parameter></term> 112 112 <listitem> 113 <para>By putting <filename class="directory"> /tools/bin</filename> ahead of the113 <para>By putting <filename class="directory">$LFS/tools/bin</filename> ahead of the 114 114 standard <envar>PATH</envar>, all the programs installed in <xref 115 115 linkend="chapter-temporary-tools"/> are picked up by the shell immediately after
Note:
See TracChangeset
for help on using the changeset viewer.