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 |
|
---|
23 | <c:package id="ch-system-bash2" c:multibuild="false">
|
---|
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>
|
---|
27 |
|
---|
28 | <c:install>
|
---|
29 |
|
---|
30 | <c:para>Apply this patch</c:para>
|
---|
31 |
|
---|
32 | <c:command>patch -Np1 -i ../&bash-branch_update-patch;</c:command>
|
---|
33 |
|
---|
34 | <c:para>Prepare the package for compilation</c:para>
|
---|
35 |
|
---|
36 | <c:command>./configure -prefix=/usr -bindir=/bin \
|
---|
37 | -without-bash-malloc -with-installed-readline</c:command>
|
---|
38 |
|
---|
39 | <c:para>Compile the package:</c:para>
|
---|
40 |
|
---|
41 | <c:command>make</c:command>
|
---|
42 |
|
---|
43 | <c:para>To test the results, issue:
|
---|
44 | <c:command>make tests</c:command>.</c:para>
|
---|
45 |
|
---|
46 | <c:para>Install the package:</c:para>
|
---|
47 | <c:command>make htmldir=/usr/share/doc/bash-&bash-version; install</c:command>
|
---|
48 |
|
---|
49 | <c:para>Run the newly compiled <c:command>bash</c:command> program (replacing
|
---|
50 | the one that is currently being executed):</c:para>
|
---|
51 |
|
---|
52 | <c:command c:nodump="true">exec /bin/bash -login +h</c:command>
|
---|
53 |
|
---|
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>
|
---|
59 |
|
---|
60 | </c:install>
|
---|
61 |
|
---|
62 | <c:contents>
|
---|
63 |
|
---|
64 | <c:program>
|
---|
65 | <c:name>test2</c:name>
|
---|
66 | <c:description>This is the test program.</c:description>
|
---|
67 | </c:program>
|
---|
68 |
|
---|
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 |
|
---|
91 | </c:contents>
|
---|
92 |
|
---|
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>
|
---|
98 | <c:description>The Test package contains a <c:command>test</c:command>.</c:description>
|
---|
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 |
|
---|
109 | <c:para>Compile <c:filename>the</c:filename> package:</c:para>
|
---|
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 |
|
---|
122 | <c:contents c:ref="ch-system-bash2" />
|
---|
123 |
|
---|
124 | </c:package>
|
---|
125 |
|
---|
126 | </chapter>
|
---|
127 |
|
---|
128 | </part>
|
---|