Well, in gutsy I got libx11 to build with xcb, and finally built compiz-fusion (and everything else) using treviño's script.
Everything is working. What I did:
mkdir build
cd build
apt-get source libx11
sudo apt-get build-dep libx11
git-clone git://anongit.freedesktop.org/git/xorg/lib/libX11
cd libX11
./autogen.sh --with-xcb
cp -r ../libx11-1.1.1/debian .
Then I edited debian/rules to enable xcb, replacing "--without xcb" with "--with xcb" and commented out two entries with "dh_installchangelogs -s ChangeLog".
I then edited debian/patches/series to remove the following patches:
016_greek_polytonic_Compose.diff
021_compose_fclose.diff
104_integer_overflows.diff
I also had to remove the following entries from debian/libx11-data.install:
usr/share/X11/locale/ru_RU.UTF-8/XI18N_OBJS
usr/share/X11/locale/ru_RU.UTF-8/XLC_LOCALE
usr/share/X11/locale/ru_RU.UTF-8/Compose
I then edited debian/changelog to change the version of the generated package (I added gitddmmyyyy to the end of the version string in the first line).
Finally, a fakeroot debian/rules clean; fakeroot debian/rules binary generated the debian packages for libx11, libx11-xcb, etc. After I installed these versions (using dpkg -i *deb) I was able to build the latest compiz from git using treviño's makefusiondebs script. After restarting X, everything is working well.
I forgot, you have to append the following lines to debian/control:
Package: libx11-xcb1
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Conflicts: libx11-6 (<< 2:1.1)
Pre-Depends: x11-common (>= 1:7.0.0)
Description: Xlib/XCB interface library
libX11-xcb provides functions needed by clients which take advantage of
Xlib/XCB to mix calls to both Xlib and XCB over the same X connection.
.
More information about X.Org can be found at:
<URL:
http://xorg.freedesktop.org>
<URL:
http://lists.freedesktop.org/mailman/listinfo/xorg>
.
More information about XCB can be found at:
<URL:
http://xcb.freedesktop.org>
Package: libx11-xcb1-dbg
Section: libdevel
Architecture: any
Priority: extra
Depends: ${shlibs:Depends}, ${misc:Depends}, libx11-xcb1 (= ${binary:Version})
Description: Xlib/XCB interface library (debug package)
libX11-xcb provides functions needed by clients which take advantage of
Xlib/XCB to mix calls to both Xlib and XCB over the same X connection.
.
This package contains the debug versions of the library found in
libx11-xcb1. Non-developers likely have little use for this package.
.
More information about X.Org can be found at:
<URL:
http://xorg.freedesktop.org>
<URL:
http://lists.freedesktop.org/mailman/listinfo/xorg>
.
More information about XCB can be found at:
<URL:
http://xcb.freedesktop.org>