Building XFree86 : Building XFree86 From a Source Distribution : How to get the XFree86 3.3.2 source
Previous: Building XFree86 From a Source Distribution
Next: Configuring the source before building

## 1.1. How to get the XFree86 3.3.2 source

There are a few starting points for getting the XFree86 source. One option is to start directly with the XFree86 3.3.2 source distribution. In this case, the procedure is as follows:

- The XFree86 3.3.2 source is contained in files `X332src-1.tgz`, `X332src-2.tgz` and `X332src-3.tgz`. These can be found at ftp://ftp.xfree86.org/pub/XFree86/3.3.2/source/ and similar locations on XFree86 mirror sites. `X332src-2.tgz` contains the fonts and documentation source. `X332src-3.tgz` contains the hardcopy documentation. `X332src-1.tgz` contains everything else. If you don't need the docs or fonts you can get by with only `X332src-1.tgz`.
- Extract each of these files by running the following from a directory on a filesystem containing enough space (the full source requires around 140MB, and a similar amount is required in addition to this for the compiled binaries):

  >     	gzip -d < X332src-1.tgz | tar vxf -
  >     	gzip -d < X332src-2.tgz | tar vxf -
  >     	gzip -d < X332src-3.tgz | tar vxf -

Another option is to start with the X11R6.3 source distribution and patch it up to XFree86 3.3.2. In this case you need to do the following:

- Start with the X Consortium's X11R6.3 distribution with public patches 1 and 2 applied. This can be obtained by following the links from the The Open Group's X home page.
- Get the files `R6.3pl2-3.3.2.diff1.gz`, `R6.3pl2-3.3.2.diff2.gz`, `R6.3pl2-3.3.2.diff3.gz`, `R6.3pl2-3.3.2.diff4.gz`, and `cfont332.tgz` from ftp://ftp.xfree86.org/pub/XFree86/3.3.2/patches/ (or a similar location on mirror sites). To upgrade the source to XFree86 3.3.2, run the following from directory containing the `xc` directory of the X11R6.3 pl2 source tree:

  >     	gzip -d < R6.3pl2-3.3.2.diff1.gz | patch -p0 -E
  >     	gzip -d < R6.3pl2-3.3.2.diff2.gz | patch -p0 -E
  >     	gzip -d < R6.3pl2-3.3.2.diff3.gz | patch -p0 -E
  >     	gzip -d < R6.3pl2-3.3.2.diff4.gz | patch -p0 -E
  >     	gzip -d < cfont332.tgz | tar vxf -

  Be sure to do this with a clean unmodified source tree. If you don't some patches may fail.

A further option is to start with the XFree86 3.3.1 source, and patch it up to XFree86 3.3.2. In this case you need to do the following:

- If using this option, you would already have the XFree86 3.3.1 source.
- Get the files `3.3.1-3.3.2.diff.gz`, and `cfont332.tgz` from ftp://ftp.xfree86.org/pub/XFree86/3.3.2/patches/ (or a similar location on mirror sites). To upgrade the source to XFree86 3.3.2, run the following from directory containing the `xc` directory of the XFree86 3.3.1 source tree:

  >     	gzip -d < 3.3.1-3.3.2.diff1.gz | patch -p0 -E
  >     	rm -fr xc/fonts/bdf/cyrillic
  >     	gzip -d < cfont332.tgz | tar vxf -

  Be sure to do this with a clean unmodified source tree. If you don't some patches may fail.

If you only want to build the XFree86 X servers, you can use a cut-down version of the XFree86 source tree called the ``servers only'' distribution. If you choose this option, do the following:

- Get the `X332servonly.tgz` file from ftp://ftp.xfree86.org/pub/XFree86/3.3.2/source/ (or a similar locations on mirror sites.
- Extract this by running the following:

  >     	gzip -d < X332servonly.tgz | tar vxf -

XFree86 supports a small subset of the X Consortium X11R6.1 contrib distribution. If you wish to build this, you will need at least the following files/directories from that distribution:

> `

>     	contrib/Imakefile
>     	contrib/programs/Imakefile
>     	contrib/programs/ico
>     	contrib/programs/listres
>     	contrib/programs/showfont
>     	contrib/programs/viewres
>     	contrib/programs/xbiff
>     	contrib/programs/xcalc
>     	contrib/programs/xditview
>     	contrib/programs/xedit
>     	contrib/programs/xev
>     	contrib/programs/xeyes
>     	contrib/programs/xfontsel
>     	contrib/programs/xgc
>     	contrib/programs/xload
>     	contrib/programs/xman
>     	contrib/programs/xmessage

> `

You will also need the XFree86 patch `contrib-3.3.2.diff.gz`. To apply the patch, run the following from the directory containing the `contrib` directory:

> `

>     	gzip -d < contrib-3.3.2.diff.gz | patch -p0 -E

> `

Alternatively, you can just get the file `X332contrib.tgz` from the XFree86 source directory, and extract it by running:

> `

>     	gzip -d < X332contrib.tgz | tar vxf -

> `

If you wish to build the xtest distribution, get the source distribution `X33test.tgz` from the XFree86 source directory, and extract it by running:

> `

>     	gzip -d < X33test.tgz | tar vxf -

> `

Note, xtest is no longer part of the core X11 distribution (since X11R6.3).

Building XFree86 : Building XFree86 From a Source Distribution : How to get the XFree86 3.3.2 source
Previous: Building XFree86 From a Source Distribution
Next: Configuring the source before building