On 16.3.2015 0:29, [email protected] wrote:
Author: bdubbs
Date: Sun Mar 15 16:29:31 2015
New Revision: 10880

Log:
Remove non-essential static libraries from the installation. Added a new
section in Chapter 6 Introduction, supressed many static libraries in different
packages, and removed the remaining in the Cleaning Up section.



Modified: trunk/BOOK/chapter06/bison.xml
==============================================================================
--- trunk/BOOK/chapter06/bison.xml      Wed Mar 11 10:36:39 2015        (r10879)
+++ trunk/BOOK/chapter06/bison.xml      Sun Mar 15 16:29:31 2015        (r10880)
@@ -40,17 +40,14 @@
    <sect2 role="installation">
      <title>Installation of Bison</title>

+    <para>Inhibit static library installation:</para>
+
+<screen><userinput remap="pre">sed -i '/lib_LIBRARIES =/d' 
Makefile.in</userinput></screen>
+
      <para>Prepare Bison for compilation:</para>

  <screen><userinput remap="configure">./configure --prefix=/usr 
--docdir=/usr/share/doc/bison-&bison-version;</userinput></screen>
-<!--
-    <para>The configure system causes Bison to be built without support for
-    internationalization of error messages if a <command>bison</command>
-    program is not already in $PATH. The following addition will correct
-    this:</para>

-<screen><userinput remap="configure">echo '#define YYENABLE_NLS 1' &gt;&gt; 
lib/config.h</userinput></screen>
--->
      <para>Compile the package:</para>

  <screen><userinput remap="make">make</userinput></screen>


Bison only installs static library. It's unwise to delete it as we don't know what may use it.


Modified: trunk/BOOK/chapter06/revisedchroot.xml
==============================================================================
--- trunk/BOOK/chapter06/revisedchroot.xml      Wed Mar 11 10:36:39 2015        
(r10879)
+++ trunk/BOOK/chapter06/revisedchroot.xml      Sun Mar 15 16:29:31 2015        
(r10880)
@@ -35,12 +35,22 @@
      instructions for this (see <ulink url="&blfs-root;"/>).</para>
    </note>

-<screen role="nodump"><userinput>rm -rf /tools</userinput></screen>
-
    <para>If the virtual kernel file systems have been unmounted, either 
manually
    or through a reboot, ensure that the virtual kernel file systems are mounted
    when reentering the chroot. This process was explained in <xref
    linkend="ch-system-bindmount"/> and <xref
    linkend="ch-system-kernfsmount"/>.</para>

+  <para>Finally, thre were several static libraries that were not supressed 
earlier
+  in the chapter in order to satisfy the regression tests in several packages. 
These
+  libraries are from binutils, bzip2, e2fsprogs, flex, libtool, and zlib.  If 
desired,
+  remove them now:</para>
+
+<screen><userinput>rm /usr/lib/lib{bfd,opcodes}.a
+rm /usr/lib/libbz2.a
+rm /usr/lib/lib{com_err,e2p,ext2fs,ss}.a
+rm /usr/lib/lib{fl,fl_pic}.a

Flex shared library is broken. I suggest keeping the static ones for the time being until the next flex release. The way automake tests fail when using shared lib is the same one other packages may fail (I've seen at least two more, not remember which ones currently).

+rm /usr/lib/libltdl.a
+rm /usr/lib/libz.a</userinput></screen>
+
  </sect1>

Modified: trunk/BOOK/chapter06/util-linux.xml
==============================================================================
--- trunk/BOOK/chapter06/util-linux.xml Wed Mar 11 10:36:39 2015        (r10879)
+++ trunk/BOOK/chapter06/util-linux.xml Sun Mar 15 16:29:31 2015        (r10880)
@@ -71,6 +71,7 @@
              --disable-setpriv    \
              --disable-runuser    \
              --disable-pylibmount \
+            --disable-static     \
              --without-python     \
              --without-systemd    \
              --without-systemdsystemunitdir</userinput></screen>


Bad alignment?
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to