[4fe47e3] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <part id="part0" xmlns:c="http://schema.cross-lfs.org/book">
|
---|
| 9 | <?dbhtml filename="part0.html"?>
|
---|
| 10 | <title>Test Part</title>
|
---|
| 11 |
|
---|
| 12 | <chapter>
|
---|
| 13 | <?dbhtml dir="chapter0"?>
|
---|
| 14 | <?dbhtml filename="chapter0.html"?>
|
---|
| 15 | <title>Chapter 0</title>
|
---|
| 16 |
|
---|
| 17 | <sect1>
|
---|
| 18 | <?dbhtml filename="sect0.html"?>
|
---|
| 19 | <title>Sect 0</title>
|
---|
| 20 | <para>Testing... 1.. 2.. 3..</para>
|
---|
| 21 | </sect1>
|
---|
| 22 |
|
---|
[a2b92f3] | 23 | <c:package id="ch-system-bash2" c:multibuild="false">
|
---|
[5c560cb] | 24 | <c:title>Bash</c:title>
|
---|
| 25 | <c:version>4.0.1</c:version>
|
---|
| 26 | <c:description>The Bash package contains the Bourne-Again SHell.</c:description>
|
---|
[4fe47e3] | 27 |
|
---|
[5c560cb] | 28 | <c:install>
|
---|
[4fe47e3] | 29 |
|
---|
[5c560cb] | 30 | <c:para>Apply this patch</c:para>
|
---|
[5508d22] | 31 |
|
---|
[5c560cb] | 32 | <c:command>patch -Np1 -i ../&bash-branch_update-patch;</c:command>
|
---|
[4fe47e3] | 33 |
|
---|
[5c560cb] | 34 | <c:para>Prepare the package for compilation</c:para>
|
---|
[4fe47e3] | 35 |
|
---|
[5c560cb] | 36 | <c:command>./configure -prefix=/usr -bindir=/bin \
|
---|
| 37 | -without-bash-malloc -with-installed-readline</c:command>
|
---|
[4fe47e3] | 38 |
|
---|
[5c560cb] | 39 | <c:para>Compile the package:</c:para>
|
---|
[d17cfb8] | 40 |
|
---|
[5c560cb] | 41 | <c:command>make</c:command>
|
---|
[4fe47e3] | 42 |
|
---|
[5c560cb] | 43 | <c:para>To test the results, issue:
|
---|
| 44 | <c:command>make tests</c:command>.</c:para>
|
---|
[4fe47e3] | 45 |
|
---|
[5c560cb] | 46 | <c:para>Install the package:</c:para>
|
---|
| 47 | <c:command>make htmldir=/usr/share/doc/bash-&bash-version; install</c:command>
|
---|
[4fe47e3] | 48 |
|
---|
[5c560cb] | 49 | <c:para>Run the newly compiled <c:command>bash</c:command> program (replacing
|
---|
| 50 | the one that is currently being executed):</c:para>
|
---|
[4fe47e3] | 51 |
|
---|
[5c560cb] | 52 | <c:command c:nodump="true">exec /bin/bash -login +h</c:command>
|
---|
[4fe47e3] | 53 |
|
---|
[5c560cb] | 54 | <c:note>
|
---|
| 55 | <c:para>(note+warn) The parameters used make the <c:command>bash</c:command>
|
---|
| 56 | process an interactive login shell and continue to disable hashing so
|
---|
| 57 | that new programs are found as they become available.</c:para>
|
---|
| 58 | </c:note>
|
---|
[4fe47e3] | 59 |
|
---|
[5c560cb] | 60 | </c:install>
|
---|
[4fe47e3] | 61 |
|
---|
[4f597816] | 62 | <c:contents>
|
---|
| 63 |
|
---|
[01f0f37] | 64 | <c:program>
|
---|
[a2b92f3] | 65 | <c:name>test2</c:name>
|
---|
[01f0f37] | 66 | <c:description>This is the test program.</c:description>
|
---|
| 67 | </c:program>
|
---|
| 68 |
|
---|
[1d86c775] | 69 | <c:library>
|
---|
| 70 | <c:name>libjoe</c:name>
|
---|
| 71 | <c:description>This is a bullshit library for a <c:command>test</c:command>.</c:description>
|
---|
| 72 | </c:library>
|
---|
| 73 |
|
---|
| 74 | <c:directory>
|
---|
| 75 | <c:name>/usr/blah</c:name>
|
---|
| 76 | <c:description>Some Crap</c:description>
|
---|
| 77 | </c:directory>
|
---|
| 78 | <c:directory>
|
---|
| 79 | <c:name>/usr/blah2</c:name>
|
---|
| 80 | <c:description>Some Crap2</c:description>
|
---|
| 81 | </c:directory>
|
---|
| 82 | <c:directory>
|
---|
| 83 | <c:name>/usr/blah3</c:name>
|
---|
| 84 | <c:description>Some Crap2</c:description>
|
---|
| 85 | </c:directory>
|
---|
| 86 | <c:directory>
|
---|
| 87 | <c:name>/usr/blah4</c:name>
|
---|
| 88 | <c:description>Some Crap2</c:description>
|
---|
| 89 | </c:directory>
|
---|
| 90 |
|
---|
[4f597816] | 91 | </c:contents>
|
---|
| 92 |
|
---|
[5c560cb] | 93 | </c:package>
|
---|
| 94 |
|
---|
| 95 | <c:package id="ch-system-test" c:multibuild="true">
|
---|
| 96 | <c:title>TestPackage</c:title>
|
---|
| 97 | <c:version>1.2.3</c:version>
|
---|
[9db1668] | 98 | <c:description>The Test package contains a <c:command>test</c:command>.</c:description>
|
---|
[5c560cb] | 99 |
|
---|
| 100 | <c:install>
|
---|
| 101 |
|
---|
| 102 | <c:para>Prepare the package for compilation</c:para>
|
---|
| 103 |
|
---|
| 104 | <c:command c:multilib="false">./configure --prefix=/usr</c:command>
|
---|
| 105 | <c:command c:multilib="true" c:bits="32">CC="gcc ${BUILD32}" ./configure --prefix=/usr</c:command>
|
---|
| 106 | <c:command c:multilib="true" c:bits="n32">CC="gcc ${BUILDN32}" ./configure --prefix=/usr</c:command>
|
---|
| 107 | <c:command c:multilib="true" c:bits="64">CC="gcc ${BUILD64}" ./configure --prefix=/usr</c:command>
|
---|
| 108 |
|
---|
[9db1668] | 109 | <c:para>Compile <c:filename>the</c:filename> package:</c:para>
|
---|
[5c560cb] | 110 |
|
---|
| 111 | <c:command>make</c:command>
|
---|
| 112 |
|
---|
| 113 | <c:para>To test the results, issue:
|
---|
| 114 | <c:command>make tests</c:command>.</c:para>
|
---|
| 115 |
|
---|
| 116 | <c:para>Install the package:</c:para>
|
---|
| 117 |
|
---|
| 118 | <c:command>make install</c:command>
|
---|
| 119 |
|
---|
| 120 | </c:install>
|
---|
| 121 |
|
---|
[4f597816] | 122 | <c:contents c:ref="ch-system-bash" />
|
---|
| 123 |
|
---|
[5c560cb] | 124 | </c:package>
|
---|
[4fe47e3] | 125 |
|
---|
| 126 | </chapter>
|
---|
| 127 |
|
---|
| 128 | </part>
|
---|