Difference between revisions of "Xorg7/Xserver"

From CBLFS
Jump to navigationJump to search
(Versioning template and editing.)
(Edited to conform with the template.)
Line 21: Line 21:
 
= Dependencies =
 
= Dependencies =
  
==Required==
+
== Required ==
  
 
Xorg [[Xorg7/Fonts|Fonts]]
 
Xorg [[Xorg7/Fonts|Fonts]]
Line 29: Line 29:
 
[[Xorg7/MesaLib|MesaLib]]
 
[[Xorg7/MesaLib|MesaLib]]
  
= Installation =
+
= Configuration Information =
  
 
'''Note:'''
 
'''Note:'''
If you intend to build with Mesa, you must have the Mesa source directory available when building the Xorg-server.
+
If you intend to build with Mesa, you must have the Mesa source directory available when building the Xorg-server.
  
== Non-Multilib ==
+
{|
 +
|<i>--with-mesa-source=...:</i>This switch directs the build system to the Mesa source directory. If you wish to build without Mesa, omit this switch.
 +
|-valign="top";
 +
|<i>--with-module-dir=...:</i> Sets the destination for the installed modules.
 +
|-valign="top";
 +
|<i>--with-dri-driver-path=...:</i> The location of the Mesa DRI drivers.
 +
|-valign="top";
 +
|<i>--enable-install-setuid:</i> The Xorg binary must run as the root user. This switch ensures that the binary is installed setuid when <b>make</b> is run by an unprivileged user.
 +
|-valign="top";
 +
|<i>--enable-xgl:</i> Build the xgl server.
 +
|-valign="top";
 +
|<i>--enable-xglx:</i> Build the Xglx xgl module.
 +
|-valign="top";
 +
|<i>--enable-xegl:</i> Build the Xegl xgl module.
 +
|-valign="top";
 +
|<i>--enable-builddocs:</i> Causes documentation to be built.
 +
|-valign="top";
 +
|<i>--disable-dri:</i> Disable building of the DRI extension; required if building without Mesa.
 +
|-valign="top";
 +
|<i>--disable-xprint:</i> Disable building of the Xprint extension and server; required if building without Mesa.
 +
|}
 +
 
 +
= Non-Multilib =
  
 
Apply the patch to fix the security vulnerability in the xorg-server.
 
Apply the patch to fix the security vulnerability in the xorg-server.
Line 47: Line 69:
 
     GL/glx/Makefile.in
 
     GL/glx/Makefile.in
  
Compile the server.  Note that you will need to provide the correct path to the Mesa source files on your system if you're building with Mesa.  If not building with Mesa, then don't include ''--with-mesa-source'' in the configure command.
+
Compile the server.  Note that you will need to provide the correct path to the Mesa source files on your system if you're building with Mesa.  If not building with Mesa, then don't pass the <i>--with-mesa-source</i> switch to the configure script.
  
 
   ./configure $XORG_CONFIG \
 
   ./configure $XORG_CONFIG \
Line 61: Line 83:
 
   make install
 
   make install
  
== Multilib ==
+
= Multilib =
  
=== 32-Bit ===
+
== 32Bit ==
  
 
Apply the patch to fix the security vulnerability in the xorg-server.
 
Apply the patch to fix the security vulnerability in the xorg-server.
Line 76: Line 98:
 
   GL/glx/Makefile.in  
 
   GL/glx/Makefile.in  
  
Compile the server.  Note that you will need to provide the correct path to the Mesa source files on your system if you're building with Mesa.  If not building with Mesa, then don't include ''--with-mesa-source'' in the configure command.
+
Compile the server.  Note that you will need to provide the correct path to the Mesa source files on your system if you're building with Mesa.  If not building with Mesa, then don't pass the <i>--with-mesa-source</i> switch to the configure script.
  
 
   PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 CC="gcc ${BUILD32}" \
 
   PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 CC="gcc ${BUILD32}" \
Line 91: Line 113:
 
   make install
 
   make install
  
===N32===
+
== N32 ==
  
 
   To do.
 
   To do.
  
===64-Bit===
+
== 64Bit ==
  
 
Apply the patch to fix the security vulnerability in the xorg-server.
 
Apply the patch to fix the security vulnerability in the xorg-server.
Line 108: Line 130:
 
   GL/glx/Makefile.in
 
   GL/glx/Makefile.in
  
Compile the server.  Note that you will need to provide the correct path to the Mesa source files on your system if you're building with Mesa.  If not building with Mesa, then don't include ''--with-mesa-source'' in the configure command.
+
Compile the server.  Note that you will need to provide the correct path to the Mesa source files on your system if you're building with Mesa.  If not building with Mesa, then don't pass the <i>--with-mesa-source</i> switch to the configure script.
  
 
   PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 CC="gcc ${BUILD64}" \
 
   PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 CC="gcc ${BUILD64}" \
Line 127: Line 149:
 
= Contents =
 
= Contents =
  
* Installed Programs:
+
{| style="text-align: left;"
${XORG_PREFIX}/bin/{ioport,pcitweak,scanpci,xorgcfg,xorgconfig,Xorg,Xvfb,xdmxconfig,
+
|-valign="top"
 +
!Installed Programs:
 +
|${XORG_PREFIX}/bin/{ioport,pcitweak,scanpci,xorgcfg,xorgconfig,Xorg,Xvfb,xdmxconfig,
 
vdltodmx,dmxtodmx,xdmx,dmxwininfo,dmxreconfig,dmxresize,dmxaddscreen,dmxrmscreen,
 
vdltodmx,dmxtodmx,xdmx,dmxwininfo,dmxreconfig,dmxresize,dmxaddscreen,dmxrmscreen,
 
dmsaddinput,dmxrminput,Xdmx,Xprt}
 
dmsaddinput,dmxrminput,Xdmx,Xprt}
 
+
|-valign="top"
* Installed Libraries:
+
!Installed Libraries:
${XORG_PREFIX}/lib/X11/modules/{libddc,libi2c,libint10,librac,libramdac,libshadowfb,libvbe,
+
|${XORG_PREFIX}/lib/X11/modules/{libddc,libi2c,libint10,librac,libramdac,libshadowfb,libvbe,
 
libafb,libcfb,libcfb16,libcfb32,libfb,libmfb,libshadow,libexa,libscanpci,libpcidata,libvgahw,
 
libafb,libcfb,libcfb16,libcfb32,libfb,libmfb,libshadow,libexa,libscanpci,libpcidata,libvgahw,
 
libxaa,libxf1bpp,libxf4bpp,libxf8_16bpp,libxf8_32bpp}.{so,la}
 
libxaa,libxf1bpp,libxf4bpp,libxf8_16bpp,libxf8_32bpp}.{so,la}
 
+
|${XORG_PREFIX}/lib/X11/modules/extensions/{libextmod,libdbe,librecord,libglx,libGLcore,
${XORG_PREFIX}/lib/X11/modules/extensions/{libextmod,libdbe,librecord,libglx,libGLcore,
 
 
libxtrap,libbitmap,libfreetype,libtype1,libdri}.{so,la}
 
libxtrap,libbitmap,libfreetype,libtype1,libdri}.{so,la}
 +
|${XORG_PREFIX}/lib/X11/modules/linux/{libfbdevhw,libdrm}.{so,la}
 +
|${XORG_PREFIX}/lib/X11/modules/multimedia/{bt829_drv,fi1236_drv,msp3430_drv,tda8425_drv,
 +
tda9850_drv,tda9885_drv,uda1380_drv}.{so,la}
 +
|}
  
${XORG_PREFIX}/lib/X11/modules/linux/{libfbdevhw,libdrm}.{so,la}
+
== Short Description ==
 
 
${XORG_PREFIX}/lib/X11/modules/multimedia/{bt829_drv,fi1236_drv,msp3430_drv,tda8425_drv,
 
tda9850_drv,tda9885_drv,uda1380_drv}.{so,la}
 

Revision as of 11:50, 21 December 2006

Download Source:
http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-1.9.2.901.tar.bz2
http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-1.9.2.901.tar.gz
Required Patches:
http://svn.cross-lfs.org/svn/repos/patches/xorg-server/xorg-server-1.9.2.901-setuid-2.patch

Back to Xorg Apps

Introduction to the Xorg Server

The Xorg Server is the backbone of the X Windows system.

Dependencies

Required

Xorg Fonts

Optional

MesaLib

Configuration Information

Note: If you intend to build with Mesa, you must have the Mesa source directory available when building the Xorg-server.

--with-mesa-source=...:This switch directs the build system to the Mesa source directory. If you wish to build without Mesa, omit this switch.
--with-module-dir=...: Sets the destination for the installed modules.
--with-dri-driver-path=...: The location of the Mesa DRI drivers.
--enable-install-setuid: The Xorg binary must run as the root user. This switch ensures that the binary is installed setuid when make is run by an unprivileged user.
--enable-xgl: Build the xgl server.
--enable-xglx: Build the Xglx xgl module.
--enable-xegl: Build the Xegl xgl module.
--enable-builddocs: Causes documentation to be built.
--disable-dri: Disable building of the DRI extension; required if building without Mesa.
--disable-xprint: Disable building of the Xprint extension and server; required if building without Mesa.

Non-Multilib

Apply the patch to fix the security vulnerability in the xorg-server.

 patch -Np1 -i ../xorg-server-1.9.2.901-setuid-2.patch

Correct the Mesa header search path.

 sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \
   GL/glx/Makefile.in &&
 sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/glapi@7' \
   GL/glx/Makefile.in

Compile the server. Note that you will need to provide the correct path to the Mesa source files on your system if you're building with Mesa. If not building with Mesa, then don't pass the --with-mesa-source switch to the configure script.

 ./configure $XORG_CONFIG \
   --with-mesa-source='</path/to>/Mesa-7.9' \
   --with-fontdir=$XORG_PREFIX/lib/X11/fonts \
   --with-module-dir=$XORG_PREFIX/lib/X11/modules \
   --with-dri-driver-path=$XORG_PREFIX/lib/X11/modules/dri \
   --enable-install-setuid &&
 make

There is no test suite for the xorg server. Install the server.

 make install

Multilib

32Bit

Apply the patch to fix the security vulnerability in the xorg-server.

 patch -Np1 -i ../xorg-server-1.9.2.901-setuid-2.patch

Correct the Mesa header search path.

 sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \
 GL/glx/Makefile.in &&
 sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/glapi@7' \
 GL/glx/Makefile.in 

Compile the server. Note that you will need to provide the correct path to the Mesa source files on your system if you're building with Mesa. If not building with Mesa, then don't pass the --with-mesa-source switch to the configure script.

 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 CC="gcc ${BUILD32}" \
 ./configure $XORG_CONFIG32 \
 --with-mesa-source='../Mesa-7.9-32' \
 --with-fontdir=$XORG_PREFIX/lib/X11/fonts \
 --with-module-dir=$XORG_PREFIX/lib/X11/modules \
 --with-dri-driver-path=$XORG_PREFIX/lib/X11/modules/dri \
 --enable-install-setuid &&
 make 

There is no test suite for the xorg server. Install the server.

 make install

N32

 To do.

64Bit

Apply the patch to fix the security vulnerability in the xorg-server.

 patch -Np1 -i ../xorg-server-1.9.2.901-setuid-2.patch

Correct the Mesa header search path.

 sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \
 GL/glx/Makefile.in &&
 sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/glapi@7' \
 GL/glx/Makefile.in

Compile the server. Note that you will need to provide the correct path to the Mesa source files on your system if you're building with Mesa. If not building with Mesa, then don't pass the --with-mesa-source switch to the configure script.

 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 CC="gcc ${BUILD64}" \
 ./configure $XORG_CONFIG64 \
 --with-mesa-source='../Mesa-7.9-64' \
 --with-fontdir=$XORG_PREFIX/lib64/X11/fonts \
 --with-module-dir=$XORG_PREFIX/lib64/X11/modules \
 --with-dri-driver-path=$XORG_PREFIX/lib64/X11/modules/dri \
 --enable-install-setuid --libdir=$XORG_PREFIX/lib64 &&
 make

There is no test suite for the xorg server. Install the server.

 make install

Next install your Drivers

Contents

Installed Programs: ${XORG_PREFIX}/bin/{ioport,pcitweak,scanpci,xorgcfg,xorgconfig,Xorg,Xvfb,xdmxconfig,

vdltodmx,dmxtodmx,xdmx,dmxwininfo,dmxreconfig,dmxresize,dmxaddscreen,dmxrmscreen, dmsaddinput,dmxrminput,Xdmx,Xprt}

Installed Libraries: ${XORG_PREFIX}/lib/X11/modules/{libddc,libi2c,libint10,librac,libramdac,libshadowfb,libvbe,

libafb,libcfb,libcfb16,libcfb32,libfb,libmfb,libshadow,libexa,libscanpci,libpcidata,libvgahw, libxaa,libxf1bpp,libxf4bpp,libxf8_16bpp,libxf8_32bpp}.{so,la}

${XORG_PREFIX}/lib/X11/modules/extensions/{libextmod,libdbe,librecord,libglx,libGLcore,

libxtrap,libbitmap,libfreetype,libtype1,libdri}.{so,la}

${XORG_PREFIX}/lib/X11/modules/linux/{libfbdevhw,libdrm}.{so,la} ${XORG_PREFIX}/lib/X11/modules/multimedia/{bt829_drv,fi1236_drv,msp3430_drv,tda8425_drv,

tda9850_drv,tda9885_drv,uda1380_drv}.{so,la}

Short Description