Difference between revisions of "Xorg7/Xserver"
From CBLFS
Jump to navigationJump to search (→Install the Package) |
(→Patch the Package) |
||
Line 97: | Line 97: | ||
==Patch the Package== | ==Patch the Package== | ||
− | patch -Np1 -i ../xorg-server-1.1.0-setuid-2.patch && | + | patch -Np1 -i ../xorg-server-1.1.0-setuid-2.patch && |
sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \ | sed -i 's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \ | ||
GL/glx/Makefile.in && | GL/glx/Makefile.in && |
Revision as of 20:18, 13 November 2006
Back to Xorg Apps
Contents
Xorg Server
The Xorg Server is the backbone of the X Windows system.
Dependencies
Required
Xorg Fonts
Optional
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 xorg-server-1.1.0.
patch -Np1 -i ../xorg-server-1.1.0-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-6.5' \ --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
Patch the Package
patch -Np1 -i ../xorg-server-1.1.0-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
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 CC="gcc ${BUILD32}" \ ./configure $XORG_CONFIG32 \ --with-mesa-source='../Mesa-6.5-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
Install the Package
make install
N32
64-Bit
Patch the Package
patch -Np1 -i ../xorg-server-1.1.0-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
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 CC="gcc ${BUILD64}" \ ./configure $XORG_CONFIG64 \ --with-mesa-source='../Mesa-6.5-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=/usr/lib64 && make
Install the Package
make install
Next install your Drivers