- Timestamp:
- 05/12/2021 04:24:11 AM (3 years ago)
- Branches:
- 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:
- 5ed37b3, c034573, df462a9
- Parents:
- 0f7d4cb
- Location:
- chapter06
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/bash.xml
r0f7d4cb rd7a9421 75 75 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 76 76 77 <para>Move the executable to where it is expected:</para>78 79 <screen><userinput remap="install">mv $LFS/usr/bin/bash $LFS/bin/bash</userinput></screen>80 81 77 <para>Make a link for the programs that use <command>sh</command> for 82 78 a shell:</para> -
chapter06/coreutils.xml
r0f7d4cb rd7a9421 84 84 programs harcode executable locations:</para> 85 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/{head,nice,sleep,touch} $LFS/bin 90 mv -v $LFS/usr/bin/chroot $LFS/usr/sbin 86 <screen><userinput remap="install">mv -v $LFS/usr/bin/chroot $LFS/usr/sbin 91 87 mkdir -pv $LFS/usr/share/man/man8 92 88 mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8 -
chapter06/file.xml
r0f7d4cb rd7a9421 91 91 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 92 92 93 <para>Move a shared library into its final location in the LFS system,94 and recreate the symlink for it:</para>95 96 <screen><userinput remap="install">mv -v $LFS/usr/lib/libmagic.so.* $LFS/lib97 ln -sfv ../../lib/$(readlink /usr/lib/libmagic.so) $LFS/usr/lib/libmagic.so</userinput></screen>98 99 93 </sect2> 100 94 -
chapter06/findutils.xml
r0f7d4cb rd7a9421 58 58 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 59 59 60 <para>Move the executable to its final expected location:</para>61 62 <screen><userinput remap="install">mv -v $LFS/usr/bin/find $LFS/bin63 sed -i 's|find:=${BINDIR}|find:=/bin|' $LFS/usr/bin/updatedb</userinput></screen>64 65 60 </sect2> 66 61 -
chapter06/grep.xml
r0f7d4cb rd7a9421 47 47 48 48 <screen><userinput remap="configure">./configure --prefix=/usr \ 49 --host=$LFS_TGT \ 50 --bindir=/bin</userinput></screen> 49 --host=$LFS_TGT</userinput></screen> 51 50 52 51 <para>Compile the package:</para> -
chapter06/gzip.xml
r0f7d4cb rd7a9421 56 56 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 57 57 58 <para>Move the executable to its final expected location:</para>59 60 <screen><userinput remap="install">mv -v $LFS/usr/bin/gzip $LFS/bin</userinput></screen>61 62 58 </sect2> 63 59 -
chapter06/ncurses.xml
r0f7d4cb rd7a9421 149 149 </variablelist> 150 150 151 <para>Move the shared libraries to the152 <filename class="directory">/lib</filename> directory, where they are153 expected to reside:</para>154 155 <screen><userinput remap="install">mv -v $LFS/usr/lib/libncursesw.so.6* $LFS/lib</userinput></screen>156 157 <para>Because the libraries have been moved, one symlink points to158 a non-existent file. Recreate it:</para>159 160 <screen><userinput remap="install">ln -sfv ../../lib/$(readlink $LFS/usr/lib/libncursesw.so) $LFS/usr/lib/libncursesw.so</userinput></screen>161 162 163 151 </sect2> 164 152 -
chapter06/sed.xml
r0f7d4cb rd7a9421 47 47 48 48 <screen><userinput remap="configure">./configure --prefix=/usr \ 49 --host=$LFS_TGT \ 50 --bindir=/bin</userinput></screen> 49 --host=$LFS_TGT</userinput></screen> 51 50 52 51 <para>Compile the package:</para> -
chapter06/tar.xml
r0f7d4cb rd7a9421 48 48 <screen><userinput remap="configure">./configure --prefix=/usr \ 49 49 --host=$LFS_TGT \ 50 --build=$(build-aux/config.guess) \ 51 --bindir=/bin</userinput></screen> 50 --build=$(build-aux/config.guess)</userinput></screen> 52 51 53 52 <para>Compile the package:</para> -
chapter06/xz.xml
r0f7d4cb rd7a9421 60 60 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 61 61 62 <para>Make sure that all essential files are in the correct directory:</para>63 64 <screen><userinput remap="install">mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} $LFS/bin65 mv -v $LFS/usr/lib/liblzma.so.* $LFS/lib66 ln -svf ../../lib/$(readlink $LFS/usr/lib/liblzma.so) $LFS/usr/lib/liblzma.so</userinput></screen>67 68 62 </sect2> 69 63
Note:
See TracChangeset
for help on using the changeset viewer.