cvs commit: LFS/BOOK/chapter06 aboutdebug.xml man-exp.xml man-inst.xml

timothy at linuxfromscratch.org timothy at linuxfromscratch.org
Sun Sep 1 17:01:22 PDT 2002


timothy     02/09/01 17:01:22

  Modified:    BOOK     index.xml
               BOOK/chapter01 changelog.xml
               BOOK/chapter05 installasuser.xml
               BOOK/chapter06 aboutdebug.xml man-exp.xml man-inst.xml
  Log:
  Fix man bug, added a CC variable to omit symbols from compilation in static packages.
  
  Revision  Changes    Path
  1.473     +2 -2      LFS/BOOK/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/index.xml,v
  retrieving revision 1.472
  retrieving revision 1.473
  diff -u -r1.472 -r1.473
  --- index.xml	31 Aug 2002 20:28:09 -0000	1.472
  +++ index.xml	2 Sep 2002 00:01:21 -0000	1.473
  @@ -4,8 +4,8 @@
   
   <!ENTITY book SYSTEM "book/book.xml">
   
  -<!ENTITY version "20020831">
  -<!ENTITY releasedate "August 31th, 2002">
  +<!ENTITY version "20020901">
  +<!ENTITY releasedate "September 1st, 2002">
   
   <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
   <!ENTITY http-root "http://ftp.linuxfromscratch.org">
  
  
  
  1.354     +8 -0      LFS/BOOK/chapter01/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter01/changelog.xml,v
  retrieving revision 1.353
  retrieving revision 1.354
  diff -u -r1.353 -r1.354
  --- changelog.xml	30 Aug 2002 23:08:48 -0000	1.353
  +++ changelog.xml	2 Sep 2002 00:01:22 -0000	1.354
  @@ -52,6 +52,14 @@
   </itemizedlist>
   </para></listitem>
   
  +<listitem><para>September 1st, 2002 [timothy]: Chapter 06 - About
  +debugging symbols: Removed info. about stripping /static. Man: Added sed
  +statement to prevent groff from using SGR escape sequences.</para></listitem>
  +
  +<listitem><para>September 1st, 2002 [timothy]: Chapter 05 - Install all
  +software as an unprivileged user: Added $CC='gcc -s' to omit the
  +compilation of symbols in static packages.</para></listitem>
  +
   <listitem><para>August 30th, 2002 [timothy]: Chapter 06 - Makedev:
   Put rm /bin/bash after device creation. Perl: Removed information
   about the old patch.</para></listitem>
  
  
  
  1.12      +10 -4     LFS/BOOK/chapter05/installasuser.xml
  
  Index: installasuser.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/installasuser.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- installasuser.xml	26 May 2002 21:25:09 -0000	1.11
  +++ installasuser.xml	2 Sep 2002 00:01:22 -0000	1.12
  @@ -32,15 +32,16 @@
   
   LFS=/mnt/lfs
   LC_ALL=POSIX
  -export LFS LC_ALL
  +CC='gcc -s'
  +export LFS LC_ALL CC
   EOF
   source ~/.bash_profile</userinput></screen></para>
   
   <para>This profile makes sure the umask is set to 022 so newly created
   files and directories will have the correct permissions. It is advisable
  -to keep this setting throughout your LFS installation. Also, the $LFS
  -and $LC_ALL environment variables are set. $LFS has been explained in
  -previous chapters already. $LC_ALL is a variable that is used for
  +to keep this setting throughout your LFS installation. Also, the $LFS,
  +$LC_ALL, and $CC environment variables are set. $LFS has been explained
  +in previous chapters already. $LC_ALL is a variable that is used for
   internationalization.</para>
   
   <para>When your host distribution uses a glibc version older than 2.2.4,
  @@ -49,6 +50,11 @@
   of chapter 6 and try to return to it. By setting this to "POSIX" ("C"
   is an alias for "POSIX") we ensure that everything will work as expected
   in the chroot environment.</para>
  +
  +<para>$CC is a variable we set in order to prevent debugging symbols from
  +being compiled into our static packages. By omitting these symbols during
  +the linking stage of compilation, we save hard drive space and decrease
  +our the build time.</para>
   
   </sect1>
   
  
  
  
  1.17      +6 -9      LFS/BOOK/chapter06/aboutdebug.xml
  
  Index: aboutdebug.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/aboutdebug.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- aboutdebug.xml	29 May 2002 23:35:00 -0000	1.16
  +++ aboutdebug.xml	2 Sep 2002 00:01:22 -0000	1.17
  @@ -37,17 +37,14 @@
   <para>To remove debugging symbols from a binary (must be an a.out or ELF
   binary) run <userinput>strip --strip-debug filename</userinput>. Wildcards
   can be used to strip debugging symbols from multiple files (use something 
  -like <userinput>strip --strip-debug $LFS/usr/bin/*</userinput>).
  -Most people will probably never use a debugger on software, so by
  -removing those symbols a lot of disk space can be regained.</para>
  +like <userinput>strip --strip-debug $LFS/usr/bin/*</userinput>). Most
  +people will probably never use a debugger on software, so by removing
  +those symbols a lot of disk space can be regained.</para>
   
   <para>For your convenience, chapter 9 includes one simple command to strip
  -all debugging symbols from all programs and libraries on your
  -system. If you are short on diskspace you can start with stripping
  -all the files under <filename class="directory">$LFS/static</filename></para>
  -
  -<para>You might find additional information in the optimization hint which can 
  -be found at <ulink url="&hints-root;optimization.txt"/>.</para>
  +all debugging symbols from the programs and libraries on your system. You
  +might find additional information in the optimization hint which can be
  +found at <ulink url="&hints-root;optimization.txt"/>.</para>
   
   </sect1>
   
  
  
  
  1.9       +4 -0      LFS/BOOK/chapter06/man-exp.xml
  
  Index: man-exp.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/man-exp.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- man-exp.xml	25 May 2002 00:21:35 -0000	1.8
  +++ man-exp.xml	2 Sep 2002 00:01:22 -0000	1.9
  @@ -8,5 +8,9 @@
   ./configure command, we make sure that man doesn't use the /static versions
   of our programs.</para>
   
  +<para><userinput>sed -e '/^NROFF/s/-mandoc/-c -mandoc/'</userinput>:
  +This prevents groff from using SGR (Set Graphics Rendition) escape
  +sequences on our man pages.</para>
  +
   </sect2>
   
  
  
  
  1.26      +4 -1      LFS/BOOK/chapter06/man-inst.xml
  
  Index: man-inst.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/man-inst.xml,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- man-inst.xml	3 Aug 2002 20:17:32 -0000	1.25
  +++ man-inst.xml	2 Sep 2002 00:01:22 -0000	1.26
  @@ -4,8 +4,11 @@
   <para>Run the following commands to install man:</para>
   
   <para><screen><userinput>PATH=$PATH:/usr/bin:/bin \
  -    ./configure -default -confdir=/etc &&
  +    ./configure -default -confdir=/etc &&
   make &&
  +cp src/man.conf{,.backup} &&
  +sed -e '/^NROFF/s/-mandoc/-c -mandoc/' \
  +    src/man.conf.backup > src/man.conf &&
   make install</userinput></screen></para>
   
   <para>You may want to take a look at the man hint 
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message



More information about the lfs-book mailing list