Changeset 2b1174be
- Timestamp:
- 08/29/2001 07:29:31 PM (23 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, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v3_0, v3_1, v3_2, v3_3, v4_0, v4_1, v5_0, v5_1, v5_1_1, 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:
- fa914e5
- Parents:
- 884d51d
- Location:
- chapter06
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/aboutdebug.xml
r884d51d r2b1174be 3 3 4 4 <para>Most programs and libraries by default are compiled with debugging 5 symbols (gcc option -g) Let me explain what these debugging symbols 6 are and why you may not want them.</para> 5 symbols (gcc option -g).</para> 7 6 8 7 <para>A program compiled with debugging symbols means a user can run a program … … 33 32 <para>Sizes vary depending on which compiler was used and which C library 34 33 version was used to link dynamic programs against, but results will be 35 similar if you compare programs with and without debugging symbols. After 36 I was done with this chapter and stripped all debugging symbols from all LFS 37 binaries I regained a little over 102 MB of disk space. Quite the 38 difference.</para> 34 similar if you compare programs with and without debugging symbols.</para> 39 35 40 36 <para>To remove debugging symbols from a binary (must be an a.out or ELF … … 45 41 removing those symbols a lot of disk space can be regained.</para> 46 42 43 <para>For your convenience, chapter 9 includes one simple command to strip 44 all debugging symbols from all programs and libraries on your 45 system.</para> 46 47 47 <para>You might find additional information in the optimization hint which can 48 48 be found at <ulink -
chapter06/bzip2-inst.xml
r884d51d r2b1174be 26 26 mentioning that a patch for Tar can be downloaded which enables the tar 27 27 program to compress and uncompress using bzip2/bunzip2 easily. With a 28 plain tar a user hasto use constructions like bzcat file.tar.bz|tar28 plain tar, you have to use constructions like bzcat file.tar.bz|tar 29 29 xv or tar --use-compress-prog=bunzip2 -xvf file.tar.bz2 to use bzip2 and 30 bunzip2 with tar. This patch gives the -j option so a usercan unpack a30 bunzip2 with tar. This patch provides the -j option so you can unpack a 31 31 Bzip2 archive with tar xvfj file.tar.bz2. Applying this patch will be 32 32 mentioned later on when the Tar package is re-installed.</para> -
chapter06/config-ldso.xml
r884d51d r2b1174be 5 5 libraries, so there normally isn't a need for the 6 6 <filename>/etc/ld.so.conf</filename> file unless the system has extra 7 directories in which a user wants the system to search for paths. The7 directories in which you want the system to search for libraries. The 8 8 <filename class="directory">/usr/local/lib</filename> directory isn't 9 9 searched through for dynamic libraries by default, so we want to add -
chapter06/file-inst.xml
r884d51d r2b1174be 3 3 4 4 <para>Note that the sed used in this installation only works if the line 5 break is placed exactly where it is in the book. Don't try and put it 6 all on one line otherwise it won't work. Install File by running the 7 following commands:</para> 5 break is placed exactly where it below. Don't try and put it 6 all on one line otherwise it won't work.</para> 7 8 <para>Install File by running the following commands:</para> 8 9 9 10 <para><screen><userinput>cp readelf.h readelf.h.backup &&</userinput> -
chapter06/glibc-exp.xml
r884d51d r2b1174be 10 10 cache. If this file doesn't exist, the installation will abort with an error 11 11 that it can't read the file, so we simply create an empty file (the empty file 12 will have Glibc default to using /lib and /usr/lib which is fine 13 right now).</para> 12 will have Glibc default to using /lib and /usr/lib which is fine).</para> 14 13 15 14 <para><userinput>sed 's%\$(PERL)%/usr/bin/perl%' … … 36 35 root with the id 0. </para> 37 36 38 <para><userinput>mv tmp~ login/Makefile:</userinput> Asabove, we are using a temporary file (<filename>tmp~</filename>) to store the 37 <para><userinput>mv tmp~ login/Makefile:</userinput> As above, we are using 38 a temporary file (<filename>tmp~</filename>) to store the 39 39 edited Makefile and then copying it back over the original.</para> 40 40 -
chapter06/glibc-inst.xml
r884d51d r2b1174be 39 39 40 40 <blockquote><screen>configure: warning: 41 *** An auxiliary program is missing or too old;41 *** These auxiliary programs are missing or too old: msgfmt 42 42 *** some features will be disabled. 43 43 *** Check the INSTALL file for required versions.</screen></blockquote> 44 44 45 <para> This warning refers to the missing msgfmt program from the 46 gettext package, but it can safely be ignored in our case. The glibc 47 installation will not be affected.</para> 45 <para>The missing msgfmt (from the gettext package which we will install 46 later in this chapter) is not fatal. The files msgfmt would create are 47 already pre-built, so you won't be missing out on anything. You would 48 only need it if you make changes to the Glibc manual files. Since we 49 don't do this by default, we can safely ignore it.</para> 48 50 49 51 </sect2> -
chapter06/ncurses-exp.xml
r884d51d r2b1174be 19 19 <para><userinput>ln -sf libncurses.a libcurses.a:</userinput> Some 20 20 programs try to link using -lcurses instead of -lncurses. This symlink 21 ensures that they will install correctly.</para>21 ensures that such programs will link without errors.</para> 22 22 23 23 <para><userinput>ln -sf ../../lib/libncurses.so etc:</userinput> These -
chapter06/netkitbase-inst.xml
r884d51d r2b1174be 12 12 <para>There are other files in the <filename 13 13 class="directory">etc.sample</filename> directory which might be of 14 interest to the user.</para>14 interest to you.</para> 15 15 16 16 </sect2> -
chapter06/nettools-inst.xml
r884d51d r2b1174be 7 7 <userinput>make install</userinput></screen></para> 8 8 9 <para>Net-tools <userinput>hostname</userinput> replaces that which was 10 originally installed by sh-utils. Sometimes the sh-utils version gets 11 left behind as /bin/hostname.old so you may wish to remove it by running 9 <para>The <userinput>hostname</userinput> from this package replaces the 10 version that was originally installed by the sh-utils package. Sometimes 11 the sh-utils version gets left behind as /bin/hostname.old so you may 12 wish to remove it by running 12 13 <userinput>rm /bin/hostname.old</userinput></para> 13 14 -
chapter06/procps-exp.xml
r884d51d r2b1174be 6 6 the XConsole installation is disabled. Otherwise "Make install" tries to 7 7 copy the file XConsole to /usr/X11R6/lib/app-defaults. And that directory 8 does not exist, because X is not installed yet.</para>8 does not exist, because X is not installed.</para> 9 9 10 10 </sect2> -
chapter06/removeoldnss.xml
r884d51d r2b1174be 3 3 4 4 <para>If you have copied the NSS Library files from the normal Linux system 5 to the LFS system (because the normal system runs glibc-2.0) it's time to remove5 to the LFS system (because the normal system runs Glibc-2.0) it's time to remove 6 6 them now by running:</para> 7 7 -
chapter06/shadowpwd-exp.xml
r884d51d r2b1174be 4 4 <para><userinput>sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/' src/useradd.c 5 5 > useradd.c.temp &&</userinput>: This sed is used to fix a 6 compilation bug which occurs due to a variable (nflg) ,being used but not6 compilation bug which occurs due to a variable (nflg) being used but not 7 7 defined.</para> 8 8
Note:
See TracChangeset
for help on using the changeset viewer.