How to Update Compiz Fusion

Compiz, KDE, Gnome, Fluxbox, etc...

Moderator: Moderators

How to Update Compiz Fusion

Postby wolfden » Tue Aug 28, 2007 8:28

Last Updated 04/25/08

First lets make sure your /etc/portage/package.keywords is setup correctly, it should look like below so add to it if not:
Code: Select all
x11-plugins/compiz-fusion-plugins-atlantis **
x11-plugins/compiz-fusion-plugins-threed **
x11-libs/compiz-bcop **
x11-apps/fusion-icon **
x11-libs/bcop **
dev-python/compizconfig-python **
x11-wm/compiz-fusion **
x11-wm/compiz **
x11-plugins/compiz-plugins-screensaver **
x11-plugins/compiz-fusion-plugins-wallpaper **
x11-plugins/compiz-fusion-plugins-main **
x11-plugins/compiz-fusion-plugins-extra **
x11-plugins/compiz-fusion-plugins-unsupported **
x11-wm/emerald **
x11-themes/emerald-themes **
x11-apps/ccsm **
x11-libs/libcompizconfig **
x11-libs/compizconfig-backend-gconf **
x11-libs/compizconfig-backend-kconfig **


Let's make sure your portage is updated
Code: Select all
emerge --sync && layman -S


Make sure dev-utils/git is installed
Code: Select all
emerge -s dev-util/git

if it shows installed you are good to go, if not
Code: Select all
emerge dev-util/git


So lets get going shall we?

First lets get the desktop-effects overlay <--brand new overlay for compiz packages
Code: Select all
su

Code: Select all
enter password

Code: Select all
layman -Lka desktop-effects

than lets remove the sabayon overlay so we make sure we get the latest compiz-fusion
Code: Select all
layman -d sabayon

than
Code: Select all
rm -rf /usr/portage/distfiles/git-src/*


If you haven't changed your use flags for x11-libs/libX11 you will need to:
Code: Select all
echo "x11-libs/libX11 xcb" >> /etc/portage/package.use

than reinstall it so it builds with the use flag
Code: Select all
emerge x11-libs/libX11


Than We do this:
Code: Select all
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 11-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/fusion-icon x11-libs/libcompizconfig x11-plugins/compiz-users-pafy-screensaver x11-plugins/compiz-fusion-plugins-atlantis


Now thanks to our C-F guru trench- in IRC he made a script to make this easier so you need to replace your old script with the new below:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
IF YOU ARE NOT RUNNING KDE4 THAN WE NEED TO CHANGE YOUR PACKAGE.USE
Code: Select all
echo "x11-wm/compiz -kde4" >> /etc/portage/package.use

that only needs to be done once, not each time you update C-F. If install kde4 later, than you can simply remove that line - now continue
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
New Script Updated to use desktop-effects overlay
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Code: Select all
#!/bin/bash
 
    compiz_git_packages="compiz-fusion \
    compiz \
    libcompizconfig \
    compizconfig-python \
    compiz-bcop \
    compizconfig-backend-kconfig \
    compiz-fusion-plugins-main \
    compiz-fusion-plugins-extra \
    compiz-fusion-plugins-unsupported \
    x11-apps/fusion-icon \
    x11-apps/ccsm \
    x11-wm/emerald \
    x11-themes/emerald-themes   
    compiz-fusion"
 
    update_overlay() {
       layman -s desktop-effects
    }
 
    case "$1" in
            "merge")
                    echo -e "Updating desktop-effects overlay"
          update_overlay
                    echo -e "Purging packages"
                    emerge -C ${compiz_git_packages}
                    echo -e "Emerging packages"
                    emerge --oneshot --ask --verbose ${compiz_git_packages}
                    ;;
 
            "backup")
                    echo "Making binary package backups of currently emerged compiz-fusion packages."
                    quickpkg ${compiz_git_packages}
                    ;;
 
            "revert")
                    echo "Reverting to the most recent binary backups of the compiz-fusion git packages."
                    emerge --oneshot --ask --verbose --usepkgonly  ${compiz_git_packages}
                    ;;
 
       "purge_git")
                    echo "Cleaning all files downloaded from git."
          rm -rf /usr/portage/distfiles/git-src/*
          ;;
 
            *)
                    echo -e "`basename ${0}` usage:\n"
                    echo -e "`basename ${0}` backup"
                    echo -e "Make binary packages out of the currently merged compiz-fusion packages.\n"
                    echo -e "`basename ${0}` merge"
                    echo -e "Remerge compiz-fusion packages.\n"
                    echo -e "`basename ${0}` revert"
                    echo -e "Revert to the most recent binary backups of the compiz-fusion git packages.\n"
                    echo -e "`basename ${0}` purge_git"
                    echo -e "Purge all files downloaded from git.\n"
                    ;;
    esac
 
    exit 0


So you take the above and place it in a new text file and save it as fusionupdate.sh
Move the fusionupdate.sh to your /usr/bin/ and lets make it so we can run it by doing (you will need to be root to move it):
Code: Select all
chmod +x /usr/bin/fusionupdate.sh


Now there are 3 options you can run with this script. merge, backup, revert

To install all of compiz-fusion as root run
Code: Select all
fusionupdate.sh merge

and let it do it's thing and it will install Compiz-Fusion and the goodies.

Now when that is done you can make a backup of the files incase of future breakage, but we must do one thing first.
Code: Select all
mkdir /usr/portage/packages

than do your backup
Code: Select all
fusionupdate.sh backup


now if you ever need to revert
Code: Select all
fusionupdate.sh revert


Lets not forget to change our overlays back now
Code: Select all
layman -d desktop-effects


Code: Select all
layman -a sabayon


Now you may have Java problems after doing this so you will want to do:
Code: Select all
CFLAGS="-DNDEBUG" emerge x11-libs/libxcb

Than Java should play nice again.


Pretty slick huh?
wolfden
Sharecropper
 
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: How to Update Compiz Fusion **8/28/07**

Postby Joecanadian » Tue Aug 28, 2007 13:43

Very.

:salut:
User avatar
Joecanadian
Baby Hen
 
Posts: 19
Joined: Tue May 15, 2007 1:10

Re: How to Update Compiz Fusion **8/28/07**

Postby DontPanic » Tue Aug 28, 2007 17:19

Thanks Wolfden. This would be nearly impossible to figure out without your guide.

I was wondering if you could clarify something. In the last post on this topic, there was talk of going to a 0.5.2 version. But as I go through this process, I see I'm install all 9999 versions. I wanted to confirm this was correct.

A comment also. In your guide, you say:
and let it do it's thing and it will install Compiz-Fusion, ***but this time the extras are not going to install, you have to manually do the extras yourself, so if you want the atlantis or screensaver you will emerge them individually


But, when I ran the supplied script, it looked like it was automatically installing atlantis and the screensaver. Or am I missing something?
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU E6750@ 2.66GHz
nVidia GeForce 7600 GS
2 GB RAM
DontPanic
Old Dear Hen
 
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA

Re: How to Update Compiz Fusion **8/28/07**

Postby Phough » Tue Aug 28, 2007 19:23

Hi, at first thanks for the Howto, but now i get error after running "fusionupdate.sh merge". Last Howto, i mean **8/22/07**, works good. I had just one problem there with fusion-icon, which was solved by adding qt4 qt3 qt3support gtk sdl png gif opengl useflags. Now i follow this howto and noticed changes in package.keywords. I suppose there is some prob.

The error is:
Code: Select all
kalinova bin # fusionupdate.sh merge
Updating xeffects overlay
* Running command "/usr/bin/svn update "/usr/portage/local/layman/xeffects""...
At revision 111.
*
* Success:
* ------
*
* Successfully synchronized overlay "xeffects".
Purging packages

--- Couldn't find 'compiz-fusion' to unmerge.

--- Couldn't find 'compiz' to unmerge.

--- Couldn't find 'libcompizconfig' to unmerge.

--- Couldn't find 'compizconfig-python' to unmerge.

--- Couldn't find 'compiz-bcop' to unmerge.

--- Couldn't find 'compizconfig-backend-kconfig' to unmerge.

--- Couldn't find 'compiz-fusion-plugins-main' to unmerge.

--- Couldn't find 'compiz-fusion-plugins-extra' to unmerge.

--- Couldn't find 'compiz-fusion-plugins-unsupported' to unmerge.

--- Couldn't find 'compiz-fusion-plugins-threed' to unmerge.

--- Couldn't find 'compiz-users-pafy-screensaver' to unmerge.

--- Couldn't find 'compiz-fusion-plugins-atlantis' to unmerge.

--- Couldn't find 'x11-apps/ccsm' to unmerge.

--- Couldn't find 'x11-wm/emerald' to unmerge.

--- Couldn't find 'x11-themes/emerald-themes' to unmerge.

--- Couldn't find 'compiz-fusion' to unmerge.

>>> No packages selected for removal by unmerge
Emerging packages

These are the packages that would be merged, in order:

Calculating dependencies /
!!! All ebuilds that could satisfy "~x11-wm/compiz-9999" have been masked.
!!! One of the following masked packages is required to complete your request:
- x11-wm/compiz-9999 (masked by: missing keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "x11-wm/emerald-9999" [ebuild])


What u think i am doing wrong. I follow this Howto step by step, surely did what was in it.
Thanks for any help. and sorry my english
Phough
Baby Hen
 
Posts: 9
Joined: Mon Mar 12, 2007 13:30

Re: How to Update Compiz Fusion **8/28/07**

Postby DontPanic » Tue Aug 28, 2007 19:55

You might want to double-check your package.keywords.

I just now followed this procedure, and didn't have that issue.

Code: Select all
# eix x11-wm/compiz
[I] x11-wm/compiz
     Available versions:  (~)0.5.0 (~)0.5.0-r5[1] (~)0.5.0-r6[1] (~)0.5.2_pre20070509[1] (~)0.5.2_pre20070509-r1[1] (~)0.5.2 (**)9999[1] {dbus debug fuse gnome gtk kde svg}
     Installed versions:  9999[/usr/portage/local/layman/xeffects](12:10:26 PM 08/28/2007)(dbus -fuse gnome gtk kde svg)
     Homepage:            http://www.compiz.org/
     Description:         3D composite- and windowmanager
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU E6750@ 2.66GHz
nVidia GeForce 7600 GS
2 GB RAM
DontPanic
Old Dear Hen
 
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA

Re: How to Update Compiz Fusion **8/28/07**

Postby ashley194 » Tue Aug 28, 2007 20:20

Would someone mind taking a look at my package.keywords file please? Not really sure what to add/delete, don't want to screw up my installation of 3.4e :wink:

media-video/gspcav1 ~amd64
dev-libs/libtar ~x86
dev-python/compizconfig-python **
x11-wm/compiz **
x11-wm/compiz-fusion **
x11-plugins/compiz-fusion-plugins-main **
x11-plugins/compiz-fusion-plugins-extra **
x11-plugins/compiz-fusion-plugins-unsupported **
x11-plugins/compiz-fusion-plugins-threed **
x11-wm/emerald **
x11-themes/emerald-themes **
x11-apps/ccsm **
x11-libs/libcompizconfig **
x11-libs/compizconfig-backend-gconf **
x11-libs/compizconfig-backend-kconfig **
x11-libs/compiz-bcop **
x11-apps/fusion-icon **

Thanks :D
ashley194
Technological Hen
 
Posts: 321
Joined: Mon Feb 19, 2007 21:54
Location: Manchester, UK.

Re: How to Update Compiz Fusion **8/28/07**

Postby wolfden » Tue Aug 28, 2007 21:21

ashley194 wrote:Would someone mind taking a look at my package.keywords file please? Not really sure what to add/delete, don't want to screw up my installation of 3.4e :wink:

media-video/gspcav1 ~amd64
dev-libs/libtar ~x86
dev-python/compizconfig-python **
x11-wm/compiz **
x11-wm/compiz-fusion **
x11-plugins/compiz-fusion-plugins-main **
x11-plugins/compiz-fusion-plugins-extra **
x11-plugins/compiz-fusion-plugins-unsupported **
x11-plugins/compiz-fusion-plugins-threed **
x11-wm/emerald **
x11-themes/emerald-themes **
x11-apps/ccsm **
x11-libs/libcompizconfig **
x11-libs/compizconfig-backend-gconf **
x11-libs/compizconfig-backend-kconfig **
x11-libs/compiz-bcop **
x11-apps/fusion-icon **

Thanks :D


just copy and paste what is above in the howto
wolfden
Sharecropper
 
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: How to Update Compiz Fusion **8/28/07**

Postby wolfden » Tue Aug 28, 2007 21:29

DontPanic wrote:Thanks Wolfden. This would be nearly impossible to figure out without your guide.

I was wondering if you could clarify something. In the last post on this topic, there was talk of going to a 0.5.2 version. But as I go through this process, I see I'm install all 9999 versions. I wanted to confirm this was correct.

A comment also. In your guide, you say:
and let it do it's thing and it will install Compiz-Fusion, ***but this time the extras are not going to install, you have to manually do the extras yourself, so if you want the atlantis or screensaver you will emerge them individually


But, when I ran the supplied script, it looked like it was automatically installing atlantis and the screensaver. Or am I missing something?


There is two ways to do this, the previous way gets you the stable version, this way gets you the ongoing development version. I guess I didn't make that clear in my post. With the stable version you have to work a bit more, cause some of the extras want the .9999 version. 0.5.2 will still work with the extras, you just need to follow the previous how to. The previous how to will work till 0.6 is out, which I have no clue when that will be. It took them a long time to declair 0.5.2 to be stable or at least the how to should, unless major changes occur. Keeping up with this is a forever ongoing job. I don't do it alone that is for sure, trench- is very active with C-F stuff and informs me of big changes so I can than relay the info to everyone else.

Keep in mind with the developmental version that there will be bugs and some days C-F maybe broke, so take advantage of the backup and restore in the script that trench- has provided.

PS I edited the above post about the extras not being installed, thanks for that catch - they will install
wolfden
Sharecropper
 
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: How to Update Compiz Fusion **8/28/07**

Postby Phough » Tue Aug 28, 2007 21:32

ok. I checked my package.keywords more then twice. Here it is:
Code: Select all
x11-plugins/compiz-fusion-plugins-atlantis **
x11-plugins/compiz-users-pafy-screensaver **
x11-plugins/compiz-fusion-plugins-threed **
x11-libs/compiz-bcop **
x11-apps/fusion-icon **
x11-libs/bcop **
dev-python/compizconfig-python **
x11-wm/compiz-fusion **
x11-plugins/compiz-fusion-plugins-main **
x11-plugins/compiz-fusion-plugins-extra **
x11-plugins/compiz-fusion-plugins-unsupported **
x11-plugins/compiz-fusion-plugins-threed **
x11-wm/emerald **
x11-themes/emerald-themes **
x11-apps/ccsm **
x11-libs/libcompizconfig **
x11-libs/compizconfig-backend-gconf **
x11-libs/compizconfig-backend-kconfig **
x11-libs/compiz-bcop **

which is exactly what is in the first post the HOWTO. But still same ending:
Code: Select all
!!! All ebuilds that could satisfy "~x11-wm/compiz-9999" have been masked.
!!! One of the following masked packages is required to complete your request:
- x11-wm/compiz-9999 (masked by: missing keyword)
Phough
Baby Hen
 
Posts: 9
Joined: Mon Mar 12, 2007 13:30

Re: How to Update Compiz Fusion **8/28/07**

Postby Phough » Tue Aug 28, 2007 21:52

Maybe i solved my problem. I have add line "x11-wm/compiz **" to my package.keywords. Accualy it is not mentioned in the howto. I noticed that package is noticed in script. And the "error" has said it to me as well. Hope that this solve my problem. But anyway thanks wolfden for this howto.
Phough
Baby Hen
 
Posts: 9
Joined: Mon Mar 12, 2007 13:30

Next

Return to 3D Desktops and Window Managers

Who is online

Users browsing this forum: No registered users and 1 guest

cron