Changeset 8461
- Timestamp:
- 01/26/08 16:35:18 (10 months ago)
- Files:
-
- branches/jh/BOOK/chapter01/changelog.xml (modified) (1 diff)
- branches/jh/BOOK/chapter01/whatsnew.xml (modified) (9 diffs)
- branches/jh/BOOK/chapter03/packages.xml (modified) (1 diff)
- branches/jh/BOOK/chapter03/patches.xml (modified) (4 diffs)
- branches/jh/BOOK/chapter05/adjusting.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/binutils-pass1.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/binutils-pass2.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/chapter05.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter05/e2fsprogs.xml (copied) (copied from trunk/BOOK/chapter05/e2fsprogs.xml)
- branches/jh/BOOK/chapter05/gawk.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/util-linux-ng.xml (copied) (copied from trunk/BOOK/chapter05/util-linux-ng.xml)
- branches/jh/BOOK/chapter05/util-linux.xml (modified) (4 diffs)
- branches/jh/BOOK/chapter06/binutils.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/chapter06.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/createfiles.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/gawk.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/iproute2.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter06/linux-headers.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/man-db.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/pkgmgt.xml (modified) (4 diffs)
- branches/jh/BOOK/chapter06/tar.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/texinfo.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter06/udev.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/util-linux-ng.xml (copied) (copied from trunk/BOOK/chapter06/util-linux-ng.xml) (2 diffs)
- branches/jh/BOOK/chapter06/util-linux.xml (modified) (67 diffs)
- branches/jh/BOOK/chapter07/console.xml (modified) (1 diff)
- branches/jh/BOOK/chapter07/symlinks.xml (modified) (2 diffs)
- branches/jh/BOOK/general.ent (modified) (1 diff)
- branches/jh/BOOK/packages.ent (modified) (16 diffs)
- branches/jh/BOOK/patches.ent (modified) (5 diffs)
- branches/jh/BOOK/prologue/hostreqs.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/jh/BOOK/chapter01/changelog.xml
r8405 r8461 37 37 --> 38 38 39 <listitem> 40 <para>2008-01-22</para> 41 <itemizedlist> 42 <listitem> 43 <para>[matthew] - Replaced Util-Linux-2.12r, with 44 Util-Linux-NG-2.13.1. Fixes 45 <ulink url="&lfs-ticket-root;2077">#2077</ulink>.</para> 46 </listitem> 47 <listitem> 48 <para>[matthew] - Upgraded to Tcl-8.4.17. Fixes 49 <ulink url="&lfs-ticket-root;2131">#2131</ulink>.</para> 50 </listitem> 51 <listitem> 52 <para>[matthew] - Upgraded to Man-Pages-2.76. Fixes 53 <ulink url="&lfs-ticket-root;2129">#2129</ulink>.</para> 54 </listitem> 55 <listitem> 56 <para>[matthew] - Upgraded to Linux-2.6.23.14. Fixes 57 <ulink url="&lfs-ticket-root;2128">#2128</ulink>.</para> 58 </listitem> 59 </itemizedlist> 60 </listitem> 61 62 <listitem> 63 <para>2008-01-19</para> 64 <itemizedlist> 65 <listitem> 66 <para>[matthew] - Add Perl to the list of host requirements, as it is 67 required by Glibc. Thanks to Ben Collver for the report. Fixes 68 <ulink url="&lfs-ticket-root;2112">#2112</ulink>.</para> 69 </listitem> 70 <listitem> 71 <para>[matthew] - Mention <command>strace</command> as another means 72 of logging installed files, and correct the URL of the Linux Standard 73 Base specifications. Fixes 74 <ulink url="&lfs-ticket-root;2073">#2073</ulink> and 75 <ulink url="&lfs-ticket-root;2130">#2130</ulink>.</para> 76 </listitem> 77 </itemizedlist> 78 </listitem> 79 80 <listitem> 81 <para>2008-01-04</para> 82 <itemizedlist> 83 <listitem> 84 <para>[matthew] - Upgraded to latest upstream fixes for Vim.</para> 85 </listitem> 86 <listitem> 87 <para>[matthew] - Upgraded to Less-418. Fixes 88 <ulink url="&lfs-ticket-root;2124">#2124</ulink>.</para> 89 </listitem> 90 <listitem> 91 <para>[matthew] - Upgraded to File-4.23. Fixes 92 <ulink url="&lfs-ticket-root;2125">#2125</ulink>.</para> 93 </listitem> 94 <listitem> 95 <para>[matthew] - Upgraded to E2fsprogs-1.40.4. Fixes 96 <ulink url="&lfs-ticket-root;2123">#2123</ulink>.</para> 97 </listitem> 98 </itemizedlist> 99 </listitem> 100 101 <listitem> 102 <para>2007-12-23</para> 103 <itemizedlist> 104 <listitem> 105 <para>[matthew] - Upgraded to latest upstream fixes for Readline. 106 Fixes <ulink url="&lfs-ticket-root;2122">#2122</ulink>.</para> 107 </listitem> 108 <listitem> 109 <para>[matthew] - Upgraded to Man-Pages-2.74. Fixes 110 <ulink url="&lfs-ticket-root;2119">#2119</ulink>.</para> 111 </listitem> 112 <listitem> 113 <para>[matthew] - Upgraded to Linux-2.6.23.12. Fixes 114 <ulink url="&lfs-ticket-root;2118">#2118</ulink>.</para> 115 </listitem> 116 <listitem> 117 <para>[matthew] - Upgraded to latest upstream fixes for Bash. Fixes 118 <ulink url="&lfs-ticket-root;2121">#2121</ulink>.</para> 119 </listitem> 120 </itemizedlist> 121 </listitem> 122 123 <listitem> 124 <para>2007-12-08</para> 125 <itemizedlist> 126 <listitem> 127 <para>[matthew] - Upgraded to latest upstream fixes for Vim. Fixes 128 <ulink url="&lfs-ticket-root;2108">#2108</ulink>.</para> 129 </listitem> 130 <listitem> 131 <para>[matthew] - Upgraded to Texinfo-4.11. Fixes 132 <ulink url="&lfs-ticket-root;2074">#2074</ulink>.</para> 133 </listitem> 134 <listitem> 135 <para>[matthew] - Upgraded to Psmisc-22.6. Fixes 136 <ulink url="&lfs-ticket-root;2104">#2104</ulink>.</para> 137 </listitem> 138 <listitem> 139 <para>[matthew] - Upgraded to Man-Pages-2.70. Fixes 140 <ulink url="&lfs-ticket-root;2110">#2110</ulink>.</para> 141 </listitem> 142 <listitem> 143 <para>[matthew] - Upgraded to Man-DB-2.5.0. Fixes 144 <ulink url="&lfs-ticket-root;2109">#2109</ulink>.</para> 145 </listitem> 146 <listitem> 147 <para>[matthew] - Upgraded to Linux-2.6.23.9. Fixes 148 <ulink url="&lfs-ticket-root;2106">#2106</ulink>.</para> 149 </listitem> 150 <listitem> 151 <para>[matthew] - Upgraded to Less-416. Fixes 152 <ulink url="&lfs-ticket-root;2105">#2105</ulink>.</para> 153 </listitem> 154 <listitem> 155 <para>[matthew] - Upgraded to Gettext-0.17. Fixes 156 <ulink url="&lfs-ticket-root;2103">#2103</ulink>.</para> 157 </listitem> 158 <listitem> 159 <para>[matthew] - Removed the modifications to Gawk's config.h as 160 Gawk-3.1.6 fixes the bug that they were working around. Fixes 161 <ulink url="&lfs-ticket-root;2107">#2107</ulink>. Thanks to Erik-Jan 162 for the report.</para> 163 </listitem> 164 <listitem> 165 <para>[matthew] - Removed the modifications to Gawk's config.h as 166 Gawk-3.1.6 fixes the bug that they were working around. Fixes 167 <ulink url="&lfs-ticket-root;2107">#2107</ulink>. Thanks to Erik-Jan 168 for the report.</para> 169 </listitem> 170 <listitem> 171 <para>[matthew] - Upgraded to E2fsprogs-1.40.3. Fixes 172 <ulink url="&lfs-ticket-root;2116">#2116</ulink>.</para> 173 </listitem> 174 </itemizedlist> 175 </listitem> 176 177 <listitem> 178 <para>2007-11-25</para> 179 <itemizedlist> 180 <listitem> 181 <para>[bdubbs] - Fixed test for Debian binutils.</para> 182 </listitem> 183 </itemizedlist> 184 </listitem> 185 186 <listitem> 187 <para>2007-10-29</para> 188 <itemizedlist> 189 <listitem> 190 <para>[bdubbs] - Removed obsolete note from Creating Symlinks section 191 about continuation lines in udev rules. Changed dailout group 192 to uucp for udev rule compatability.</para> 193 </listitem> 194 <listitem> 195 <para>[matthew] - Upgrade to the latest upstream patches for 196 Vim.</para> 197 </listitem> 198 <listitem> 199 <para>[matthew] - Add a patch to fix a segfault in usb_id.</para> 200 </listitem> 201 <listitem> 202 <para>[matthew] - Upgrade to Tcl-8.4.16. Fixes 203 <ulink url="&lfs-ticket-root;2084">#2084</ulink>.</para> 204 </listitem> 205 <listitem> 206 <para>[matthew] - Upgrade to Tar-1.19. Fixes 207 <ulink url="&lfs-ticket-root;2090">#2090</ulink>.</para> 208 </listitem> 209 <listitem> 210 <para>[matthew] - Upgrade to Man-Pages-2.67. Fixes 211 <ulink url="&lfs-ticket-root;2078">#2078</ulink>.</para> 212 </listitem> 213 <listitem> 214 <para>[matthew] - Upgrade to Linux-2.6.23.1. Fixes 215 <ulink url="&lfs-ticket-root;2088">#2088</ulink>.</para> 216 </listitem> 217 <listitem> 218 <para>[matthew] - Upgrade to Less-409. Fixes 219 <ulink url="&lfs-ticket-root;2087">#2087</ulink>.</para> 220 </listitem> 221 <listitem> 222 <para>[matthew] - Upgrade to IPRoute2-2.6.23. Fixes 223 <ulink url="&lfs-ticket-root;2091">#2091</ulink>.</para> 224 </listitem> 225 <listitem> 226 <para>[matthew] - Upgrade to Glibc-2.7. Fixes 227 <ulink url="&lfs-ticket-root;2095">#2095</ulink>.</para> 228 </listitem> 229 <listitem> 230 <para>[matthew] - Upgrade to GCC-4.2.2. Fixes 231 <ulink url="&lfs-ticket-root;2089">#2089</ulink>.</para> 232 </listitem> 233 <listitem> 234 <para>[matthew] - Upgrade to Gawk-3.1.6. Fixes 235 <ulink url="&lfs-ticket-root;2098">#2098</ulink>.</para> 236 </listitem> 237 <listitem> 238 <para>[matthew] - Upgrade to DB-4.6.21. Fixes 239 <ulink url="&lfs-ticket-root;2086">#2086</ulink>.</para> 240 </listitem> 241 </itemizedlist> 242 </listitem> 243 39 244 <listitem> 40 245 <para>2007-10-06</para> branches/jh/BOOK/chapter01/whatsnew.xml
r8388 r8461 60 60 <para>Diffutils &diffutils-version;</para> 61 61 </listitem>--> 62 < !--<listitem>62 <listitem> 63 63 <para>E2fsprogs &e2fsprogs-version;</para> 64 </listitem> -->64 </listitem> 65 65 <!--<listitem> 66 66 <para>Expect &expect-version;</para> 67 67 </listitem>--> 68 < !--<listitem>68 <listitem> 69 69 <para>File &file-version;</para> 70 </listitem> -->70 </listitem> 71 71 <!--<listitem> 72 72 <para>Findutils &findutils-version;</para> … … 75 75 <para>Flex &flex-version;</para> 76 76 </listitem>--> 77 < !--<listitem>77 <listitem> 78 78 <para>Gawk &gawk-version;</para> 79 </listitem> -->79 </listitem> 80 80 <listitem> 81 81 <para>GCC &gcc-version;</para> 82 82 </listitem> 83 < !--<listitem>83 <listitem> 84 84 <para>Gettext &gettext-version;</para> 85 </listitem> -->85 </listitem> 86 86 <listitem> 87 87 <para>Glibc &glibc-version;</para> … … 105 105 <para>Inetutils &inetutils-version;</para> 106 106 </listitem>--> 107 < !--<listitem>107 <listitem> 108 108 <para>IPRoute2 &iproute2-version;</para> 109 </listitem> -->109 </listitem> 110 110 <!--<listitem> 111 111 <para>Kbd &kbd-version;</para> 112 112 </listitem>--> 113 < !--<listitem>113 <listitem> 114 114 <para>Less &less-version;</para> 115 </listitem> -->115 </listitem> 116 116 <listitem> 117 117 <para>LFS-Bootscripts &lfs-bootscripts-version;</para> … … 129 129 <para>Make &make-version;</para> 130 130 </listitem>--> 131 < !--<listitem>131 <listitem> 132 132 <para>Man-DB &man-db-version;</para> 133 </listitem> -->133 </listitem> 134 134 <listitem> 135 135 <para>Man-pages &man-pages-version;</para> … … 153 153 <para>Procps &procps-version;</para> 154 154 </listitem>--> 155 < !--<listitem>155 <listitem> 156 156 <para>Psmisc &psmisc-version;</para> 157 </listitem> -->157 </listitem> 158 158 <!--<listitem> 159 159 <para>Readline &readline-version;</para> … … 171 171 <para>SysVinit &sysvinit-version;</para> 172 172 </listitem>--> 173 < !--<listitem>173 <listitem> 174 174 <para>Tar &tar-version;</para> 175 175 </listitem> 176 176 <listitem> 177 177 <para>TCL &tcl-version;</para> 178 </listitem> -->179 < !--<listitem>178 </listitem> 179 <listitem> 180 180 <para>Texinfo &texinfo-version;</para> 181 </listitem> -->181 </listitem> 182 182 <!--<listitem> 183 183 <para>Udev &udev-version;</para> … … 186 186 <para>&udev-config;</para> 187 187 </listitem> 188 < !--<listitem>189 <para>Util-Linux &util-linux-version;</para>190 </listitem> -->188 <listitem> 189 <para>Util-Linux-NG &util-linux-ng-version;</para> 190 </listitem> 191 191 <!--<listitem> 192 192 <para>Vim &vim-version;</para> … … 218 218 219 219 <listitem> 220 <para>&udev-usbid-patch;</para> 221 </listitem> 222 223 <listitem> 220 224 <para>&vim-fixes-patch;</para> 221 225 </listitem> … … 235 239 236 240 <listitem> 241 <para>gawk-3.1.5-segfault_fix-1.patch</para> 242 </listitem> 243 244 <listitem> 237 245 <para>gcc-4.1.2-specs-1.patch</para> 238 246 </listitem> 239 247 240 248 <listitem> 249 <para>man-db-2.4.4-fixes-1.patch</para> 250 </listitem> 251 252 <listitem> 241 253 <para>readline-5.4-fixes-4.patch</para> 242 254 </listitem> branches/jh/BOOK/chapter03/packages.xml
r8352 r8461 544 544 545 545 <varlistentry> 546 <term>Util-linux (&util-linux-version;) - <token>&util-linux-size;</token>:</term>547 <listitem> 548 <para>Home page: <ulink url="&util-linux- home;"/></para>549 <para>Download: <ulink url="&util-linux- url;"/></para>550 <para>MD5 sum: <literal>&util-linux- md5;</literal></para>546 <term>Util-linux-ng (&util-linux-ng-version;) - <token>&util-linux-ng-size;</token>:</term> 547 <listitem> 548 <para>Home page: <ulink url="&util-linux-ng-home;"/></para> 549 <para>Download: <ulink url="&util-linux-ng-url;"/></para> 550 <para>MD5 sum: <literal>&util-linux-ng-md5;</literal></para> 551 551 </listitem> 552 552 </varlistentry> branches/jh/BOOK/chapter03/patches.xml
r8382 r8461 28 28 29 29 <varlistentry> 30 <term>Binutils Texinfo Version Patch - <token>&binutils-configure-patch-size;</token>:</term> 31 <listitem> 32 <para>Download: <ulink url="&patches-root;&binutils-configure-patch;"/></para> 33 <para>MD5 sum: <literal>&binutils-configure-patch-md5;</literal></para> 34 </listitem> 35 </varlistentry> 36 37 <varlistentry> 30 38 <term>Bzip2 Documentation Patch - <token>&bzip2-docs-patch-size;</token>:</term> 31 39 <listitem> … … 76 84 77 85 <varlistentry> 78 <term>Gawk Segfault Patch - <token>&gawk-segfault-patch-size;</token>:</term>79 <listitem>80 <para>Download: <ulink url="&patches-root;&gawk-segfault-patch;"/></para>81 <para>MD5 sum: <literal>&gawk-segfault-patch-md5;</literal></para>82 </listitem>83 </varlistentry>84 85 <varlistentry>86 86 <term>Grep RedHat Fixes Patch - <token>&grep-fixes-patch-size;</token>:</term> 87 87 <listitem> … … 132 132 133 133 <varlistentry> 134 <term>Man-DB Fix Patch - <token>&man-db-fixes-patch-size;</token>:</term>135 <listitem>136 <para>Download: <ulink url="&patches-root;&man-db-fixes-patch;"/></para>137 <para>MD5 sum: <literal>&man-db-fixes-patch-md5;</literal></para>138 </listitem>139 </varlistentry>140 141 <varlistentry>142 134 <term>Mktemp Tempfile Patch - <token>&mktemp-tempfile-patch-size;</token>:</term> 143 135 <listitem> … … 187 179 </varlistentry> 188 180 189 <varlistentry> 190 <term>Texinfo Multibyte Fixes Patch - <token>&texinfo-multibyte-patch-size;</token>:</term> 191 <listitem> 192 <para>Download: <ulink url="&patches-root;&texinfo-multibyte-patch;"/></para> 193 <para>MD5 sum: <literal>&texinfo-multibyte-patch-md5;</literal></para> 194 </listitem> 195 </varlistentry> 196 197 198 <varlistentry> 199 <term>Texinfo Tempfile Fix Patch - <token>&texinfo-tempfile_fix-patch-size;</token>:</term> 200 <listitem> 201 <para>Download: <ulink url="&patches-root;&texinfo-tempfile_fix-patch;"/></para> 202 <para>MD5 sum: <literal>&texinfo-tempfile_fix-patch-md5;</literal></para> 203 </listitem> 204 </varlistentry> 205 206 <varlistentry> 207 <term>Util-linux Cramfs Patch - <token>&util-linux-cramfs-patch-size;</token>:</term> 208 <listitem> 209 <para>Download: <ulink url="&patches-root;&util-linux-cramfs-patch;"/></para> 210 <para>MD5 sum: <literal>&util-linux-cramfs-patch-md5;</literal></para> 211 </listitem> 212 </varlistentry> 213 214 <varlistentry> 215 <term>Util-linux Lseek Patch - <token>&util-linux-lseek-patch-size;</token>:</term> 216 <listitem> 217 <para>Download: <ulink url="&patches-root;&util-linux-lseek-patch;"/></para> 218 <para>MD5 sum: <literal>&util-linux-lseek-patch-md5;</literal></para> 181 182 <varlistentry> 183 <term>Udev usb_id Segfault Patch - <token>&udev-usbid-patch-size;</token>:</term> 184 <listitem> 185 <para>Download: <ulink url="&patches-root;&udev-usbid-patch;"/></para> 186 <para>MD5 sum: <literal>&udev-usbid-md5;</literal></para> 219 187 </listitem> 220 188 </varlistentry> branches/jh/BOOK/chapter05/adjusting.xml
r8402 r8461 112 112 </caution> 113 113 114 <note><para>Building T CLin the next section will serve as an additional check that115 the toolchain has been built properly. If T CLfails to build, it is an114 <note><para>Building Tcl in the next section will serve as an additional check that 115 the toolchain has been built properly. If Tcl fails to build, it is an 116 116 indication that something has gone wrong with the Binutils, GCC, or Glibc 117 installation, but not with T CLitself.</para></note>117 installation, but not with Tcl itself.</para></note> 118 118 119 119 </sect1> branches/jh/BOOK/chapter05/binutils-pass1.xml
r8392 r8461 48 48 linker and assembler to determine which of their own features to 49 49 enable.</para> 50 51 <para>Binutils does not recognize versions of Texinfo newer than 4.9. Fix 52 this issue by applying the following patch:</para> 53 54 <screen><userinput remap="pre">patch -Np1 -i ../&binutils-configure-patch;</userinput></screen> 50 55 51 56 <para>The Binutils documentation recommends building Binutils outside of the branches/jh/BOOK/chapter05/binutils-pass2.xml
r8392 r8461 43 43 <sect2 role="installation"> 44 44 <title>Re-installation of Binutils</title> 45 46 <para>Binutils does not recognize versions of Texinfo newer than 4.9. Fix 47 this issue by applying the following patch:</para> 48 49 <screen><userinput remap="pre">patch -Np1 -i ../&binutils-configure-patch;</userinput></screen> 45 50 46 51 <para>Create a separate build directory again:</para> branches/jh/BOOK/chapter05/chapter05.xml
r8356 r8461 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="coreutils.xml"/> 30 30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="diffutils.xml"/> 31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="e2fsprogs.xml"/> 31 32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="findutils.xml"/> 32 33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gawk.xml"/> … … 43 44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="tar.xml"/> 44 45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="texinfo.xml"/> 45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="util-linux .xml"/>46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="util-linux-ng.xml"/> 46 47 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="stripping.xml"/> 47 48 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="changingowner.xml"/> branches/jh/BOOK/chapter05/gawk.xml
r8392 r8461 48 48 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 49 49 50 <para>Due to a bug in the <command>configure</command> script, Gawk fails51 to detect certain aspects of locale support in Glibc. This bug leads to,52 e.g., Gettext testsuite failures. Work around this issue by appending the53 missing macro definitions to <filename>config.h</filename>:</para>54 55 <screen><userinput remap="configure">cat >> config.h << "EOF"56 <literal>#define HAVE_LANGINFO_CODESET 157 #define HAVE_LC_MESSAGES 1</literal>58 EOF</userinput></screen>59 60 50 <para>Compile the package:</para> 61 51 branches/jh/BOOK/chapter05/util-linux.xml
r8392 r8461 6 6 ]> 7 7 8 <sect1 id="ch-tools-util-linux " role="wrap">9 <?dbhtml filename="util-linux .html"?>8 <sect1 id="ch-tools-util-linux-ng" role="wrap"> 9 <?dbhtml filename="util-linux-ng.html"?> 10 10 11 11 <sect1info condition="script"> 12 <productname>util-linux </productname>13 <productnumber>&util-linux- version;</productnumber>14 <address>&util-linux- url;</address>12 <productname>util-linux-ng</productname> 13 <productnumber>&util-linux-ng-version;</productnumber> 14 <address>&util-linux-ng-url;</address> 15 15 </sect1info> 16 16 17 <title>Util-linux- &util-linux-version;</title>17 <title>Util-linux-ng-&util-linux-ng-version;</title> 18 18 19 <indexterm zone="ch-tools-util-linux ">20 <primary sortas="a-Util-linux ">Util-linux</primary>19 <indexterm zone="ch-tools-util-linux-ng"> 20 <primary sortas="a-Util-linux-ng">Util-linux-ng</primary> 21 21 <secondary>tools</secondary> 22 22 </indexterm> … … 34 34 35 35 <seglistitem> 36 <seg>&util-linux- ch5-sbu;</seg>37 <seg>&util-linux- ch5-du;</seg>36 <seg>&util-linux-ng-ch5-sbu;</seg> 37 <seg>&util-linux-ng-ch5-du;</seg> 38 38 </seglistitem> 39 39 </segmentedlist> … … 42 42 43 43 <sect2 role="installation"> 44 <title>Installation of Util-linux</title> 45 46 <para>Util-linux does not use the freshly installed headers and libraries 47 from the <filename class="directory">/tools</filename> directory by default. 48 This is fixed by altering the configure script:</para> 49 50 <screen><userinput remap="pre">sed -i 's@/usr/include@/tools/include@g' configure</userinput></screen> 44 <title>Installation of Util-linux-ng</title> 51 45 52 46 <para>Prepare Util-linux for compilation:</para> 53 47 54 <screen><userinput remap="configure">./configure</userinput></screen> 55 56 <para>Compile some support routines:</para> 57 58 <screen><userinput remap="make">make -C lib</userinput></screen> 48 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 59 49 60 50 <para>Only a few of the utilities contained in this package need to be … … 64 54 make -C text-utils more</userinput></screen> 65 55 66 <para>This package does not come with a test suite.</para> 56 <para>This package comes with a test suite, but running it will cause all of 57 the binaries to be built and tested. If you still wish to run the tests, 58 issue:</para> 59 60 <screen><userinput remap="test">make check</userinput></screen> 67 61 68 62 <para>Copy these programs to the temporary tools directory:</para> branches/jh/BOOK/chapter06/binutils.xml
r8392 r8461 56 56 <para>This issue needs to be resolved before running the test suites 57 57 for Binutils and GCC.</para> 58 59 <para>Binutils does not recognize versions of Texinfo newer than 4.9. Fix 60 this issue by applying the following patch:</para> 61 62 <screen><userinput remap="pre">patch -Np1 -i ../&binutils-configure-patch;</userinput></screen> 58 63 59 64 <para>The Binutils documentation recommends building Binutils outside of the branches/jh/BOOK/chapter06/chapter06.xml
r8229 r8461 67 67 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="texinfo.xml"/> 68 68 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="udev.xml"/> 69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="util-linux .xml"/>69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="util-linux-ng.xml"/> 70 70 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="vim.xml"/> 71 71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="aboutdebug.xml"/> branches/jh/BOOK/chapter06/createfiles.xml
r8247 r8461 84 84 disk:x:8: 85 85 lp:x:9: 86 dialout:x:10:86 uucp:x:10: 87 87 audio:x:11: 88 88 video:x:12: branches/jh/BOOK/chapter06/gawk.xml
r8392 r8461 41 41 <title>Installation of Gawk</title> 42 42 43 <para>Under some circumstances, Gawk-&gawk-version; attempts to free a44 chunk of memory that was not allocated. This bug is fixed by the following45 patch:</para>46 47 <screen><userinput remap="pre">patch -Np1 -i ../&gawk-segfault-patch;</userinput></screen>48 49 43 <para>Prepare Gawk for compilation:</para> 50 44 51 45 <screen><userinput remap="configure">./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen> 52 53 <para>Due to a bug in the <command>configure</command> script, Gawk fails54 to detect certain aspects of locale support in Glibc. This bug leads to,55 e.g., Gettext testsuite failures. Work around this issue by appending the56 missing macro definitions to <filename>config.h</filename>:</para>57 58 <screen><userinput remap="configure">cat >> config.h << "EOF"59 <literal>#define HAVE_LANGINFO_CODESET 160 #define HAVE_LC_MESSAGES 1</literal>61 EOF</userinput></screen>62 46 63 47 <para>Compile the package:</para> branches/jh/BOOK/chapter06/iproute2.xml
r8392 r8461 42 42 <title>Installation of IPRoute2</title> 43 43 44 <para>The installation of two manual pages is broken and results in45 dangling symlinks. Fix this with the following command:</para>46 47 <screen><userinput remap="pre">sed -i -e '/tc-bfifo.8/d' -e '/tc-pfifo.8/s/pbfifo/bfifo/' Makefile</userinput></screen>48 49 44 <para>Compile the package:</para> 50 45 … … 66 61 </variablelist> 67 62 68 <para>This package does not come with a test suite.</para> 63 <para>This package comes with a testsuite, but due to assumptions it makes, 64 it is not possible to reliably run these tests from within the chroot 65 environment. If you wish to run these tests after booting into your new LFS 66 system, ensure you select <filename>/proc/config.gz</filename> 67 CONFIG_IKCONFIG_PROC ("General setup" -> "Enable access to 68 .config through /proc/config.gz") support into your kernel then run 69 'make alltests' from the <filename class="directory">testsuite/</filename> 70 subdirectory.</para> 69 71 70 72 <para>Install the package:</para> branches/jh/BOOK/chapter06/linux-headers.xml
r8392 r8461 85 85 <indexterm zone="ch-system-linux-headers linux-headers"> 86 86 <!-- No /*.h here to prevent a PDF line overflow --> 87 <primary sortas="e-/usr/include/{asm{,-generic},linux,mtd,rdma,sound}">/usr/include/{asm{,-generic},linux,mtd,rdma,sound }</primary>87 <primary sortas="e-/usr/include/{asm{,-generic},linux,mtd,rdma,sound}">/usr/include/{asm{,-generic},linux,mtd,rdma,sound,video}</primary> 88 88 </indexterm> 89 89 </listitem> branches/jh/BOOK/chapter06/man-db.xml
r8392 r8461 42 42 <title>Installation of Man-DB</title> 43 43 44 <para>Four adjustments need to be made to the sources of Man-DB.</para> 45 46 <para>The first one changes the location of translated manual pages that come 47 with Man-DB, in order for them to be accessible in both traditional and 48 UTF-8 locales:</para> 49 50 <screen><userinput remap="pre">mv man/de{_DE.88591,} 51 mv man/es{_ES.88591,} 52 mv man/it{_IT.88591,} 53 mv man/ja{_JP.eucJP,} 54 sed -i 's,\*_\*,??,' man/Makefile.in</userinput></screen> 55 56 <para>The second change is a <command>sed</command> substitution to delete 44 <para>Two adjustments need to be made to the sources of Man-DB.</para> 45 46 <para>The first change is a <command>sed</command> substitution to delete 57 47 the <quote>/usr/man</quote> and <quote>/usr/local/man</quote> lines in 58 48 the <filename>man_db.conf</filename> file to prevent redundant results … … 61 51 <screen><userinput remap="pre">sed -i -e '\%\t/usr/man%d' -e '\%\t/usr/local/man%d' src/man_db.conf.in</userinput></screen> 62 52 63 <para>The third change accounts for programs that Man-DB should be able53 <para>The second change accounts for programs that Man-DB should be able 64 54 to find at runtime, but that haven't been installed yet:</para> 65 55 … … 79 69 manual pages. They are not part of LFS or BLFS, but you should be able 80 70 to install them yourself after finishing LFS if you wish to do so.</para> 81 82 <para>Finally, patch the sources to fix output errors if the man page is83 prematurely aborted by pressing the 'q' key:</para>84 85 <screen><userinput remap="pre">patch -Np1 -i ../&man-db-fixes-patch;</userinput></screen>86 71 87 72 <para>Prepare Man-DB for compilation:</para> branches/jh/BOOK/chapter06/pkgmgt.xml
r8303 r8461 13 13 <para>Package Management is an often requested addition to the LFS Book. A 14 14 Package Manager allows tracking the installation of files making it easy to 15 remove and upgrade packages. Before you begin to wonder, NO—this section 16 will not talk about nor recommend any particular package manager. What it 17 provides is a roundup of the more popular techniques and how they work. The 18 perfect package manager for you may be among these techniques or may be a 19 combination of two or more of these techniques. This section briefly mentions 20 issues that may arise when upgrading packages.</para> 15 remove and upgrade packages. As well as the binary and library files, a 16 package manager will handle the installation of configuration files. Before 17 you begin to wonder, NO—this section will not talk about nor recommend 18 any particular package manager. What it provides is a roundup of the more 19 popular techniques and how they work. The perfect package manager for you may 20 be among these techniques or may be a combination of two or more of these 21 techniques. This section briefly mentions issues that may arise when upgrading 22 packages.</para> 21 23 22 24 <para>Some reasons why no package manager is mentioned in LFS or BLFS … … 183 185 184 186 <sect3> 185 <title>LD_PRELOAD Based</title> 186 187 <para>In this approach, a library is preloaded before installation. During 187 <title>Tracing Installation Scripts</title> 188 189 <para>In this approach, the commands that the installation scripts perform 190 are recorded. There are two techniques that one can use:</para> 191 192 <para>The <envar>LD_PRELOAD</envar> environment variable can be set to 193 point to a library to be preloaded before installation. During 188 194 installation, this library tracks the packages that are being installed by 189 195 attaching itself to various executables such as <command>cp</command>, … … 196 202 appropriate files.</para> 197 203 204 <para>The second technique is to use <command>strace</command>, which 205 logs all system calls made during the execution of the installation 206 scripts.</para> 198 207 </sect3> 199 208 … … 210 219 commercial distributions. Examples of package managers that follow this 211 220 approach are RPM (which, incidentally, is required by the <ulink 212 url="http:// lsbbook.gforge.freestandards.org/package.html#RPM">Linux221 url="http://www.linux-foundation.
