Changeset 8392
- Timestamp:
- 09/18/07 15:39:40 (1 year ago)
- Files:
-
- branches/jh/BOOK/chapter01/changelog.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/bash.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter05/binutils-pass1.xml (modified) (4 diffs)
- branches/jh/BOOK/chapter05/binutils-pass2.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter05/bison.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/bzip2.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/coreutils.xml (modified) (4 diffs)
- branches/jh/BOOK/chapter05/dejagnu.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/diffutils.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter05/expect.xml (modified) (4 diffs)
- branches/jh/BOOK/chapter05/findutils.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/flex.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/gawk.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter05/gcc-pass1.xml (modified) (4 diffs)
- branches/jh/BOOK/chapter05/gcc-pass2.xml (modified) (11 diffs)
- branches/jh/BOOK/chapter05/gettext.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter05/glibc.xml (modified) (5 diffs)
- branches/jh/BOOK/chapter05/grep.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter05/gzip.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter05/linux-headers.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/m4.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/make.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/ncurses.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter05/patch.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter05/perl.xml (modified) (5 diffs)
- branches/jh/BOOK/chapter05/sed.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/tar.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/tcl.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter05/texinfo.xml (modified) (1 diff)
- branches/jh/BOOK/chapter05/util-linux.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter06/autoconf.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/automake.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/bash.xml (modified) (5 diffs)
- branches/jh/BOOK/chapter06/binutils.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/bison.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter06/bzip2.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/coreutils.xml (modified) (7 diffs)
- branches/jh/BOOK/chapter06/db.xml (modified) (4 diffs)
- branches/jh/BOOK/chapter06/diffutils.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/e2fsprogs.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/file.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter06/findutils.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/flex.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/gawk.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/gcc.xml (modified) (8 diffs)
- branches/jh/BOOK/chapter06/gettext.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/glibc.xml (modified) (9 diffs)
- branches/jh/BOOK/chapter06/grep.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/groff.xml (modified) (4 diffs)
- branches/jh/BOOK/chapter06/grub.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/gzip.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/iana-etc.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter06/inetutils.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/iproute2.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/kbd.xml (modified) (5 diffs)
- branches/jh/BOOK/chapter06/less.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/libtool.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/linux-headers.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/m4.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/make.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/man-db.xml (modified) (6 diffs)
- branches/jh/BOOK/chapter06/man-pages.xml (modified) (1 diff)
- branches/jh/BOOK/chapter06/mktemp.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/module-init-tools.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/ncurses.xml (modified) (5 diffs)
- branches/jh/BOOK/chapter06/patch.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter06/perl.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/procps.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter06/psmisc.xml (modified) (5 diffs)
- branches/jh/BOOK/chapter06/readline.xml (modified) (4 diffs)
- branches/jh/BOOK/chapter06/sed.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter06/shadow.xml (modified) (7 diffs)
- branches/jh/BOOK/chapter06/sysklogd.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter06/sysvinit.xml (modified) (2 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) (6 diffs)
- branches/jh/BOOK/chapter06/util-linux.xml (modified) (3 diffs)
- branches/jh/BOOK/chapter06/vim.xml (modified) (6 diffs)
- branches/jh/BOOK/chapter06/zlib.xml (modified) (2 diffs)
- branches/jh/BOOK/chapter07/bootscripts.xml (modified) (1 diff)
- branches/jh/BOOK/chapter08/kernel.xml (modified) (6 diffs)
- branches/jh/BOOK/general.ent (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/jh/BOOK/chapter01/changelog.xml
r8386 r8392 37 37 --> 38 38 39 <listitem> 40 <para>2007-09-18</para> 41 <itemizedlist> 42 <listitem> 43 <para>[manuel] - Added remap attributes to userinput tags in packages 44 pages to help adding package manager support and other extensions 45 into jhalfs. Made all testsuite commands screen blocks for 46 consistency.</para> 47 </listitem> 48 </itemizedlist> 49 </listitem> 50 39 51 <listitem> 40 52 <para>2007-09-16</para> branches/jh/BOOK/chapter05/bash.xml
r8367 r8392 47 47 Bash-&bash-version;:</para> 48 48 49 <screen><userinput >patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>49 <screen><userinput remap="pre">patch -Np1 -i ../&bash-fixes-patch;</userinput></screen> 50 50 51 51 <para>Prepare Bash for compilation:</para> 52 52 53 <screen><userinput >./configure --prefix=/tools --without-bash-malloc</userinput></screen>53 <screen><userinput remap="configure">./configure --prefix=/tools --without-bash-malloc</userinput></screen> 54 54 55 55 <variablelist> … … 71 71 <para>Compile the package:</para> 72 72 73 <screen><userinput >make</userinput></screen>73 <screen><userinput remap="make">make</userinput></screen> 74 74 75 <para>To test the results, issue: 76 <userinput>make tests</userinput>.</para> 75 <para>To test the results, issue:</para> 76 77 <screen><userinput remap="test">make tests</userinput></screen> 77 78 78 79 <para>Install the package:</para> 79 80 80 <screen><userinput >make install</userinput></screen>81 <screen><userinput remap="install">make install</userinput></screen> 81 82 82 83 <para>Make a link for the programs that use <command>sh</command> for 83 84 a shell:</para> 84 85 85 <screen><userinput >ln -vs bash /tools/bin/sh</userinput></screen>86 <screen><userinput remap="install">ln -vs bash /tools/bin/sh</userinput></screen> 86 87 87 88 </sect2> branches/jh/BOOK/chapter05/binutils-pass1.xml
r8367 r8392 52 52 source directory in a dedicated build directory:</para> 53 53 54 <screen><userinput >mkdir -v ../binutils-build54 <screen><userinput remap="pre">mkdir -v ../binutils-build 55 55 cd ../binutils-build</userinput></screen> 56 56 … … 66 66 <para>Now prepare Binutils for compilation:</para> 67 67 68 <screen><userinput >CC="gcc -B/usr/bin/" ../binutils-&binutils-version;/configure \68 <screen><userinput remap="configure">CC="gcc -B/usr/bin/" ../binutils-&binutils-version;/configure \ 69 69 --prefix=/tools --disable-nls --disable-werror</userinput></screen> 70 70 … … 112 112 <para>Continue with compiling the package:</para> 113 113 114 <screen><userinput >make</userinput></screen>114 <screen><userinput remap="make">make</userinput></screen> 115 115 116 116 <para>Compilation is now complete. Ordinarily we would now run the … … 122 122 <para>Create a symlink to ensure the sanity of our toolchain:</para> 123 123 124 <screen><userinput >mkdir -v /tools/lib124 <screen><userinput remap="install">mkdir -v /tools/lib 125 125 ln -sv lib /tools/lib64</userinput></screen> 126 126 127 127 <para>Install the package:</para> 128 128 129 <screen><userinput >make install</userinput></screen>129 <screen><userinput remap="install">make install</userinput></screen> 130 130 131 131 <para>Finally, prepare the linker for the <quote>Adjusting</quote> phase 132 132 later on:</para> 133 133 134 <screen><userinput >make -C ld clean134 <screen><userinput remap="adjust">make -C ld clean 135 135 make -C ld LIB_PATH=/tools/lib 136 136 cp -v ld/ld-new /tools/bin</userinput></screen> branches/jh/BOOK/chapter05/binutils-pass2.xml
r8367 r8392 46 46 <para>Create a separate build directory again:</para> 47 47 48 <screen><userinput >mkdir -v ../binutils-build48 <screen><userinput remap="pre">mkdir -v ../binutils-build 49 49 cd ../binutils-build</userinput></screen> 50 50 51 51 <para>Prepare Binutils for compilation:</para> 52 52 53 <screen><userinput >../binutils-&binutils-version;/configure --prefix=/tools \53 <screen><userinput remap="configure">../binutils-&binutils-version;/configure --prefix=/tools \ 54 54 --disable-nls --with-lib-path=/tools/lib</userinput></screen> 55 55 … … 72 72 <para>Compile the package:</para> 73 73 74 <screen><userinput >make</userinput></screen>74 <screen><userinput remap="make">make</userinput></screen> 75 75 76 76 <para>Compilation is now complete. As discussed earlier, running the … … 79 79 command:</para> 80 80 81 <screen><userinput >make check</userinput></screen>81 <screen><userinput remap="test">make check</userinput></screen> 82 82 83 83 <para>Install the package:</para> 84 84 85 <screen><userinput >make install</userinput></screen>85 <screen><userinput remap="install">make install</userinput></screen> 86 86 87 87 <para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in 88 88 the next chapter:</para> 89 89 90 <screen><userinput >make -C ld clean90 <screen><userinput remap="adjust">make -C ld clean 91 91 make -C ld LIB_PATH=/usr/lib:/lib 92 92 cp -v ld/ld-new /tools/bin</userinput></screen> 93 94 93 95 94 </sect2> branches/jh/BOOK/chapter05/bison.xml
r8367 r8392 46 46 <para>Prepare Bison for compilation:</para> 47 47 48 <screen><userinput >./configure --prefix=/tools</userinput></screen>48 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 49 49 50 50 <para>Compile the package:</para> 51 51 52 <screen><userinput >make</userinput></screen>52 <screen><userinput remap="make">make</userinput></screen> 53 53 54 <para>To test the results, issue: 55 <userinput>make check</userinput>.</para> 54 <para>To test the results, issue:</para> 55 56 <screen><userinput remap="test">make check</userinput></screen> 56 57 57 58 <para>Install the package:</para> 58 59 59 <screen><userinput >make install</userinput></screen>60 <screen><userinput remap="install">make install</userinput></screen> 60 61 61 62 </sect2> branches/jh/BOOK/chapter05/bzip2.xml
r8367 r8392 47 47 script. Compile and test it with:</para> 48 48 49 <screen><userinput >make</userinput></screen>49 <screen><userinput remap="make">make</userinput></screen> 50 50 51 51 <para>Install the package:</para> 52 52 53 <screen><userinput >make PREFIX=/tools install</userinput></screen>53 <screen><userinput remap="install">make PREFIX=/tools install</userinput></screen> 54 54 55 55 </sect2> branches/jh/BOOK/chapter05/coreutils.xml
r8367 r8392 48 48 Glibc provides, so we'll rename the function:</para> 49 49 50 <screen><userinput >for file in src/{copy,touch}.c lib/utimens.{c,h} ; do \50 <screen><userinput remap="pre">for file in src/{copy,touch}.c lib/utimens.{c,h} ; do \ 51 51 cp -v $file{,.orig} 52 52 sed 's/futimens/gl_&/' $file.orig > $file … … 55 55 <para>Prepare Coreutils for compilation:</para> 56 56 57 <screen><userinput >./configure --prefix=/tools</userinput></screen>57 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 58 58 59 59 <para>Compile the package:</para> 60 60 61 <screen><userinput >make</userinput></screen>61 <screen><userinput remap="make">make</userinput></screen> 62 62 63 <para>To test the results, issue: 64 <userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput>. The 65 <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the 63 <para>To test the results, issue:</para> 64 65 <screen><userinput remap="test">make RUN_EXPENSIVE_TESTS=yes check</userinput></screen> 66 67 <para>The <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the 66 68 test suite to run several additional tests that are considered 67 69 relatively expensive (in terms of CPU power and memory usage) on some … … 70 72 <para>Install the package:</para> 71 73 72 <screen><userinput >make install</userinput></screen>74 <screen><userinput remap="install">make install</userinput></screen> 73 75 74 76 <para>The above command refuses to install <filename>su</filename> … … 79 81 it with:</para> 80 82 81 <screen><userinput >cp -v src/su /tools/bin/su-tools</userinput></screen>83 <screen><userinput remap="install">cp -v src/su /tools/bin/su-tools</userinput></screen> 82 84 83 85 </sect2> branches/jh/BOOK/chapter05/dejagnu.xml
r8367 r8392 44 44 <para>Prepare DejaGNU for compilation:</para> 45 45 46 <screen><userinput >./configure --prefix=/tools</userinput></screen>46 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 47 47 48 48 <para>Build and install the package:</para> 49 49 50 <screen><userinput >make install</userinput></screen>50 <screen><userinput remap="install">make install</userinput></screen> 51 51 52 <para>To test the results, issue: 53 <userinput>make check</userinput>.</para> 52 <para>To test the results, issue:</para> 53 54 <screen><userinput remap="test">make check</userinput></screen> 54 55 55 56 </sect2> branches/jh/BOOK/chapter05/diffutils.xml
r8367 r8392 46 46 <para>Prepare Diffutils for compilation:</para> 47 47 48 <screen><userinput >./configure --prefix=/tools</userinput></screen>48 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 49 49 50 50 <para>Compile the package:</para> 51 51 52 <screen><userinput >make</userinput></screen>52 <screen><userinput remap="make">make</userinput></screen> 53 53 54 54 <para>This package does not come with a test suite.</para> … … 56 56 <para>Install the package:</para> 57 57 58 <screen><userinput >make install</userinput></screen>58 <screen><userinput remap="install">make install</userinput></screen> 59 59 60 60 </sect2> branches/jh/BOOK/chapter05/expect.xml
r8367 r8392 45 45 suite run:</para> 46 46 47 <screen><userinput >patch -Np1 -i ../&expect-spawn-patch;</userinput></screen>47 <screen><userinput remap="pre">patch -Np1 -i ../&expect-spawn-patch;</userinput></screen> 48 48 49 49 <para>Next, force Expect's configure script to use <filename>/bin/stty</filename> … … 52 52 toolchain:</para> 53 53 54 <screen><userinput >cp configure{,.bak}54 <screen><userinput remap="pre">cp configure{,.bak} 55 55 sed 's:/usr/local/bin:/bin:' configure.bak > configure</userinput></screen> 56 56 57 57 <para>Now prepare Expect for compilation:</para> 58 58 59 <screen><userinput >./configure --prefix=/tools --with-tcl=/tools/lib \59 <screen><userinput remap="configure">./configure --prefix=/tools --with-tcl=/tools/lib \ 60 60 --with-tclinclude=/tools/include --with-x=no</userinput></screen> 61 61 … … 96 96 <para>Build the package:</para> 97 97 98 <screen><userinput >make</userinput></screen>98 <screen><userinput remap="make">make</userinput></screen> 99 99 100 <para>To test the results, issue: <userinput>make test</userinput>. 101 Note that the Expect test suite is known to experience failures under 100 <para>To test the results, issue:</para> 101 102 <screen><userinput remap="test">make test</userinput></screen> 103 104 <para>Note that the Expect test suite is known to experience failures under 102 105 certain host conditions that are not within our control. Therefore, 103 106 test suite failures here are not surprising and are not considered … … 106 109 <para>Install the package:</para> 107 110 108 <screen><userinput >make SCRIPTS="" install</userinput></screen>111 <screen><userinput remap="install">make SCRIPTS="" install</userinput></screen> 109 112 110 113 <variablelist> branches/jh/BOOK/chapter05/findutils.xml
r8367 r8392 46 46 <para>Prepare Findutils for compilation:</para> 47 47 48 <screen><userinput >./configure --prefix=/tools</userinput></screen>48 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 49 49 50 50 <para>Compile the package:</para> 51 51 52 <screen><userinput >make</userinput></screen>52 <screen><userinput remap="make">make</userinput></screen> 53 53 54 <para>To test the results, issue: 55 <userinput>make check</userinput>.</para> 54 <para>To test the results, issue:</para> 55 56 <screen><userinput remap="test">make check</userinput></screen> 56 57 57 58 <para>Install the package:</para> 58 59 59 <screen><userinput >make install</userinput></screen>60 <screen><userinput remap="install">make install</userinput></screen> 60 61 61 62 </sect2> branches/jh/BOOK/chapter05/flex.xml
r8367 r8392 46 46 <para>Prepare Flex for compilation:</para> 47 47 48 <screen><userinput >./configure --prefix=/tools</userinput></screen>48 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 49 49 50 50 <para>Compile the package:</para> 51 51 52 <screen><userinput >make</userinput></screen>52 <screen><userinput remap="make">make</userinput></screen> 53 53 54 <para>To test the results, issue: 55 <userinput>make check</userinput>.</para> 54 <para>To test the results, issue:</para> 55 56 <screen><userinput remap="test">make check</userinput></screen> 56 57 57 58 <para>Install the package:</para> 58 59 59 <screen><userinput >make install</userinput></screen>60 <screen><userinput remap="install">make install</userinput></screen> 60 61 61 62 </sect2> branches/jh/BOOK/chapter05/gawk.xml
r8367 r8392 46 46 <para>Prepare Gawk for compilation:</para> 47 47 48 <screen><userinput >./configure --prefix=/tools</userinput></screen>48 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 49 49 50 50 <para>Due to a bug in the <command>configure</command> script, Gawk fails … … 53 53 missing macro definitions to <filename>config.h</filename>:</para> 54 54 55 <screen><userinput >cat >> config.h << "EOF"55 <screen><userinput remap="configure">cat >> config.h << "EOF" 56 56 <literal>#define HAVE_LANGINFO_CODESET 1 57 57 #define HAVE_LC_MESSAGES 1</literal> … … 60 60 <para>Compile the package:</para> 61 61 62 <screen><userinput >make</userinput></screen>62 <screen><userinput remap="make">make</userinput></screen> 63 63 64 <para>To test the results, issue: 65 <userinput>make check</userinput>.</para> 64 <para>To test the results, issue:</para> 65 66 <screen><userinput remap="test">make check</userinput></screen> 66 67 67 68 <para>Install the package:</para> 68 69 69 <screen><userinput >make install</userinput></screen>70 <screen><userinput remap="install">make install</userinput></screen> 70 71 71 72 </sect2> branches/jh/BOOK/chapter05/gcc-pass1.xml
r8382 r8392 47 47 source directory in a dedicated build directory:</para> 48 48 49 <screen><userinput >mkdir -v ../gcc-build49 <screen><userinput remap="pre">mkdir -v ../gcc-build 50 50 cd ../gcc-build</userinput></screen> 51 51 52 52 <para>Prepare GCC for compilation:</para> 53 53 54 <screen><userinput >CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \54 <screen><userinput remap="configure">CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \ 55 55 --with-local-prefix=/tools --disable-nls --disable-shared \ 56 56 --enable-languages=c --disable-multilib</userinput></screen> … … 113 113 package. Continue with compiling by running:</para> 114 114 115 <screen><userinput >make</userinput></screen>115 <screen><userinput remap="make">make</userinput></screen> 116 116 117 117 <para>Compilation is now complete. At this point, the test suite would … … 123 123 <para>Install the package:</para> 124 124 125 <screen><userinput >make install</userinput></screen>125 <screen><userinput remap="install">make install</userinput></screen> 126 126 127 127 <para>Using <command>--disable-shared</command> means that the file … … 144 144 which C compiler to install:</para> 145 145 146 <screen><userinput >ln -vs gcc /tools/bin/cc</userinput></screen>146 <screen><userinput remap="install">ln -vs gcc /tools/bin/cc</userinput></screen> 147 147 148 148 </sect2> branches/jh/BOOK/chapter05/gcc-pass2.xml
r8382 r8392 54 54 performing a quick test:</para> 55 55 56 <screen><userinput >expect -c "spawn ls"</userinput></screen>56 <screen><userinput remap="test">expect -c "spawn ls"</userinput></screen> 57 57 58 58 <para>The response might be:</para> … … 78 78 be suppressed by issuing the following commands:</para> 79 79 80 <screen><userinput >cp -v gcc/Makefile.in{,.orig}80 <screen><userinput remap="pre">cp -v gcc/Makefile.in{,.orig} 81 81 sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in</userinput></screen> 82 82 … … 87 87 builds:</para> 88 88 89 <screen><userinput >cp -v gcc/Makefile.in{,.tmp}89 <screen><userinput remap="pre">cp -v gcc/Makefile.in{,.tmp} 90 90 sed 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp \ 91 91 > gcc/Makefile.in</userinput></screen> … … 100 100 against the new Glibc. Issue:</para> 101 101 102 <screen><userinput >for file in $(find gcc/config -name linux64.h -o -name linux.h)102 <screen><userinput remap="pre">for file in $(find gcc/config -name linux64.h -o -name linux.h) 103 103 do 104 104 cp -uv $file{,.orig} … … 109 109 #define STANDARD_INCLUDE_DIR 0" >> $file 110 110 touch $file.orig 111 done</userinput></screen> 111 done</userinput></screen> 112 112 113 113 <para>In case the above seems hard to follow, let's break it down a bit. … … 128 128 won't attempt to link against libraries on the host:</para> 129 129 130 <screen><userinput >for file in $(find gcc/config -name t-linux64) ; do \130 <screen><userinput remap="pre">for file in $(find gcc/config -name t-linux64) ; do \ 131 131 cp -v $file{,.orig} 132 132 sed '/MULTILIB_OSDIRNAMES/d' $file.orig > $file … … 135 135 <para>Create a separate build directory again:</para> 136 136 137 <screen><userinput >mkdir -v ../gcc-build137 <screen><userinput remap="pre">mkdir -v ../gcc-build 138 138 cd ../gcc-build</userinput></screen> 139 139 … … 143 143 <para>Now prepare GCC for compilation:</para> 144 144 145 <screen><userinput >../gcc-&gcc-version;/configure --prefix=/tools \145 <screen><userinput remap="configure">../gcc-&gcc-version;/configure --prefix=/tools \ 146 146 --with-local-prefix=/tools --enable-clocale=gnu \ 147 147 --enable-shared --enable-threads=posix \ … … 216 216 <para>Compile the package:</para> 217 217 218 <screen><userinput >make</userinput></screen>218 <screen><userinput remap="make">make</userinput></screen> 219 219 220 220 <para>There is no need to use the <parameter>bootstrap</parameter> target … … 226 226 To run the GCC test suite anyway, use the following command:</para> 227 227 228 <screen><userinput >make -k check</userinput></screen>228 <screen><userinput remap="test">make -k check</userinput></screen> 229 229 230 230 <para>The <parameter>-k</parameter> flag is used to make the test suite run … … 238 238 <para>Install the package:</para> 239 239 240 <screen><userinput >make install</userinput></screen>240 <screen><userinput remap="install">make install</userinput></screen> 241 241 242 242 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" branches/jh/BOOK/chapter05/gettext.xml
r8367 r8392 49 49 <para>Prepare Gettext for compilation:</para> 50 50 51 <screen><userinput >cd gettext-tools51 <screen><userinput remap="configure">cd gettext-tools 52 52 ./configure --prefix=/tools --disable-shared</userinput></screen> 53 53 … … 67 67 <para>Compile the package:</para> 68 68 69 <screen><userinput >make -C gnulib-lib69 <screen><userinput remap="make">make -C gnulib-lib 70 70 make -C src msgfmt</userinput></screen> 71 71 … … 77 77 <para>Install the <command>msgfmt</command> binary:</para> 78 78 79 <screen><userinput >cp -v src/msgfmt /tools/bin</userinput></screen>79 <screen><userinput remap="install">cp -v src/msgfmt /tools/bin</userinput></screen> 80 80 81 81 </sect2> branches/jh/BOOK/chapter05/glibc.xml
r8382 r8392 47 47 directory in a dedicated build directory:</para> 48 48 49 <screen><userinput >mkdir -v ../glibc-build49 <screen><userinput remap="pre">mkdir -v ../glibc-build 50 50 cd ../glibc-build</userinput></screen> 51 51 … … 58 58 making use of the special file <filename>configparms</filename>:</para> 59 59 60 <screen><userinput >uname -m | grep -q i?86 &&60 <screen><userinput remap="configure">uname -m | grep -q i?86 && 61 61 echo "CFLAGS += -march=i486" > configparms</userinput></screen> 62 62 63 63 <para>Next, prepare Glibc for compilation:</para> 64 64 65 <screen><userinput >../glibc-&glibc-version;/configure --prefix=/tools \65 <screen><userinput remap="configure">../glibc-&glibc-version;/configure --prefix=/tools \ 66 66 --disable-profile --enable-add-ons \ 67 67 --enable-kernel=2.6.0 --with-binutils=/tools/bin \ … … 155 155 <para>Compile the package:</para> 156 156 157 <screen><userinput >make</userinput></screen>157 <screen><userinput remap="make">make</userinput></screen> 158 158 159 159 <para>Compilation is now complete. As mentioned earlier, running the … … 162 162 command will do so:</para> 163 163 164 <screen><userinput >make check</userinput></screen>164 <screen><userinput remap="test">make check</userinput></screen> 165 165 166 166 <para>For a discussion of test failures that are of particular … … 186 186 Prevent this warning with:</para> 187 187 188 <screen><userinput >mkdir -v /tools/etc188 <screen><userinput remap="install">mkdir -v /tools/etc 189 189 touch /tools/etc/ld.so.conf</userinput></screen> 190 190 191 191 <para>Install the package:</para> 192 192 193 <screen><userinput >make install</userinput></screen>193 <screen><userinput remap="install">make install</userinput></screen> 194 194 195 195 <para>Different countries and cultures have varying conventions for branches/jh/BOOK/chapter05/grep.xml
r8367 r8392 46 46 <para>Prepare Grep for compilation:</para> 47 47 48 <screen><userinput >./configure --prefix=/tools \48 <screen><userinput remap="configure">./configure --prefix=/tools \ 49 49 --disable-perl-regexp</userinput></screen> 50 50 … … 66 66 <para>Compile the package:</para> 67 67 68 <screen><userinput >make</userinput></screen>68 <screen><userinput remap="make">make</userinput></screen> 69 69 70 <para>To test the results, issue: 71 <userinput>make check</userinput>.</para> 70 <para>To test the results, issue:</para> 71 72 <screen><userinput remap="test">make check</userinput></screen> 72 73 73 74 <para>Install the package:</para> 74 75 75 <screen><userinput >make install</userinput></screen>76 <screen><userinput remap="install">make install</userinput></screen> 76 77 77 78 </sect2> branches/jh/BOOK/chapter05/gzip.xml
r8367 r8392 48 48 Glibc provides, so we'll rename the function:</para> 49 49 50 <screen><userinput >for file in gzip.c lib/utimens.{c,h} ; do \50 <screen><userinput remap="pre">for file in gzip.c lib/utimens.{c,h} ; do \ 51 51 cp -v $file{,.orig} 52 52 sed 's/futimens/gl_&/' $file.orig > $file … … 55 55 <para>Prepare Gzip for compilation:</para> 56 56 57 <screen><userinput >./configure --prefix=/tools</userinput></screen>57 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 58 58 59 59 <para>Compile the package:</para> 60 60 61 <screen><userinput >make</userinput></screen>61 <screen><userinput remap="make">make</userinput></screen> 62 62 63 <para>To test the results, issue: 64 <userinput>make check</userinput>.</para> 63 <para>To test the results, issue:</para> 64 65 <screen><userinput remap="test">make check</userinput></screen> 65 66 66 67 <para>Install the package:</para> 67 68 68 <screen><userinput >make install</userinput></screen>69 <screen><userinput remap="install">make install</userinput></screen> 69 70 70 71 </sect2> branches/jh/BOOK/chapter05/linux-headers.xml
r8367 r8392 51 51 <para>Install the header files:</para> 52 52 53 <screen><userinput >make mrproper53 <screen><userinput remap="install">make mrproper 54 54 make headers_check 55 55 make INSTALL_HDR_PATH=dest headers_install branches/jh/BOOK/chapter05/m4.xml
r8367 r8392 46 46 <para>Prepare M4 for compilation:</para> 47 47 48 <screen><userinput >./configure --prefix=/tools</userinput></screen>48 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 49 49 50 50 <para>Compile the package:</para> 51 51 52 <screen><userinput >make</userinput></screen>52 <screen><userinput remap="make">make</userinput></screen> 53 53 54 <para>To test the results, issue: 55 <userinput>make check</userinput>.</para> 54 <para>To test the results, issue:</para> 55 56 <screen><userinput remap="test">make check</userinput></screen> 56 57 57 58 <para>Install the package:</para> 58 59 59 <screen><userinput >make install</userinput></screen>60 <screen><userinput remap="install">make install</userinput></screen> 60 61 61 62 </sect2> branches/jh/BOOK/chapter05/make.xml
r8367 r8392 45 45 <para>Prepare Make for compilation:</para> 46 46 47 <screen><userinput >./configure --prefix=/tools</userinput></screen>47 <screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen> 48 48 49 49 <para>Compile the package:</para> 50 50 51 <screen><userinput >make</userinput></screen>51 <screen><userinput remap="make">make</userinput></screen> 52 52 53 <para>To test the results, issue: 54 <userinput>make check</userinput>.</para> 53 <para>To test the results, issue:</para> 54 55 <screen><userinput remap="test">make check</userinput></screen> 55 56 56 57 <para>Install the package:</para> 57 58 58 <screen><userinput >make install</userinput></screen>59 <screen><userinput remap="install">make install</userinput></screen> 59 60 60 61 </sect2> branches/jh/BOOK/chapter05/ncurses.xml
