Changeset 73b2841
- Timestamp:
- 03/15/2015 11:29:31 PM (9 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, 7.8, 7.9, 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, 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:
- 8f7d07eb
- Parents:
- ecd016b
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
recd016b r73b2841 36 36 </listitem> 37 37 --> 38 39 <listitem> 40 <para>2015-03-15</para> 41 <itemizedlist> 42 <listitem> 43 <para>[bdubbs] - Remove non-essential static libraries 44 from the installation. Added a new section in Chapter 6 45 Introduction, suppressed many static libraries in different 46 packages, and removed the remaining in the Cleaning Up section. 47 Fixes 48 <ulink url="&lfs-ticket-root;3751">#3751</ulink>.</para> 49 </listitem> 50 </itemizedlist> 51 </listitem> 38 52 39 53 <listitem> -
chapter06/attr.xml
recd016b r73b2841 46 46 47 47 <screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in</userinput></screen> 48 <!--49 <para>Prevent installation of manual pages that were already installed by50 Man-Pages package:</para>51 48 52 <screen><userinput remap="pre">sed -i -e "/SUBDIRS/s|man2||" man/Makefile</userinput></screen>53 -->54 49 <para>Prepare Attr for compilation:</para> 55 50 56 <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen> 51 <screen><userinput remap="configure">./configure --prefix=/usr \ 52 --bindir=/bin \ 53 --disable-static</userinput></screen> 57 54 58 55 <para>Compile the package:</para> -
chapter06/bison.xml
recd016b r73b2841 41 41 <title>Installation of Bison</title> 42 42 43 <para>Inhibit static library installation:</para> 44 45 <screen><userinput remap="pre">sed -i '/lib_LIBRARIES =/d' Makefile.in</userinput></screen> 46 43 47 <para>Prepare Bison for compilation:</para> 44 48 45 49 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/bison-&bison-version;</userinput></screen> 46 <!--47 <para>The configure system causes Bison to be built without support for48 internationalization of error messages if a <command>bison</command>49 program is not already in $PATH. The following addition will correct50 this:</para>51 50 52 <screen><userinput remap="configure">echo '#define YYENABLE_NLS 1' >> lib/config.h</userinput></screen>53 -->54 51 <para>Compile the package:</para> 55 52 -
chapter06/eudev.xml
recd016b r73b2841 63 63 --disable-introspection \ 64 64 --disable-gudev \ 65 --disable-static \ 65 66 --disable-gtk-doc-html</userinput></screen> 66 67 -
chapter06/expat.xml
recd016b r73b2841 44 44 <para>Prepare Expat for compilation:</para> 45 45 46 <screen><userinput remap="configure">./configure --prefix=/usr </userinput></screen>46 <screen><userinput remap="configure">./configure --prefix=/usr --disable-static</userinput></screen> 47 47 48 48 <para>Compile the package:</para> -
chapter06/flex.xml
recd016b r73b2841 48 48 <para>Prepare Flex for compilation:</para> 49 49 50 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen> 50 <screen><userinput remap="configure">./configure --prefix=/usr \ 51 --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen> 51 52 52 53 <para>Compile the package:</para> -
chapter06/gdbm.xml
recd016b r73b2841 47 47 <para>Prepare GDBM for compilation:</para> 48 48 49 <screen><userinput remap="configure">./configure --prefix=/usr --enable-libgdbm-compat</userinput></screen> 49 <screen><userinput remap="configure">./configure --prefix=/usr \ 50 --disable-static \ 51 --enable-libgdbm-compat</userinput></screen> 50 52 51 53 <variablelist> -
chapter06/gettext.xml
recd016b r73b2841 46 46 <para>Prepare Gettext for compilation:</para> 47 47 48 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/gettext-&gettext-version;</userinput></screen> 48 <screen><userinput remap="configure">./configure --prefix=/usr \ 49 --disable-static \ 50 --docdir=/usr/share/doc/gettext-&gettext-version;</userinput></screen> 49 51 50 52 <para>Compile the package:</para> -
chapter06/gmp.xml
recd016b r73b2841 53 53 <para>Prepare GMP for compilation:</para> 54 54 55 <screen><userinput remap="configure">./configure --prefix=/usr \ 56 --enable-cxx \ 55 <screen><userinput remap="configure">./configure --prefix=/usr \ 56 --enable-cxx \ 57 --disable-static \ 57 58 --docdir=/usr/share/doc/gmp-&gmp-version;</userinput></screen> 58 59 -
chapter06/introduction.xml
recd016b r73b2841 56 56 test suite data for all applicable packages in Chapter 6.</para></note> 57 57 58 <sect2> 59 <title>About libraries</title> 60 61 <para>In general, the LFS editors discourage building and installing static 62 libraries. The original purpose for most static libraries has been made 63 obsolete in a modern Linux system. In addition linking a static library 64 into a program can be detrimental. If an update to the library is needed 65 to remove a security problem, all programs that use the static library will 66 need to be relinked to the new library. Since the use of static libraries 67 is not always obvious, deciding which programs (and the procedures needed to 68 do the linking) may not even be known.</para> 69 70 <para>In the prcedures in Chapter 6, we remove or disable installation of 71 most static libraries. In a few cases, especially glibc and gcc, the use 72 of static libraries remains essential to the general package building 73 process. Usually this is done by passing a 74 <option>--disable-static</option> option to <command>configure</command>. 75 In other cases, alternate means are needed.</para> 76 77 <para>For a more complete discussion of libraries, see the discussion 78 <ulink url="&blfs-root;/view/&short-version;/introduction/libraries.html"> 79 Libraries: Static or shared?</ulink> in the BLFS book.</para> 80 81 </sect2> 82 58 83 </sect1> -
chapter06/libcap.xml
recd016b r73b2841 43 43 <sect2 role="installation"> 44 44 <title>Installation of Libcap</title> 45 46 <para>Prevent a static library from being installed:</para> 47 48 <screen><userinput remap="pre">sed -i '/install.*STALIBNAME/d' libcap/Makefile</userinput></screen> 45 49 46 50 <para>Compile the package:</para> -
chapter06/mpc.xml
recd016b r73b2841 45 45 <para>Prepare MPC for compilation:</para> 46 46 47 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/mpc-&mpc-version;</userinput></screen> 47 <screen><userinput remap="configure">./configure --prefix=/usr \ 48 --disable-static \ 49 --docdir=/usr/share/doc/mpc-&mpc-version;</userinput></screen> 48 50 49 51 <para>Compile the package and generate the HTML documentation:</para> -
chapter06/mpfr.xml
recd016b r73b2841 50 50 51 51 <screen><userinput remap="configure">./configure --prefix=/usr \ 52 --disable-static \ 52 53 --enable-thread-safe \ 53 54 --docdir=/usr/share/doc/mpfr-&mpfr-version;</userinput></screen> -
chapter06/ncurses.xml
recd016b r73b2841 42 42 <title>Installation of Ncurses</title> 43 43 44 <!-- FIXME: Uncomment if using a dated ncurses release instead of a numbered 45 one. 46 47 <para>Since the release of Ncurses-&ncurses-version;, some bugs have been fixed 48 and features added. The most important news are ....... 49 To get these fixes and features, apply the rollup patch:</para> 50 51 <screen><userinput>bzcat ../&ncurses-rollup-patch; | patch -Np1</userinput></screen> 52 --> 44 <para>Don't install a static library that is not handled by configure:</para> 45 46 <screen><userinput remap="pre">sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in</userinput></screen> 53 47 54 48 <para>Prepare Ncurses for compilation:</para> … … 58 52 --with-shared \ 59 53 --without-debug \ 54 --without-normal \ 60 55 --enable-pc-files \ 61 56 --enable-widec</userinput></screen> … … 86 81 </varlistentry> 87 82 83 <varlistentry> 84 <term><parameter>--without-normal</parameter></term> 85 <listitem> 86 <para>This switch disables building and installing most static libraries. 87 </para> 88 </listitem> 89 </varlistentry> 90 88 91 </variablelist> 89 92 … … 120 123 rm -vf /usr/lib/lib${lib}.so 121 124 echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so 122 ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a123 125 ln -sfv ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc 124 done 125 126 ln -sfv libncurses++w.a /usr/lib/libncurses++.a</userinput></screen> 126 done</userinput></screen> 127 127 128 128 <para>Finally, make sure that old applications that look for … … 132 132 <screen><userinput remap="install">rm -vf /usr/lib/libcursesw.so 133 133 echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so 134 ln -sfv libncurses.so /usr/lib/libcurses.so 135 ln -sfv libncursesw.a /usr/lib/libcursesw.a 136 ln -sfv libncurses.a /usr/lib/libcurses.a</userinput></screen> 134 ln -sfv libncurses.so /usr/lib/libcurses.so</userinput></screen> 137 135 138 136 <para>If desired, install the Ncurses documentation:</para> … … 169 167 170 168 <seglistitem> 171 <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic), 172 ncursesw5-config, reset (link to tset), tabs, tic, toe, tput, and tset</seg> 173 <seg>libcursesw.{a,so} (symlink and linker script to libncursesw.{a,so}), 174 libformw.{a,so}, libmenuw.{a,so}, libncurses++w.a, libncursesw.{a,so}, 175 libpanelw.{a,so}, and their non-wide-character counterparts without "w" 176 in the library names.</seg> 177 <seg>/usr/share/tabset, /usr/share/terminfo, and 178 /usr/share/doc/ncurses-&ncurses-version;</seg> 169 <seg> 170 captoinfo (link to tic), 171 clear, 172 infocmp, 173 infotocap (link to tic), 174 ncursesw5-config, 175 reset (link to tset), 176 tabs, 177 tic, 178 toe, 179 tput, and 180 tset 181 </seg> 182 <seg> 183 libcursesw.so (symlink and linker script to libncursesw.so), 184 libformw.so, 185 libmenuw.so, 186 libncursesw.so, 187 libpanelw.so, and their non-wide-character counterparts without "w" 188 in the library names.</seg> 189 <seg> 190 /usr/share/tabset, 191 /usr/share/terminfo, and 192 /usr/share/doc/ncurses-&ncurses-version; 193 </seg> 179 194 </seglistitem> 180 195 </segmentedlist> -
chapter06/readline.xml
recd016b r73b2841 57 57 <para>Prepare Readline for compilation:</para> 58 58 59 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen> 59 <screen><userinput remap="configure">./configure --prefix=/usr \ 60 --disable-static \ 61 --docdir=/usr/share/doc/readline-&readline-version;</userinput></screen> 60 62 61 63 <para>Compile the package:</para> -
chapter06/revisedchroot.xml
recd016b r73b2841 36 36 </note> 37 37 38 <screen role="nodump"><userinput>rm -rf /tools</userinput></screen>39 40 38 <para>If the virtual kernel file systems have been unmounted, either manually 41 39 or through a reboot, ensure that the virtual kernel file systems are mounted … … 44 42 linkend="ch-system-kernfsmount"/>.</para> 45 43 44 <para>Finally, thre were several static libraries that were not supressed earlier 45 in the chapter in order to satisfy the regression tests in several packages. These 46 libraries are from binutils, bzip2, e2fsprogs, flex, libtool, and zlib. If desired, 47 remove them now:</para> 48 49 <screen><userinput>rm /usr/lib/lib{bfd,opcodes}.a 50 rm /usr/lib/libbz2.a 51 rm /usr/lib/lib{com_err,e2p,ext2fs,ss}.a 52 rm /usr/lib/lib{fl,fl_pic}.a 53 rm /usr/lib/libltdl.a 54 rm /usr/lib/libz.a</userinput></screen> 55 46 56 </sect1> -
chapter06/util-linux.xml
recd016b r73b2841 72 72 --disable-runuser \ 73 73 --disable-pylibmount \ 74 --disable-static \ 74 75 --without-python \ 75 76 --without-systemd \ -
chapter06/xz.xml
recd016b r73b2841 47 47 <para>Prepare Xz for compilation with:</para> 48 48 49 <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen> 49 <screen><userinput remap="configure"> 50 ./configure --prefix=/usr \ 51 --disable-static \ 52 --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen> 50 53 51 54 <para>Compile the package:</para> … … 76 79 77 80 <seglistitem> 78 <seg>lzcat (link to xz), lzcmp (link to xzdiff), lzdiff (link to 79 xzdiff), lzegrep (link to xzgrep), lzfgrep (link to xzgrep), 80 lzgrep (link to xzgrep), lzless (link to xzless), lzma (link to xz), 81 lzmadec, lzmainfo, lzmore (link to xzmore), 82 unlzma (link to xz), unxz, (link to xz), xz, xzcat (link to xz), 83 xzcmp (link to xzdiff), xzdec, xzdiff, xzegrep (link to xzgrep), 84 xzfgrep (link to xzgrep), xzgrep, xzless, and xzmore</seg> 85 <seg>liblzma.{a,so}</seg> 86 <seg>/usr/include/lzma and /usr/share/doc/xz-&xz-version;</seg> 81 <seg> 82 lzcat (link to xz), 83 lzcmp (link to xzdiff), 84 lzdiff (link to xzdiff), 85 lzegrep (link to xzgrep), 86 lzfgrep (link to xzgrep), 87 lzgrep (link to xzgrep), 88 lzless (link to xzless), 89 lzma (link to xz), 90 lzmadec, 91 lzmainfo, 92 lzmore (link to xzmore), 93 unlzma (link to xz), 94 unxz (link to xz), 95 xz, 96 xzcat (link to xz), 97 xzcmp (link to xzdiff), 98 xzdec, 99 xzdiff, 100 xzegrep (link to xzgrep), 101 xzfgrep (link to xzgrep), 102 xzgrep, 103 xzless, and 104 xzmore</seg> 105 <seg> 106 liblzma.so 107 </seg> 108 <seg> 109 /usr/include/lzma and 110 /usr/share/doc/xz-&xz-version; 111 </seg> 87 112 </seglistitem> 88 113 </segmentedlist> -
general.ent
recd016b r73b2841 1 <!ENTITY version "SVN-2015031 1">1 <!ENTITY version "SVN-20150315"> 2 2 <!ENTITY short-version "svn"> <!-- Used below in &blfs-book;. Change to x.y for release 3 3 but not -rc releases --> 4 <!ENTITY releasedate "March 1 1, 2015">4 <!ENTITY releasedate "March 15, 2015"> 5 5 <!ENTITY copyrightdate "1999-2015"><!-- jhalfs needs a literal dash, not – --> 6 6 <!ENTITY milestone "7.8"> -
prologue/bookinfo.xml
recd016b r73b2841 17 17 </author> 18 18 <author> 19 <firstname> Edited by Matthew Burgess</firstname>20 <surname> and BruceDubbs</surname>19 <firstname>Managing Editor is Bruce</firstname> 20 <surname>Dubbs</surname> 21 21 </author> 22 22 </authorgroup>
Note:
See TracChangeset
for help on using the changeset viewer.