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 | <!ENTITY xorg-server-download-http "http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-&xorg-server-version;.tar.bz2">
|
---|
8 | <!ENTITY xorg-server-download-ftp "">
|
---|
9 | <!ENTITY xorg-server-md5sum "5cd3316f07ed32a05cbd69e73a71bc74">
|
---|
10 | <!ENTITY xorg-server-size "5.8 MB">
|
---|
11 | <!ENTITY xorg-server-buildsize "413 MB">
|
---|
12 | <!ENTITY xorg-server-time "5.96 SBU">
|
---|
13 |
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="xorg7-server" xreflabel="Xorg-Server-&xorg-server-version;">
|
---|
17 | <?dbhtml filename="x7server.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy: dj $</othername>
|
---|
21 | <date>$Date: 2006-04-15 23:04:51 -0500 (Sat, 15 Apr 2006) $</date>
|
---|
22 | <!-- <keywordset>
|
---|
23 | <keyword role="package">X11R&xorg7-version;-src.tar</keyword>
|
---|
24 | <keyword role="ftpdir">Xorg7</keyword>
|
---|
25 | </keywordset>
|
---|
26 | ########## Need a way to fix this on the mirrors ##########
|
---|
27 | ##### Maybe a single tarball is the way to handle it ######
|
---|
28 | -->
|
---|
29 |
|
---|
30 |
|
---|
31 | </sect1info>
|
---|
32 |
|
---|
33 | <title>Xorg-Server-&xorg-server-version;</title>
|
---|
34 |
|
---|
35 | <indexterm zone="xorg7-server">
|
---|
36 | <primary sortas="a-xorg7-server">Xorg Server</primary>
|
---|
37 | </indexterm>
|
---|
38 |
|
---|
39 | <para>The <application>Xorg</application> Server is the core
|
---|
40 | of the X Window system.</para>
|
---|
41 |
|
---|
42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
43 | <itemizedlist spacing="compact">
|
---|
44 | <listitem>
|
---|
45 | <para>Download (HTTP): <ulink url="&xorg-server-download-http;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download (FTP): <ulink url="&xorg-server-download-ftp;"/></para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download MD5 sum: &xorg-server-md5sum;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Download size: &xorg-server-size;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated disk space required: &xorg-server-buildsize;</para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>Estimated build time: &xorg-server-time;</para>
|
---|
61 | </listitem>
|
---|
62 | </itemizedlist>
|
---|
63 |
|
---|
64 | <bridgehead renderas="sect3">Xorg Server Dependencies</bridgehead>
|
---|
65 |
|
---|
66 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
67 | <para role="required"><xref linkend="xorg7-font"/></para>
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
70 | <para><xref linkend="mesalib"/> and
|
---|
71 | <xref linkend="luit"/></para>
|
---|
72 |
|
---|
73 | <para condition="html" role="usernotes">User Notes:
|
---|
74 | <ulink url='&blfs-wiki;/Xorg7Server'/></para>
|
---|
75 |
|
---|
76 | <sect2 role="installation">
|
---|
77 | <title>Installation of Xorg Server</title>
|
---|
78 |
|
---|
79 | <note>
|
---|
80 | <para>If you intend to build with <application>Mesa</application>,
|
---|
81 | you must have the <application>Mesa</application> source
|
---|
82 | directory available when building the
|
---|
83 | <application>Xorg-server</application>.</para>
|
---|
84 | </note>
|
---|
85 |
|
---|
86 | <para>A serious security vulnerability was recently discovered that will
|
---|
87 | allow a malicious user to execute code as the root user. Fix the
|
---|
88 | vulnerability with the following command:</para>
|
---|
89 |
|
---|
90 | <screen><userinput>sed -i 's/ntri & sizeof/ntri * sizeof/' render/mitri.c</userinput></screen>
|
---|
91 |
|
---|
92 | <!-- To be removed if/when proposed glibc patch is added to LFS SVN
|
---|
93 | Leave in in for a couple of weeks with 'you may need' and a testcase
|
---|
94 | around it to save the support list silly questions. Should remove in
|
---|
95 | a couple of weeks -->
|
---|
96 | <para>Recent <application>Glibc</application> may have a problem with its
|
---|
97 | installed <filename>sys/kd.h</filename> file. This has recently been
|
---|
98 | fixed in LFS SVN. Execute the following commands to work around a
|
---|
99 | broken <filename>kd.h</filename> file. The commands will only make the
|
---|
100 | modification if needed:</para>
|
---|
101 |
|
---|
102 | <screen><userinput>grep "__undef_LINUX" \
|
---|
103 | /usr/include/sys/kd.h 2>&1 > /dev/null || \
|
---|
104 | sed -i.bak '/CONFIG_H/i #include <linux/types.h>' \
|
---|
105 | programs/Xserver/hw/xfree86/os-support/linux/lnx_agp.c</userinput></screen>
|
---|
106 | <!-- End remove -->
|
---|
107 |
|
---|
108 | <para>Install the server by running the following commands:</para>
|
---|
109 |
|
---|
110 | <screen><userinput>./configure $XORG_CONFIG \
|
---|
111 | --with-mesa-source='<replaceable></path/to></replaceable>/Mesa-&mesalib-version;' \
|
---|
112 | --with-fontdir=$XORG_PREFIX/lib/X11/fonts \
|
---|
113 | --with-module-dir=$XORG_PREFIX/lib/X11/modules \
|
---|
114 | --enable-install-setuid &&
|
---|
115 | make</userinput></screen>
|
---|
116 |
|
---|
117 | <para>Now as the <systemitem class="username">root</systemitem>
|
---|
118 | user:</para>
|
---|
119 |
|
---|
120 | <screen><userinput role="root">make install</userinput></screen>
|
---|
121 |
|
---|
122 | </sect2>
|
---|
123 |
|
---|
124 | <sect2 role="commands">
|
---|
125 | <title>Command Explanations</title>
|
---|
126 |
|
---|
127 | <para><parameter>--with-mesa-source=...</parameter>: This switch directs
|
---|
128 | the build system to the location of the <application>Mesa</application>
|
---|
129 | source directory. If you wish to build without
|
---|
130 | <application>Mesa</application>, omit this switch.</para>
|
---|
131 |
|
---|
132 | <para><parameter>--enable-install-setuid</parameter>: The Xorg binary must
|
---|
133 | run as the root user. This switch ensures that the binary is installed
|
---|
134 | setuid when the build is done by an unprivileged user.</para>
|
---|
135 |
|
---|
136 | <para><parameter>--disable-glx</parameter>: Disable building of the GLX
|
---|
137 | extension. This is required if building without
|
---|
138 | <application>Mesa</application>.</para>
|
---|
139 |
|
---|
140 | <para><parameter>--disable-dri</parameter>: Disable building of the DRI
|
---|
141 | extension. This is required if building without
|
---|
142 | <application>Mesa</application>.</para>
|
---|
143 |
|
---|
144 | <para><parameter>--disable-xprint</parameter>: Disable building of
|
---|
145 | the <application>Xprint</application> extension and server. This is
|
---|
146 | required if building without <application>Mesa</application>.</para>
|
---|
147 |
|
---|
148 | </sect2>
|
---|
149 |
|
---|
150 | </sect1>
|
---|