How to get the XFree86 3.3 source

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

## 1.1. How to get the XFree86 3.3 source

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

- The XFree86 3.3 source is contained in files `X33src-1.tgz`, `X33src-2.tgz` and `X33src-3.tgz`. These can be found at ftp://ftp.xfree86.org/pub/XFree86/3.3/source/ and similar locations on XFree86 mirror sites. `X33src-2.tgz` contains the fonts and documentation source. `X33src-3.tgz` contains the hardcopy documentation. `X33src-1.tgz` contains everything else. If you don't need the docs or fonts you can get by with only `X33src-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 130MB, and a similar amount is required in addition to this for the compiled binaries):

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

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

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

  >     	gzip -d < R6.3pl1-3.3.diff1.gz | patch -p0 -E
  >     	gzip -d < R6.3pl1-3.3.diff2.gz | patch -p0 -E
  >     	gzip -d < R6.3pl1-3.3.diff3.gz | patch -p0 -E
  >     	gzip -d < R6.3pl1-3.3.diff4.gz | patch -p0 -E
  >     	gzip -d < cfont33.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 `X33servonly.tgz` file from ftp://ftp.xfree86.org/pub/XFree86/3.3/source/ (or a similar locations on mirror sites.
- Extract this by running the following:

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

There is no patch to upgrade from the XFree86 3.2 source to 3.3. The reason for this is the large number of changes associated with the move from X11R6.1 to X11R6.3.

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.diff.gz`. To apply the patch, run the following from the directory containing the `contrib` directory:

> `

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

> `

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

> `

>     	gzip -d < X33contrib.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 source
Previous: Building XFree86 From a Source Distribution
Next: Configuring the source before building