Thomas Pegg wrote:
If it will help I have a preliminary addition for the modular x.org
build for the BLFS book here: http://www.tpegg.org/20051203
I have followed roughly the same steps but with --prefix=/usr. The
following things popped up:
1) a lot of "test: too many arguments" errors with bash-3.1. Fixed by
running "autoreconf" in each package. I consider this a packaging bug:
they require libtool-1.5.20 on their development page, but use 1.5.6
themselves.
2) missing libdrm and MesaLib insrtructions. Put them between libs and apps.
libdrm:
autoreconf
libtoolize --force
./configure --prefix=/usr
make
make install
MesaLib:
# Sorry, this wrapped
make linux-dri-x86 OPT_FLAGS="-O2 -pipe -fno-strict-aliasing
-DDEFAULT_DRIVER_DIR=\\\"/usr/lib/xorg/modules/dri\\\"" MKDEP="gcc -M"
MKDEP_OPTIONS="-MF depend"
bin/installmesa /usr
mkdir -p /usr/lib/xorg/modules/dri
install -v lib/*dri* /usr/lib/xorg/modules/dri
Meaning of each flag:
linux-dri-x86: we want libGL with DRI support on x86. There's also
linux-dri-x86_64.
-O2 -pipe -fno-strict-aliasing: My favourite CFLAGS. Used here instead
of the default "-O -g" flags that waste space.
-DDEFAULT_DRIVER_DIR=\\\"/usr/lib/xorg/modules/dri\\\"": where to search
for DRI modules at runtime. The default is /usr/X11R6/lib/modules/dri
MKDEP="gcc -M" MKDEP_OPTIONS="-MF depend": used because the "makedepend"
program is not available at this time.
3) Some modules (e.g. libAppleWM and libWindowsWM) make no sense on
Linux and it is a waste of space to install them.
4) xorg-server puts its log in /usr/var/log/Xorg.log.0. I think it wants
--localstatedir=/var. Also, it is necessary to pass the
--with-mesa-source=/path/to/Mesa-6.4.1 in order to get working OpenGL.
5) There is a difference between the installed files in X.Org 6.9 and
7.0: X.Org 6.9 creates some symlinks from /usr/X11R6/lib/X11 to
/etc/X11, 7.0 doesn't. I assume it's our responsibility to create those
symlinks.
# ls -l /usr/X11R6.old/lib/X11/
total 224
-r--r--r-- 1 root root 58840 Dec 17 16:00 Cards
-r--r--r-- 1 root root 12991 Dec 17 16:00 Options
-r--r--r-- 1 root root 37893 Dec 17 15:58 XErrorDB
-r--r--r-- 1 root root 8298 Dec 17 15:58 XKeysymDB
-r--r--r-- 1 root root 1736 Dec 17 15:58 Xcms.txt
lrwxrwxrwx 1 root root 32 Dec 17 16:00 app-defaults ->
../../../../etc/X11/app-defaults
drwxr-xr-x 2 root root 4096 Dec 17 15:58 config
drwxr-xr-x 5 root root 4096 Dec 17 16:01 doc
drwxr-xr-x 2 root root 4096 Dec 17 16:00 etc
drwxr-xr-x 11 root root 4096 Dec 17 16:01 fonts
lrwxrwxrwx 1 root root 22 Dec 17 15:59 fs -> ../../../../etc/X11/fs
drwxr-xr-x 2 root root 4096 Dec 17 16:00 getconfig
drwxr-xr-x 6 root root 4096 Dec 17 16:00 icons
lrwxrwxrwx 1 root root 28 Dec 17 16:00 lbxproxy ->
../../../../etc/X11/lbxproxy
drwxr-xr-x 58 root root 4096 Dec 17 15:59 locale
lrwxrwxrwx 1 root root 29 Dec 17 15:59 proxymngr ->
../../../../etc/X11/proxymngr
-r--r--r-- 1 root root 17371 Dec 17 15:59 rgb.txt
lrwxrwxrwx 1 root root 26 Dec 17 15:59 rstart ->
../../../../etc/X11/rstart
lrwxrwxrwx 1 root root 23 Dec 17 15:59 twm -> ../../../../etc/X11/twm
drwxr-xr-x 2 root root 4096 Dec 17 15:59 x11perfcomp
lrwxrwxrwx 1 root root 23 Dec 17 15:59 xdm -> ../../../../etc/X11/xdm
drwxr-xr-x 3 root root 4096 Dec 17 15:59 xedit
lrwxrwxrwx 1 root root 25 Dec 17 15:59 xinit ->
../../../../etc/X11/xinit
lrwxrwxrwx 1 root root 23 Dec 17 16:00 xkb -> ../../../../etc/X11/xkb
-r--r--r-- 1 root root 8305 Dec 17 15:59 xman.help
-r--r--r-- 1 root root 18860 Dec 17 16:00 xorg.conf.eg
lrwxrwxrwx 1 root root 27 Dec 17 16:00 xserver ->
../../../../etc/X11/xserver
lrwxrwxrwx 1 root root 23 Dec 17 15:59 xsm -> ../../../../etc/X11/xsm
6) [SHOWSTOPPER] Either libSM or libICE got silently miscompiled. This
results in ICE connections to XFCE session manager being refused with a
long timeout, and finally a "do you really want to quit?" dialog box
appears instead of the usual shutdown dialog that asks whether to end
session, reboot or shut down.
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page