[a9e389d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[9eae0a0] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
[a9e389d] | 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[9eae0a0] | 8 | <sect1 id="ch-materials-creatingbuilddir">
|
---|
[2116d25] | 9 | <?dbhtml filename="creatingbuilddir.html"?>
|
---|
[a9e389d] | 10 |
|
---|
[f2ad938] | 11 | <title>Creating Build and Sources Directories</title>
|
---|
[a9e389d] | 12 |
|
---|
[e065f44] | 13 | <para> Create a directory for the CLFS build. The exact location is up to you
|
---|
| 14 | but depending on the location you choose, you may need to do this as the
|
---|
| 15 | root user: </para>
|
---|
[a9e389d] | 16 |
|
---|
[5d8ddbf] | 17 | <screen><userinput>sudo mkdir -p /mnt/clfs</userinput></screen>
|
---|
[a9e389d] | 18 |
|
---|
[60efb6b] | 19 | <para>Assign it to the <envar>CLFS</envar> environment variable:</para>
|
---|
[a9e389d] | 20 |
|
---|
[60efb6b] | 21 | <screen><userinput>export CLFS=/mnt/clfs</userinput></screen>
|
---|
[a9e389d] | 22 |
|
---|
[998e944] | 23 | <para>Ensure that this new directory has permissions that are not too
|
---|
[e065f44] | 24 | restrictive such that you can write to it as a non-root user. Depending on
|
---|
| 25 | the location of the <envar>CLFS</envar> directory, you may need to do this
|
---|
| 26 | as the root user:</para>
|
---|
[a9e389d] | 27 |
|
---|
[5d8ddbf] | 28 | <screen><userinput>sudo chmod 777 ${CLFS}</userinput></screen>
|
---|
[a9e389d] | 29 |
|
---|
[f2ad938] | 30 | <para>Downloaded packages and patches will need to be stored somewhere
|
---|
| 31 | that is conveniently available throughout the entire build. A working
|
---|
| 32 | directory is also required to unpack the sources and build them.
|
---|
| 33 | <filename class="directory">${CLFS}/sources</filename> can be used both
|
---|
| 34 | as the place to store the tarballs and patches and as a working
|
---|
| 35 | directory.</para>
|
---|
| 36 |
|
---|
| 37 | <para>Create a directory to store the sources:</para>
|
---|
| 38 |
|
---|
| 39 | <screen><userinput>mkdir -v ${CLFS}/sources</userinput></screen>
|
---|
[a9e389d] | 40 |
|
---|
| 41 | </sect1>
|
---|