[3f72a148] | 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">
|
---|
[8f1faf9f] | 8 | <!ENTITY xorg-server-download-ftp "ftp://ftp.x.org/pub/individual/xserver/xorg-server-&xorg-server-version;.tar.bz2">
|
---|
[7be99f2c] | 9 | <!ENTITY xorg-server-md5sum "d070c58a598fb52c5cb86344725c4ad6">
|
---|
| 10 | <!ENTITY xorg-server-size "6.1 MB">
|
---|
| 11 | <!ENTITY xorg-server-buildsize "424 MB">
|
---|
| 12 | <!ENTITY xorg-server-time "5.6 SBU">
|
---|
[3f72a148] | 13 |
|
---|
| 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="xorg7-server" xreflabel="Xorg-Server-&xorg-server-version;">
|
---|
| 17 | <?dbhtml filename="x7server.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
[93f3de5] | 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
[3f72a148] | 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>Xorg-Server-&xorg-server-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="xorg7-server">
|
---|
| 27 | <primary sortas="a-xorg7-server">Xorg Server</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
[5e8be1c] | 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to Xorg-Server</title>
|
---|
| 32 |
|
---|
| 33 | <para>The <application>Xorg</application> Server is the core
|
---|
| 34 | of the X Window system.</para>
|
---|
| 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&xorg-server-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&xorg-server-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &xorg-server-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &xorg-server-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &xorg-server-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &xorg-server-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
| 58 | <!-- Following patch is security related and should be
|
---|
| 59 | fixed for Xorg-7.2 -->
|
---|
| 60 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 61 | <itemizedlist spacing="compact">
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Required patch: <ulink
|
---|
[1270ee2b] | 64 | url="&patch-root;/xorg-server-1.1.0-security-1.patch"/></para>
|
---|
[5e8be1c] | 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect3">Xorg Server Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 71 | <para role="required"><xref linkend="xorg7-font"/></para>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 74 | <para role="optional"><xref linkend="mesalib"/> and
|
---|
| 75 | <xref linkend="luit"/></para>
|
---|
| 76 |
|
---|
| 77 | <para condition="html" role="usernotes">User Notes:
|
---|
| 78 | <ulink url='&blfs-wiki;/Xorg7Server'/></para>
|
---|
| 79 |
|
---|
| 80 | </sect2>
|
---|
[10eeae12] | 81 |
|
---|
[3f72a148] | 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of Xorg Server</title>
|
---|
| 84 |
|
---|
| 85 | <note>
|
---|
| 86 | <para>If you intend to build with <application>Mesa</application>,
|
---|
| 87 | you must have the <application>Mesa</application> source
|
---|
| 88 | directory available when building the
|
---|
| 89 | <application>Xorg-server</application>.</para>
|
---|
| 90 | </note>
|
---|
| 91 |
|
---|
[31a934e] | 92 | <!-- To be removed if/when proposed glibc patch is added to LFS SVN
|
---|
[c23b62b] | 93 | Leave in in for a couple of weeks with 'you may need' and a testcase
|
---|
[31a934e] | 94 | around it to save the support list silly questions. Should remove in
|
---|
[c23b62b] | 95 | a couple of weeks
|
---|
[31a934e] | 96 | <para>Recent <application>Glibc</application> may have a problem with its
|
---|
[c23b62b] | 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
|
---|
[31a934e] | 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>' \
|
---|
[6e37e84] | 105 | hw/xfree86/os-support/linux/lnx_agp.c</userinput></screen>
|
---|
[7be99f2c] | 106 | End remove -->
|
---|
[31a934e] | 107 |
|
---|
[1270ee2b] | 108 | <para>Multiple <ulink url='http://wiki.x.org/wiki/SecurityPage'>security
|
---|
| 109 | vulnerabilities</ulink> have been identified in the xorg-server
|
---|
| 110 | package. Apply a patch to fix these vulnerabilities with the following
|
---|
[dc77783f] | 111 | command:</para>
|
---|
| 112 |
|
---|
[1270ee2b] | 113 | <screen><userinput>patch -Np1 -i ../xorg-server-1.1.0-security-1.patch</userinput></screen>
|
---|
[dc77783f] | 114 |
|
---|
[3f72a148] | 115 | <para>Install the server by running the following commands:</para>
|
---|
| 116 |
|
---|
[7be99f2c] | 117 | <screen><userinput>sed -i \
|
---|
| 118 | 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \
|
---|
| 119 | GL/glx/Makefile.in &&
|
---|
| 120 | sed -i \
|
---|
| 121 | 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/glapi@7' \
|
---|
| 122 | GL/glx/Makefile.in &&
|
---|
| 123 | ./configure $XORG_CONFIG \
|
---|
[3f72a148] | 124 | --with-mesa-source='<replaceable></path/to></replaceable>/Mesa-&mesalib-version;' \
|
---|
| 125 | --with-fontdir=$XORG_PREFIX/lib/X11/fonts \
|
---|
| 126 | --with-module-dir=$XORG_PREFIX/lib/X11/modules \
|
---|
[7be99f2c] | 127 | --with-dri-driver-path=$XORG_PREFIX/lib/X11/modules/dri \
|
---|
[3f72a148] | 128 | --enable-install-setuid &&
|
---|
| 129 | make</userinput></screen>
|
---|
| 130 |
|
---|
[ad54ac8] | 131 | <para>This package does not come with a test suite.</para>
|
---|
| 132 |
|
---|
[3f72a148] | 133 | <para>Now as the <systemitem class="username">root</systemitem>
|
---|
| 134 | user:</para>
|
---|
| 135 |
|
---|
[5e8be1c] | 136 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[3f72a148] | 137 |
|
---|
| 138 | </sect2>
|
---|
| 139 |
|
---|
| 140 | <sect2 role="commands">
|
---|
| 141 | <title>Command Explanations</title>
|
---|
| 142 |
|
---|
[7be99f2c] | 143 | <para><command>sed -i '...' GL/glx/Makefile.in</command>: These commands
|
---|
[c23b62b] | 144 | correct the search path for the <application>Mesa</application> headers.
|
---|
[7be99f2c] | 145 | The 8th and 7th instance of '-I$(top_builddir)' in the existing search
|
---|
| 146 | search path are replaced with <application>Mesa</application> paths.</para>
|
---|
| 147 |
|
---|
[3f72a148] | 148 | <para><parameter>--with-mesa-source=...</parameter>: This switch directs
|
---|
| 149 | the build system to the location of the <application>Mesa</application>
|
---|
[c23b62b] | 150 | source directory. If you wish to build without
|
---|
[3f72a148] | 151 | <application>Mesa</application>, omit this switch.</para>
|
---|
| 152 |
|
---|
[c23b62b] | 153 | <para><parameter>--with-module-dir=...</parameter>: This parameter
|
---|
[7be99f2c] | 154 | sets the destination for the installed modules.</para>
|
---|
| 155 |
|
---|
| 156 | <para><parameter>--with-dri-driver-path=...</parameter>: This is the
|
---|
[04c940c3] | 157 | location of the <application>Mesa</application> DRI drivers.</para>
|
---|
[7be99f2c] | 158 |
|
---|
[3f72a148] | 159 | <para><parameter>--enable-install-setuid</parameter>: The Xorg binary must
|
---|
[c23b62b] | 160 | run as the root user. This switch ensures that the binary is installed
|
---|
[04c940c3] | 161 | setuid when <command>make</command> is run by an unprivileged user.</para>
|
---|
[3f72a148] | 162 |
|
---|
[e257101] | 163 | <para><parameter>--disable-glx</parameter>: Disable building of the GLX
|
---|
[c23b62b] | 164 | extension. This parameter is required if building without
|
---|
[e257101] | 165 | <application>Mesa</application>.</para>
|
---|
| 166 |
|
---|
| 167 | <para><parameter>--disable-dri</parameter>: Disable building of the DRI
|
---|
[7be99f2c] | 168 | extension. This parameter is required if building without
|
---|
[e257101] | 169 | <application>Mesa</application>.</para>
|
---|
| 170 |
|
---|
| 171 | <para><parameter>--disable-xprint</parameter>: Disable building of
|
---|
[c23b62b] | 172 | the <application>Xprint</application> extension and server. This
|
---|
| 173 | parameter is required if building without
|
---|
[7be99f2c] | 174 | <application>Mesa</application>.</para>
|
---|
[e257101] | 175 |
|
---|
[3f72a148] | 176 | </sect2>
|
---|
| 177 |
|
---|
| 178 | </sect1>
|
---|