Difference between revisions of "Xorg7/Xserver"

From CBLFS
Jump to navigationJump to search
(CLFS patch URIs.)
(Versioning template and editing.)
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
|-
 
|-
| http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-1.1.0.tar.bz2
+
| http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-{{Xorg-server-Version}}.tar.bz2
 
|-
 
|-
| http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-1.1.0.tar.gz
+
| http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-{{Xorg-server-Version}}.tar.gz
 
|-
 
|-
 
!Required Patches:
 
!Required Patches:
 
|-
 
|-
| http://svn.cross-lfs.org/svn/repos/patches/xorg-server/xorg-server-1.1.0-setuid-2.patch
+
| http://svn.cross-lfs.org/svn/repos/patches/xorg-server/xorg-server-{{Xorg-server-Version}}-setuid-2.patch
 
|-
 
|-
 
|}
 
|}
Line 15: Line 15:
 
Back to Xorg [[Xorg7/Apps|Apps]]
 
Back to Xorg [[Xorg7/Apps|Apps]]
  
=Xorg Server=
+
= Introduction to the Xorg Server =
  
 
The Xorg Server is the backbone of the X Windows system.
 
The Xorg Server is the backbone of the X Windows system.
  
=Dependencies=
+
= Dependencies =
  
 
==Required==
 
==Required==
Line 25: Line 25:
 
Xorg [[Xorg7/Fonts|Fonts]]
 
Xorg [[Xorg7/Fonts|Fonts]]
  
==Optional==
+
== Optional ==
  
 
[[Xorg7/MesaLib|MesaLib]]
 
[[Xorg7/MesaLib|MesaLib]]
  
=Installation=
+
= Installation =
  
 
'''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==
+
== Non-Multilib ==
  
Apply the patch to fix the security vulnerability in xorg-server-1.1.0.
+
Apply the patch to fix the security vulnerability in the xorg-server.
  
   patch -Np1 -i ../xorg-server-1.1.0-setuid-2.patch
+
   patch -Np1 -i ../xorg-server-{{Xorg-server-Version}}-setuid-2.patch
  
 
Correct the Mesa header search path.
 
Correct the Mesa header search path.
  
   sed -i \
+
   sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \
    's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \
 
 
     GL/glx/Makefile.in &&
 
     GL/glx/Makefile.in &&
   sed -i \
+
   sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/glapi@7' \
    's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/glapi@7' \
 
 
     GL/glx/Makefile.in
 
     GL/glx/Makefile.in
  
Line 52: Line 50:
  
 
   ./configure $XORG_CONFIG \
 
   ./configure $XORG_CONFIG \
     --with-mesa-source='</path/to>/Mesa-6.5' \
+
     --with-mesa-source='</path/to>/Mesa-{{Mesa-Version}}' \
 
     --with-fontdir=$XORG_PREFIX/lib/X11/fonts \
 
     --with-fontdir=$XORG_PREFIX/lib/X11/fonts \
 
     --with-module-dir=$XORG_PREFIX/lib/X11/modules \
 
     --with-module-dir=$XORG_PREFIX/lib/X11/modules \
Line 63: Line 61:
 
   make install
 
   make install
  
==Multilib==
+
== Multilib ==
  
===32-Bit===
+
=== 32-Bit ===
  
==Patch the Package==
+
Apply the patch to fix the security vulnerability in the xorg-server.
  
patch -Np1 -i ../xorg-server-1.1.0-setuid-2.patch &&
+
  patch -Np1 -i ../xorg-server-{{Xorg-server-Version}}-setuid-2.patch
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
 
  
==Build the Package==
+
Correct the Mesa header search path.
  
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 CC="gcc ${BUILD32}" \
+
  sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \
./configure $XORG_CONFIG32 \
+
  GL/glx/Makefile.in &&
--with-mesa-source='../Mesa-6.5-32' \
+
  sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/glapi@7' \
--with-fontdir=$XORG_PREFIX/lib/X11/fonts \
+
  GL/glx/Makefile.in
--with-module-dir=$XORG_PREFIX/lib/X11/modules \
 
--with-dri-driver-path=$XORG_PREFIX/lib/X11/modules/dri \
 
--enable-install-setuid &&
 
make
 
  
==Install the Package==
+
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.
  
make install
+
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 CC="gcc ${BUILD32}" \
 +
  ./configure $XORG_CONFIG32 \
 +
  --with-mesa-source='../Mesa-{{Mesa-Version}}-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===
 
===N32===
 +
 +
  To do.
  
 
===64-Bit===
 
===64-Bit===
  
==Patch the Package==
+
Apply the patch to fix the security vulnerability in the xorg-server.
  
patch -Np1 -i ../xorg-server-1.1.0-setuid-2.patch &&
+
  patch -Np1 -i ../xorg-server-{{Xorg-server-Version}}-setuid-2.patch
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
 
  
==Build the Package==
+
Correct the Mesa header search path.
  
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 CC="gcc ${BUILD64}" \
+
  sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \
./configure $XORG_CONFIG64 \
+
  GL/glx/Makefile.in &&
--with-mesa-source='../Mesa-6.5-64' \
+
  sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/glapi@7' \
--with-fontdir=$XORG_PREFIX/lib64/X11/fonts \
+
  GL/glx/Makefile.in
--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
 
  
==Install the Package==
+
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.
 +
 
 +
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 CC="gcc ${BUILD64}" \
 +
  ./configure $XORG_CONFIG64 \
 +
  --with-mesa-source='../Mesa-{{Mesa-Version}}-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
+
  make install
  
 
Next install your [[Xorg7/Drivers|Drivers]]
 
Next install your [[Xorg7/Drivers|Drivers]]

Revision as of 20:28, 17 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

Installation

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

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 include --with-mesa-source in the configure command.

 ./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

32-Bit

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 include --with-mesa-source in the configure command.

 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.

64-Bit

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 include --with-mesa-source in the configure command.

 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}