[4ff4e9a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[e77976f] | 8 | <sect1 id="xorg7" xreflabel="Xorg-&xorg7-version;">
|
---|
[4ff4e9a] | 9 | <?dbhtml filename="xorg7.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info>
|
---|
| 12 | <othername>$LastChangedBy$</othername>
|
---|
| 13 | <date>$Date$</date>
|
---|
| 14 | </sect1info>
|
---|
| 15 |
|
---|
[3f72a148] | 16 | <title>Introduction to Xorg-&xorg7-version;</title>
|
---|
[4ff4e9a] | 17 |
|
---|
| 18 | <indexterm zone="xorg7">
|
---|
| 19 | <primary sortas="a-xorg7">Xorg</primary>
|
---|
| 20 | </indexterm>
|
---|
| 21 |
|
---|
[38362ef] | 22 |
|
---|
[3f72a148] | 23 | <para><application>Xorg</application> is a freely redistributable,
|
---|
| 24 | open-source implementation of the <application>X</application> Window
|
---|
| 25 | System. This system provides a client/server interface between display
|
---|
| 26 | hardware (the mouse, keyboard, and video displays) and the desktop
|
---|
| 27 | environment, while also providing both the windowing infrastructure and a
|
---|
| 28 | standardized application interface (API).</para>
|
---|
| 29 |
|
---|
| 30 | <para condition="html" role="usernotes">User Notes:
|
---|
[ea9f7caf] | 31 | <ulink url='&blfs-wiki;/Xorg7'/></para>
|
---|
[3f72a148] | 32 |
|
---|
| 33 | <bridgehead renderas="sect3">Xorg Download and Installation
|
---|
| 34 | Instructions</bridgehead>
|
---|
| 35 |
|
---|
[e257101] | 36 | <para>Xorg-7.0.0 introduced a completely auto-tooled, modular build system.
|
---|
[3f72a148] | 37 | With the new modular build system, it is no longer possible to download
|
---|
| 38 | the entire package in a single file. In fact, there may be as many as
|
---|
[7be99f2c] | 39 | 293 files that need to be fetched from the download location. To assist
|
---|
[9f12e36] | 40 | with such a large task, installing <xref linkend="wget"/> is strongly
|
---|
[3f72a148] | 41 | recommended for downloading the needed files. A complete
|
---|
[9f12e36] | 42 | <application>wget</application> file list is provided for each section
|
---|
[3f72a148] | 43 | that includes multiple packages.</para>
|
---|
| 44 |
|
---|
| 45 | <para>Given the number of packages available, deciding which packages you
|
---|
| 46 | need to install for your particular setup may seem a bit overwhelming at
|
---|
[9f12e36] | 47 | first. Take a look at
|
---|
| 48 | <ulink url="http://lists.x.org/archives/xorg-modular/2005-November/000801.html">this thread</ulink>
|
---|
[3f72a148] | 49 | to get an idea of what you will need. If you are
|
---|
| 50 | unsure, you should install all packages at the cost of extra
|
---|
| 51 | disk space.</para>
|
---|
| 52 |
|
---|
| 53 | <note>
|
---|
| 54 | <para>Even if you intend to download only the necessary packages, you
|
---|
[9f12e36] | 55 | should download the wget file lists. The list of files are ordered by
|
---|
| 56 | dependency, and the package versions listed in the files are known to
|
---|
| 57 | work well with each other. Newer packages are likely intended for the
|
---|
[7be99f2c] | 58 | next release of <application>Xorg</application> and have already proved
|
---|
| 59 | to be incompatible with current versions of software installed in BLFS.
|
---|
[9f12e36] | 60 | The installed size of <application>Xorg</application> can be reduced
|
---|
[7be99f2c] | 61 | considerably by installing only the packages that you will need and use,
|
---|
[9f12e36] | 62 | however, the BLFS book cannot account for all dependencies and build
|
---|
| 63 | options for the individual <application>Xorg</application> packages.
|
---|
[7be99f2c] | 64 | The instructions assume that all packages have been built. A
|
---|
[9f12e36] | 65 | <ulink url="http://wiki.linuxfromscratch.org/blfs/wiki/Xorg-&xorg7-version;">wiki</ulink>
|
---|
| 66 | page containing dependency information is under development. You are
|
---|
| 67 | encouraged to add to these pages if you discover additional information
|
---|
| 68 | that may be helpful to other users who selectively install individual
|
---|
[3f72a148] | 69 | packages.</para>
|
---|
| 70 | </note>
|
---|
| 71 |
|
---|
| 72 | <para>Additionally, because of the large number of repetitive commands,
|
---|
| 73 | you are encouraged to script the build. For most sections, you can use
|
---|
[9f12e36] | 74 | a script with commands similar to the following, to compile and install
|
---|
[3f72a148] | 75 | all packages in a wget file list:</para>
|
---|
| 76 |
|
---|
| 77 | <screen>bash -e #exit on all errors
|
---|
| 78 | for package in $(cat ../wgetlist.wget)
|
---|
[4ff4e9a] | 79 | do
|
---|
[3f72a148] | 80 | packagedir=$(echo $package | sed 's/.tar.bz2//')
|
---|
| 81 | tar -xf $package
|
---|
| 82 | cd $packagedir
|
---|
| 83 | ./configure $XORG_CONFIG
|
---|
| 84 | make
|
---|
[4ff4e9a] | 85 | make install
|
---|
[3f72a148] | 86 | cd ..
|
---|
[4ff4e9a] | 87 | rm -rf $packagedir
|
---|
[3f72a148] | 88 | rm -f $package
|
---|
[4ff4e9a] | 89 | done 2>&1 | tee -a ../xorg-compile.log #log the entire loop</screen>
|
---|
| 90 |
|
---|
[3f72a148] | 91 | <para>The above shell will exit immediately on error. If it runs to
|
---|
[96ffdca] | 92 | completion, you should manually exit the shell before continuing on to
|
---|
[3f72a148] | 93 | the next set of instructions.</para>
|
---|
[4ff4e9a] | 94 |
|
---|
| 95 | <sect2>
|
---|
| 96 | <title>Setting up the Xorg Build Environment</title>
|
---|
| 97 |
|
---|
[3f72a148] | 98 | <para>First, you'll need to create a working directory:</para>
|
---|
[4ff4e9a] | 99 |
|
---|
| 100 | <screen><userinput>mkdir xc &&
|
---|
| 101 | cd xc</userinput></screen>
|
---|
| 102 |
|
---|
[190568b] | 103 | <para>As with previous releases of the X Window System, it may be
|
---|
| 104 | desirable to install <application>Xorg</application> into an alternate
|
---|
| 105 | prefix. This is no longer common practice among Linux distributions.
|
---|
[4ff4e9a] | 106 | The common installation prefix for <application>Xorg</application> on
|
---|
[190568b] | 107 | Linux is <filename class="directory">/usr</filename>. There is no
|
---|
| 108 | standard alternate prefix, nor is there any exception in the current
|
---|
| 109 | revision of the Filesystem Hierarchy Standard for Release 7 of the X
|
---|
| 110 | Window System. Alan Coopersmith of Sun Microsystems, has recently
|
---|
| 111 | stated "At Sun, we were using
|
---|
| 112 | <filename class="directory">/usr/X11</filename> and plan to stick with
|
---|
| 113 | it." Only the <filename class="directory">/opt/*</filename> prefix or
|
---|
| 114 | the <filename class="directory">/usr</filename> prefix adhere to the
|
---|
[8222555] | 115 | current FHS guidelines.</para>
|
---|
[190568b] | 116 |
|
---|
| 117 | <para>Choose your installation prefix, and set the
|
---|
| 118 | <envar>XORG_PREFIX</envar> variable with the following
|
---|
[4ff4e9a] | 119 | command:</para>
|
---|
| 120 |
|
---|
[3f72a148] | 121 | <screen><userinput>export XORG_PREFIX="<replaceable><PREFIX></replaceable>"</userinput></screen>
|
---|
[4ff4e9a] | 122 |
|
---|
[190568b] | 123 | <para>Throughout these instructions, you will use the same three
|
---|
| 124 | <command>configure</command> switches for all of the packages. Create the
|
---|
| 125 | <envar>XORG_CONFIG</envar> variable to use for substitution:</para>
|
---|
[4ff4e9a] | 126 |
|
---|
[7be99f2c] | 127 | <screen><userinput>export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
|
---|
| 128 | --localstatedir=/var --datadir=$XORG_PREFIX/lib"</userinput></screen>
|
---|
[4ff4e9a] | 129 |
|
---|
[3f72a148] | 130 | <para>If you've decided to use an alternate prefix, be sure to add
|
---|
| 131 | <filename class="directory">
|
---|
| 132 | <replaceable><PREFIX></replaceable>/bin</filename> to your
|
---|
| 133 | <envar>PATH</envar> environment variable and <filename class="directory">
|
---|
| 134 | <replaceable><PREFIX></replaceable>/lib/pkgconfig</filename>
|
---|
[96ffdca] | 135 | to your <envar>PKG_CONFIG_PATH</envar> variable. For detailed instructions,
|
---|
[3f72a148] | 136 | see <xref linkend="postlfs-config-profile"/>. You should also add
|
---|
| 137 | <filename class="directory">
|
---|
[9f12e36] | 138 | <replaceable><PREFIX></replaceable>/lib</filename> to the
|
---|
[3f72a148] | 139 | <filename>/etc/ld.so.conf</filename> file.</para>
|
---|
[4ff4e9a] | 140 |
|
---|
| 141 | </sect2>
|
---|
| 142 |
|
---|
[190568b] | 143 | </sect1>
|
---|