Changeset efcb393 for chapter05/coreutils.xml
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/coreutils.xml
r9d719e2 refcb393 46 46 <para>Prepare Coreutils for compilation:</para> 47 47 48 <screen><userinput remap="configure">./configure --prefix=/tools --enable-install-program=hostname</userinput></screen> 48 <screen><userinput remap="configure">./configure --prefix=/usr \ 49 --host=$LFS_TGT \ 50 --build=$(build-aux/config.guess) \ 51 --enable-install-program=hostname \ 52 --enable-no-install-program=kill,uptime</userinput></screen> 49 53 50 54 <variablelist> … … 65 69 <screen><userinput remap="make">make</userinput></screen> 66 70 67 <para>Compilation is now complete. As discussed earlier, running the test68 suite is not mandatory for the temporary tools here in this chapter. To run69 the Coreutils test suite anyway, issue the following command:</para>70 71 <screen><userinput remap="test">make RUN_EXPENSIVE_TESTS=yes check</userinput></screen>72 73 <para>The <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the74 test suite to run several additional tests that are considered75 relatively expensive (in terms of CPU power and memory usage) on some76 platforms, but generally are not a problem on Linux.</para>77 78 71 <para>Install the package:</para> 79 72 80 <screen><userinput remap="install">make install</userinput></screen>73 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 81 74 <!-- 82 75 <para>The above command refuses to install <filename>su</filename> … … 87 80 <screen><userinput remap="install">cp -v src/su /tools/bin</userinput></screen> 88 81 --> 82 <para>Move programs to their final expected locations. Although this is 83 not necessary in this temporary environment, we must do so because some 84 programs harcode executable locations:</para> 85 86 <screen><userinput remap="install">mv -v $LFS/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $LFS/bin 87 mv -v $LFS/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} $LFS/bin 88 mv -v $LFS/usr/bin/{rmdir,stty,sync,true,uname} $LFS/bin 89 mv -v $LFS/usr/bin/chroot $LFS/usr/sbin 90 mkdir -pv $LFS/usr/share/man/man8 91 mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8 92 sed -i s/\"1\"/\"8\"/1 $LFS/usr/share/man/man8/chroot.8 93 mv -v $LFS/usr/bin/{head,nice,sleep,touch} $LFS/bin</userinput></screen> 94 89 95 </sect2> 90 96
Note:
See TracChangeset
for help on using the changeset viewer.