I'm writing this update procedure as several ebuilds and dependancies have changed in the past week for compiz-fusion so the current ebuilds are likely to fail.
Note: please only do this if you know what you are doing. This only accounts for updating compiz-fusion upto todays date. If they change further ebuilds or dependancies then this guide will probably not work.
We will start by opening up konqueror as root. It's in kmenu->system->More Applications->File Manager - Super User Mode.
The first ebuild to change is the ccsm-9999.ebuild.
1) In Konqueror, navigate to /usr/portage/local/layman/sabayon/x11-apps/ccsm/
2) Double click on the file ccsm-9999.ebuild.
3) You need to delete the part, near the bottom of the page like this:
src_compile() {
cd ${S}
./autogen.sh || die "autogen failed"
econf || die "econf failed"
emake || die "make failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
}
The new code (near the bottom of the page) should look like this:
src_compile() {
cd ${S}
./setup.py build --prefix=/usr
}
src_install() {
./setup.py install --root=${D} --prefix=/usr
}
4) After you have saved then open up a root konsole in the /usr/portage/local/layman/sabayon/x11-apps/ccsm/ directory and type "ebuild ccsm-9999.ebuild digest" (without quotes)
The second ebuild that needs changing is compiz-9999.ebuild.
This is a similar process to the last one.
1) In Konqueror, navigate to /usr/portage/local/layman/sabayon/x11-wm/compiz/
2) Double click on the file compiz-9999.ebuild.
3) You need to edit the part, near the middle of the page like this:
pkg_setup() {
if ! use gtk && use gnome ; then
eerror "USE=\"gnome\" requires USE=\"gtk\""
eerror "Please build with USE=\"gnome gtk\""
die "Build with USE=\"gnome gtk\""
fi
}
So that it reads like this:
pkg_setup() {
if ! use gtk && use gnome ; then
eerror "USE=\"gnome\" requires USE=\"gtk\""
eerror "Please build with USE=\"gnome gtk\""
die "Build with USE=\"gnome gtk\""
fi
if ! built_with_use "x11-libs/libX11" "xcb" ; then
eerror "Compiz now requires libX11 to be built with xcb."
eerror "Please build libX11 with USE=\"xcb\""
die "Build libX11 with USE=\"xcb\""
fi
}
4) After you have saved then open up a root konsole in the /usr/portage/local/layman/sabayon/x11-wm/compiz/ directory and type "ebuild compiz-9999.ebuild digest" (without quotes)
Now, we have to deal with some new dependanices.
For compiz-9999 to build correctly, we need to install libx11-xcb into your system. This is done by doing the following:
1) Open up a root konsole.
2) type USE="xcb" emerge =libX11-1.1.1-r1 (Note: This is assuming you haven't upgraded your libx11 package since the release of SL 3.4a. If you have then just change the version number to reflect the change)
3) Change back to the kwin window manager and close down fusion-icon.
4) Uninstall everything related to compiz-fusion by typing the following into a root konsole.
emerge -C x11-libs/bcop x11-apps/ccsm x11-wm/compiz x11-libs/compiz-bcop x11-libs/compizconfig-backend-gconf x11-libs/compizconfig-backend-kconfig dev-python/compizconfig-python x11-wm/compiz-fusion x11-plugins/compiz-fusion-plugins-extra x11-plugins/compiz-fusion-plugins-main x11-plugins/compiz-fusion-plugins-threed x11-plugins/compiz-fusion-plugins-unsupported x11-apps/compiz-settings x11-apps/fusion-icon x11-libs/libcompizconfig
5) Now, just to be on the safe side, in your root Konqueror session go to the folder /usr/portage/distfiles/git-src/ and delete everything from there.
6) Now, installing everything to do with compiz by typing the following into a root konsole.
emerge x11-libs/bcop x11-apps/ccsm x11-wm/compiz x11-libs/compiz-bcop x11-libs/compizconfig-backend-gconf x11-libs/compizconfig-backend-kconfig dev-python/compizconfig-python x11-wm/compiz-fusion x11-plugins/compiz-fusion-plugins-extra x11-plugins/compiz-fusion-plugins-main x11-plugins/compiz-fusion-plugins-threed x11-plugins/compiz-fusion-plugins-unsupported x11-apps/compiz-settings x11-apps/fusion-icon x11-libs/libcompizconfig
7) Next, goto kmenu->System and click on Compiz-fusion icon and change back to the Compiz window manager.
I hope I haven't made any mistakes in here and all goes well for you. If you follow line by line then it should work. I hope
All the best
Dave

