Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/strippingagain.xml

    rde28837 r11d5dee  
    2525
    2626  <para>The debugging symbols for selected libraries are placed
    27   in separate files.  These debugging information is needed if running
     27  in separate files.  This debugging information is needed if running
    2828  regression tests that use <ulink
    2929  url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink
     
    3131  </para>
    3232
    33   <para>And, <command>strip</command> will overwrite the binary or library
    34   file.  This may crash the processes using code or data from the file.  If
    35   the process running <command>strip</command> itself is affected, the
    36   binary or library being stripped may be destroyed.  This may make the
    37   system completely unusable.  To avoid it, we'll copy some libraries and
    38   binaries into <filename class="directory">/tmp</filename>, strip them
     33  <para>Note that <command>strip</command> will overwrite the binary or library
     34  file it is processing.  This may crash the processes using code or data from
     35  the file.  If the process running <command>strip</command> itself is
     36  affected, the binary or library being stripped may be destroyed.  This may
     37  make the system completely unusable.  To avoid it, we'll copy some libraries
     38  and binaries into <filename class="directory">/tmp</filename>, strip them
    3939  there, and install them back with the <command>install</command> command.
    4040  Read the related entry in <xref linkend="pkgmgmt-upgrade-issues"/> for the
     
    6363               libhistory.so.&readline-version; libncursesw.so.&ncurses-version;
    6464               libm-&glibc-version;.so libreadline.so.&readline-version;
    65                libz.so.&zlib-version;"
     65               libz.so.&zlib-version;
     66               $(cd /usr/lib; find libnss*.so* -type f)"
    6667
    6768for BIN in $online_usrbin; do
     
    8485for i in $(find /usr/lib -type f -name \*.so* ! -name \*dbg); do
    8586    case "$online_usrlib $save_usrlib" in
    86         *$(basename $i)* ) ;;
    87         * ) strip --strip-unneeded $i ;;
     87        *$(basename $i)* )
     88            ;;
     89        * ) strip --strip-unneeded $i
     90            ;;
    8891    esac
    8992done
     
    9194for i in $(find /usr/bin -type f); do
    9295    case "$online_usrbin" in
    93         *$(basename $i)* ) ;;
    94         * ) strip --strip-all $i ;;
     96        *$(basename $i)* )
     97            ;;
     98        * ) strip --strip-all $i
     99            ;;
    95100    esac
    96101done
Note: See TracChangeset for help on using the changeset viewer.