1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 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 | <sect1 id="xorg7" xreflabel="Xorg-&xorg7-version;">
|
---|
9 | <?dbhtml filename="xorg7.html"?>
|
---|
10 |
|
---|
11 | <sect1info>
|
---|
12 | <othername>$LastChangedBy$</othername>
|
---|
13 | <date>$Date$</date>
|
---|
14 | </sect1info>
|
---|
15 |
|
---|
16 | <title>Introduction to Xorg-&xorg7-version;</title>
|
---|
17 |
|
---|
18 | <indexterm zone="xorg7">
|
---|
19 | <primary sortas="a-xorg7">Xorg</primary>
|
---|
20 | </indexterm>
|
---|
21 |
|
---|
22 |
|
---|
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:
|
---|
31 | <ulink url='&blfs-wiki;/Xorg7'/></para>
|
---|
32 |
|
---|
33 | <bridgehead renderas="sect3">Xorg Download and Installation
|
---|
34 | Instructions</bridgehead>
|
---|
35 |
|
---|
36 | <para>Xorg-7.0.0 introduced a completely auto-tooled, modular build system.
|
---|
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
|
---|
39 | 293 files that need to be fetched from the download location. To assist
|
---|
40 | with such a large task, installing <xref linkend="wget"/> is strongly
|
---|
41 | recommended for downloading the needed files. A complete
|
---|
42 | <application>wget</application> file list is provided for each section
|
---|
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
|
---|
47 | first. Take a look at
|
---|
48 | <ulink url="http://wiki.x.org/wiki/ModuleDescriptions">this page</ulink>
|
---|
49 | and
|
---|
50 | <ulink url="http://lists.x.org/archives/xorg-modular/2005-November/000801.html">this thread</ulink>
|
---|
51 | to get an idea of what you will need. If you are unsure, you should
|
---|
52 | install all packages at the cost of extra disk space. To see which packages
|
---|
53 | have changed between releases of Xorg, see the upstream
|
---|
54 | <ulink url="http://xorg.freedesktop.org/releases/X11R&xorg7-version;/src/update/">update</ulink>
|
---|
55 | and
|
---|
56 | <ulink url="http://xorg.freedesktop.org/releases/X11R&xorg7-version;/src/deprecated/">deprecated</ulink>
|
---|
57 | directories.</para>
|
---|
58 |
|
---|
59 | <note>
|
---|
60 | <para>Even if you intend to download only the necessary packages, you
|
---|
61 | should download the wget file lists. The list of files are ordered by
|
---|
62 | dependency, and the package versions listed in the files are known to
|
---|
63 | work well with each other. Further, the wget file lists contain comments
|
---|
64 | for specific packages that are deprecated or are not recommended to
|
---|
65 | install. Newer packages are likely intended for the
|
---|
66 | next release of <application>Xorg</application> and have already proved
|
---|
67 | to be incompatible with current versions of software installed in BLFS.
|
---|
68 | The installed size of <application>Xorg</application> can be reduced
|
---|
69 | considerably by installing only the packages that you will need and use,
|
---|
70 | however, the BLFS book cannot account for all dependencies and build
|
---|
71 | options for the individual <application>Xorg</application> packages.
|
---|
72 | The instructions assume that all packages have been built. A
|
---|
73 | <ulink url="&blfs-wiki;/Xorg7">wiki</ulink>
|
---|
74 | page containing dependency information is under development. You are
|
---|
75 | encouraged to add to these pages if you discover additional information
|
---|
76 | that may be helpful to other users who selectively install individual
|
---|
77 | packages.</para>
|
---|
78 | </note>
|
---|
79 |
|
---|
80 | <para>Additionally, because of the large number of repetitive commands,
|
---|
81 | you are encouraged to script the build. For most sections, you can use
|
---|
82 | a script with commands similar to the following, to compile and install
|
---|
83 | all packages in a wget file list:</para>
|
---|
84 |
|
---|
85 | <screen>bash -e #exit on all errors
|
---|
86 | section=proto
|
---|
87 | version=&xorg7-version;
|
---|
88 | mkdir $section
|
---|
89 | cd $section
|
---|
90 |
|
---|
91 | # download and check packages
|
---|
92 | grep -v '^#' ../${section}-${version}.wget | wget -i- -c \
|
---|
93 | -B http://xorg.freedesktop.org/releases/individual/${section}/
|
---|
94 | md5sum -c ../${section}-${version}.md5
|
---|
95 |
|
---|
96 | # build packages
|
---|
97 | for package in $(grep -v '^#' ../${section}-${version}.wget)
|
---|
98 | do
|
---|
99 | packagedir=$(echo $package | sed 's/.tar.bz2//')
|
---|
100 | tar -xf $package
|
---|
101 | cd $packagedir
|
---|
102 | ./configure $XORG_CONFIG
|
---|
103 | make
|
---|
104 | make install
|
---|
105 | cd ..
|
---|
106 | rm -rf $packagedir
|
---|
107 | rm -f $package
|
---|
108 | done 2>&1 | tee -a ../xorg-${section}-compile.log #log the entire loop</screen>
|
---|
109 |
|
---|
110 | <para>The above shell will exit immediately on error. If it runs to
|
---|
111 | completion, you should manually exit the shell before continuing on to
|
---|
112 | the next set of instructions.</para>
|
---|
113 |
|
---|
114 | <sect2>
|
---|
115 | <title>Setting up the Xorg Build Environment</title>
|
---|
116 |
|
---|
117 | <para>First, you'll need to create a working directory:</para>
|
---|
118 |
|
---|
119 | <screen><userinput>mkdir xc &&
|
---|
120 | cd xc</userinput></screen>
|
---|
121 |
|
---|
122 | <para>As with previous releases of the X Window System, it may be
|
---|
123 | desirable to install <application>Xorg</application> into an alternate
|
---|
124 | prefix. This is no longer common practice among Linux distributions.
|
---|
125 | The common installation prefix for <application>Xorg</application> on
|
---|
126 | Linux is <filename class="directory">/usr</filename>. There is no
|
---|
127 | standard alternate prefix, nor is there any exception in the current
|
---|
128 | revision of the Filesystem Hierarchy Standard for Release 7 of the X
|
---|
129 | Window System. Alan Coopersmith of Sun Microsystems, has recently
|
---|
130 | stated "At Sun, we were using
|
---|
131 | <filename class="directory">/usr/X11</filename> and plan to stick with
|
---|
132 | it." Only the <filename class="directory">/opt/*</filename> prefix or
|
---|
133 | the <filename class="directory">/usr</filename> prefix adhere to the
|
---|
134 | current FHS guidelines.</para>
|
---|
135 |
|
---|
136 | <para>Choose your installation prefix, and set the
|
---|
137 | <envar>XORG_PREFIX</envar> variable with the following
|
---|
138 | command:</para>
|
---|
139 |
|
---|
140 | <screen><userinput>export XORG_PREFIX="<replaceable><PREFIX></replaceable>"</userinput></screen>
|
---|
141 |
|
---|
142 | <para>Throughout these instructions, you will use the following
|
---|
143 | <command>configure</command> switches for all of the packages. Create the
|
---|
144 | <envar>XORG_CONFIG</envar> variable to use for this parameter
|
---|
145 | substitution:</para>
|
---|
146 |
|
---|
147 | <screen><userinput>export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
|
---|
148 | --mandir=$XORG_PREFIX/share/man --localstatedir=/var"</userinput></screen>
|
---|
149 |
|
---|
150 | <note>
|
---|
151 | <para>Make sure that you also add these variables to your personal or
|
---|
152 | system-wide profile as they are used throughout this book. See
|
---|
153 | <xref linkend="postlfs-config-profile"/> for more information.</para>
|
---|
154 | </note>
|
---|
155 |
|
---|
156 | <para>If you've decided to use an alternate prefix, be sure to add
|
---|
157 | <filename class="directory">
|
---|
158 | $XORG_PREFIX/bin</filename> to your
|
---|
159 | <envar>PATH</envar> environment variable and <filename class="directory">
|
---|
160 | $XORG_PREFIX/lib/pkgconfig</filename>
|
---|
161 | to your <envar>PKG_CONFIG_PATH</envar> variable. For detailed instructions,
|
---|
162 | see <xref linkend="postlfs-config-profile"/>. You should also add
|
---|
163 | <filename class="directory">
|
---|
164 | $XORG_PREFIX/lib</filename> to the
|
---|
165 | <filename>/etc/ld.so.conf</filename> file and <filename class="directory">
|
---|
166 | $XORG_PREFIX/share/man</filename> as
|
---|
167 | a MANDATORY_MANPATH in <filename>/etc/man_db.conf</filename>.</para>
|
---|
168 |
|
---|
169 | <para>Packages in Xorg store their configuration files in
|
---|
170 | <filename class="directory">$XORG_PREFIX/lib/X11</filename> by default.
|
---|
171 | This is strictly against FHS guidelines. To simplify installation,
|
---|
172 | create the proper installation directories in
|
---|
173 | <filename class="directory">/etc/X11</filename> and create symlinks
|
---|
174 | in <filename class="directory">$XORG_PREFIX/lib/X11</filename> to
|
---|
175 | satisfy the installation. Execute the following commands as the
|
---|
176 | <systemitem class="username">root</systemitem> user:</para>
|
---|
177 |
|
---|
178 | <screen role="root"><userinput>
|
---|
179 | install -v -m755 -d \
|
---|
180 | /etc/X11/{app-defaults,fs,twm,xdm,xinit,xkb,xsm} &&
|
---|
181 |
|
---|
182 | install -v -m755 -d $XORG_PREFIX/lib/X11 &&
|
---|
183 |
|
---|
184 | for link in \
|
---|
185 | /etc/X11/{app-defaults,fs,twm,xdm,xinit,xkb,xsm}
|
---|
186 | do
|
---|
187 | ln -sv $link $XORG_PREFIX/lib/X11
|
---|
188 | done
|
---|
189 | </userinput></screen>
|
---|
190 |
|
---|
191 | </sect2>
|
---|
192 |
|
---|
193 | </sect1>
|
---|