aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08/strippingagain.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter08/strippingagain.xml')
-rw-r--r--chapter08/strippingagain.xml26
1 files changed, 15 insertions, 11 deletions
diff --git a/chapter08/strippingagain.xml b/chapter08/strippingagain.xml
index 196698f2a..ed690eb1a 100644
--- a/chapter08/strippingagain.xml
+++ b/chapter08/strippingagain.xml
@@ -24,18 +24,18 @@
backup of the LFS system in its current state.</para>
<para>The debugging symbols for selected libraries are placed
- in separate files. These debugging information is needed if running
+ in separate files. This debugging information is needed if running
regression tests that use <ulink
url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink
url='&blfs-book;/general/gdb.html'>gdb</ulink> later in BLFS.
</para>
- <para>And, <command>strip</command> will overwrite the binary or library
- file. This may crash the processes using code or data from the file. If
- the process running <command>strip</command> itself is affected, the
- binary or library being stripped may be destroyed. This may make the
- system completely unusable. To avoid it, we'll copy some libraries and
- binaries into <filename class="directory">/tmp</filename>, strip them
+ <para>Note that <command>strip</command> will overwrite the binary or library
+ file it is processing. This may crash the processes using code or data from
+ the file. If the process running <command>strip</command> itself is
+ affected, the binary or library being stripped may be destroyed. This may
+ make the system completely unusable. To avoid it, we'll copy some libraries
+ and binaries into <filename class="directory">/tmp</filename>, strip them
there, and install them back with the <command>install</command> command.
Read the related entry in <xref linkend="pkgmgmt-upgrade-issues"/> for the
rationale to use the <command>install</command> command here.</para>
@@ -84,15 +84,19 @@ find /usr/lib -type f -name \*.a \
for i in $(find /usr/lib -type f -name \*.so* ! -name \*dbg); do
case "$online_usrlib $save_usrlib" in
- *$(basename $i)* ) ;;
- * ) strip --strip-unneeded $i ;;
+ *$(basename $i)* )
+ ;;
+ * ) strip --strip-unneeded $i
+ ;;
esac
done
for i in $(find /usr/bin -type f); do
case "$online_usrbin" in
- *$(basename $i)* ) ;;
- * ) strip --strip-all $i ;;
+ *$(basename $i)* )
+ ;;
+ * ) strip --strip-all $i
+ ;;
esac
done