Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE4 "stable" upgrade hell [partly solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Sun Oct 25, 2009 10:06 pm    Post subject: KDE4 "stable" upgrade hell [partly solved] Reply with quote

I run 3 stable systems, and I'm trying to find a non-disastrous upgrade path from KDE3 to KDE4. so far without success.

1) Why is there no upgrade guide for this procedure? All I can find is for people running unstable months ago. For a straight upgrade via emerge -DNu world on a stable system, there is no guide I can find.

2) The first thing that happens is I have to change a bunch of USE flags. BUT since there is no upgrade guide I have to guess what they are for and why.

3) KDE4 overwrites startkde. Now I'm in it. I'm stuck with KDE4 for better or worse, with no way to go back.

4) KDE4 fails on my machine. The splash screen materialzes the first icon, then goes black. Moving the cursor around I get a stroboscope effect, but since <ctrl>-<alt>-<backspace> no longer works, I can't even log out. I have to hit the reset switch.

5) I changed .xinitrc to exec /usr/kde/3.5/bin/startkde. At least I can get 3.5.10 back. But no -- startx brings up a strange mixture, with plasma running *and* the 3.5 kde panel.

This is a horrible disaster. Can somebody please help me?

First, how can I get startx to load KDE 3.5.10 without plasma and co.

Second, what happened to KDE4, why isn't it working? I don't even know where to look for the reason the display is so botched.

Cheers,

Jon.


Last edited by jesnow on Tue Oct 27, 2009 7:42 pm; edited 2 times in total
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3426
Location: Canada

PostPosted: Sun Oct 25, 2009 10:23 pm    Post subject: Reply with quote

Honestly, I believe is best now to uninstall all kde-related packages, and install them back from console. I suspect your installation did not have kde-3.5 in proper slots, so now indeed you have a strange mixture.
Back to top
View user's profile Send private message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Sun Oct 25, 2009 10:28 pm    Post subject: Reply with quote

This is how I've installed kde4. Everywhere I read advised against having both, or simply trying to upgrade one. Remove->Re-emerge. The kicker might be getting rid of all the kde3 packages though.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Sun Oct 25, 2009 10:31 pm    Post subject: Reply with quote

3.5 was correctly slotted, it is a *stable* system I have never used kdeprefix, layman or anything of the sort.

This bug seems to have something to do with the mixed applications. I still have no idea why the display is messed up. https://bugs.gentoo.org/237718

WHY IS THERE NO UPGRADE GUIDE FOR STABLE SYSTEMS?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3426
Location: Canada

PostPosted: Sun Oct 25, 2009 10:40 pm    Post subject: Reply with quote

jesnow wrote:
3.5 was correctly slotted, it is a *stable* system I have never used kdeprefix, layman or anything of the sort.

This bug seems to have something to do with the mixed applications. I still have no idea why the display is messed up. https://bugs.gentoo.org/237718

WHY IS THERE NO UPGRADE GUIDE FOR STABLE SYSTEMS?


Proper slot means having :3.5 in the world file, so that when you install kde-4 package of the same name, it does not remove the same named kde-3.5 package. E.q I have

kde-base/kdebase-meta
kde-base/kdebase-meta:3.5
etc

in my world file.

they work seemingly fine side by side (well, I have deleted kdm from 3.5)


But I am totally with you on a ridiculousness of haveing to blindly change USE flags, before you can proceed anywhere. I had to get inside e-builds to have a guess what may cause which USE flags and spend almost 40 minuts before seing the list what emerge -pv kdebase-meta
will install. Having to recompile qt-gui like 3 times.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Sun Oct 25, 2009 11:13 pm    Post subject: Reply with quote

OK, I don't have the slot named in world. How do I correct this?

I've looked into startkde, but can't find any reason why any KDE 4 stuff would start.

At this point I'm just trying to get back to a stably operating KDE 3.5.

This upgrade is a total fail. Ha ha on me.



Code:

Armstrong jesnow # grep kde /var/lib/portage/world
kde-base/kdeartwork-kscreensaver
kde-base/kdeartwork-kwin-styles
kde-base/kdebase-startkde
kde-base/kdejava
kde-base/kdm
kde-base/kedit
kde-base/kmenuedit
kde-base/konq-plugins
kde-base/konsole
kde-base/kpdf
kde-base/krdc
kde-base/krfb
kde-base/kuickshow
kde-base/kuser
kde-base/nsplugins
kde-base/quanta
kde-misc/ksensors




dmpogo wrote:
jesnow wrote:
3.5 was correctly slotted, it is a *stable* system I have never used kdeprefix, layman or anything of the sort.

This bug seems to have something to do with the mixed applications. I still have no idea why the display is messed up. https://bugs.gentoo.org/237718

WHY IS THERE NO UPGRADE GUIDE FOR STABLE SYSTEMS?


Proper slot means having :3.5 in the world file, so that when you install kde-4 package of the same name, it does not remove the same named kde-3.5 package. E.q I have

kde-base/kdebase-meta
kde-base/kdebase-meta:3.5
etc

in my world file.

they work seemingly fine side by side (well, I have deleted kdm from 3.5)


But I am totally with you on a ridiculousness of haveing to blindly change USE flags, before you can proceed anywhere. I had to get inside e-builds to have a guess what may cause which USE flags and spend almost 40 minuts before seing the list what emerge -pv kdebase-meta
will install. Having to recompile qt-gui like 3 times.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3426
Location: Canada

PostPosted: Mon Oct 26, 2009 12:16 am    Post subject: Reply with quote

without slot info, we actually do not know are these kde-4 or 3.5 packages or a mixture.
I would save the list of all of them in a file, unmerge all of them, and then do

emerge kdebase-meta:3.5

if you want kde-3.5 or

emerge kdebase-meta

if you want 4.0

That will give you working environments, to which you can later add extra packages (or extra meta packages), always putting :3.5 at the end
if you want kde-3.5 versions.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Mon Oct 26, 2009 1:13 am    Post subject: Reply with quote

OK, I've fixed that. I appended :3.5 to each of these entires in world, ran emerge --depclean and KDE4 is gone.

What now?

I'm guessing, since I have a pretty minimal KDE 3.5 installation, I need to now emerge konqueror:4.3 and see what that pulls in.

This is pretty nonstandard I guess.

Code:

Armstrong jesnow # grep kde /var/lib/portage/world
kde-base/kdeartwork-kscreensaver:3.5
kde-base/kdeartwork-kwin-styles:3.5
kde-base/kdebase-startkde:3.5
kde-base/kdejava:3.5
kde-base/kdm:3.5
kde-base/kedit:3.5
kde-base/kmenuedit:3.5
kde-base/konq-plugins:3.5
kde-base/konsole:3.5
kde-base/kpdf:3.5
kde-base/krdc:3.5
kde-base/krfb:3.5
kde-base/kuickshow:3.5
kde-base/kuser:3.5
kde-base/nsplugins:3.5
kde-base/quanta:3.5



dmpogo wrote:
without slot info, we actually do not know are these kde-4 or 3.5 packages or a mixture.
I would save the list of all of them in a file, unmerge all of them, and then do

emerge kdebase-meta:3.5

if you want kde-3.5 or

emerge kdebase-meta

if you want 4.0

That will give you working environments, to which you can later add extra packages (or extra meta packages), always putting :3.5 at the end
if you want kde-3.5 versions.
Back to top
View user's profile Send private message
anton_kg
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2007
Posts: 93

PostPosted: Mon Oct 26, 2009 4:52 am    Post subject: Reply with quote

I absolutely agree with you. This is hell.
No slots, no smooth migration, no proper guideline, some nasty bugs like
https://bugs.gentoo.org/show_bug.cgi?id=280670
many programs like k3b, amarok are not ready yet ... an sooooo on.

I jut wish KDE team good luck with this. It could be done much smoother and hope the lesson will be learned.
Back to top
View user's profile Send private message
Olis
Apprentice
Apprentice


Joined: 29 Sep 2004
Posts: 177
Location: Germany

PostPosted: Mon Oct 26, 2009 6:17 am    Post subject: Reply with quote

anton_kg wrote:
I absolutely agree with you. This is hell.
No slots, no smooth migration, no proper guideline, some nasty bugs like
https://bugs.gentoo.org/show_bug.cgi?id=280670

I know this isn't of much help, but I'm running a fairly stable system. I was using KDE 3.5.10 and updated to KDE 4.3.1 when it went stable. Migration went without any problems, I was able to switch between KDE3 and KDE4 through KDM, both worked fine.

Yesterday I unmerged KDE3 and up to now I'm happy with KDE4. Everything went very smooth, although I now have to learn how to use KDE...

Olis
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Mon Oct 26, 2009 11:21 am    Post subject: Reply with quote

anton_kg wrote:
I absolutely agree with you. This is hell.
No slots, no smooth migration, no proper guideline, some nasty bugs like
https://bugs.gentoo.org/show_bug.cgi?id=280670
many programs like k3b, amarok are not ready yet ... an sooooo on.

I jut wish KDE team good luck with this. It could be done much smoother and hope the lesson will be learned.


That bug is only visible for e16 users and the ones making a mistake setting EROOT in environment. It's been fixed in kde-overlay, and the fix will be in tree with KDE 4.3.3.

Also, amarok 2.2.0 is going stable now, expect to see it in few days.

k3b is under work
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Mon Oct 26, 2009 1:26 pm    Post subject: Reply with quote

Hi jesnow,
What do you have in /etc/conf.d/xdm ?
Some time ago I did emerge -uD world.
kde4 got installed and I now have both kde3.5 and 4.
I still use kde3.5,I don't like 4 much,but in the end it will be necessary to switch.
I put
Code:

DISPLAYMANAGER=kdm

in /etc/conf.d/xdm and things worked right away.
I did not unmerge kde3.5.
I now can now choose which one I start once I am in the login window.
When you click on menu you get a little dropdown window.
Kde3.5 is still in /usr/kde/3.5 while 4 is in /usr/bin.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Mon Oct 26, 2009 1:41 pm    Post subject: Reply with quote

OK, if you use kdm, it takes care of everything somehow, I like startx. This is because I have separate X sessions for each family member that the can hot key to. kdm doesn't do that, but e.g. 'startx -- :3' does just fine.

I used the third way of installing kde back in the day -- emerging individual applications and letting their dependencies pull in everything else. It looks like I can emerge 4.3 the same way. But I still don't undertstand how I can arrive with a stable system at this situation.
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Mon Oct 26, 2009 1:54 pm    Post subject: Reply with quote

Wouldn't it be simpler to have different users on kde?
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Mon Oct 26, 2009 6:37 pm    Post subject: Reply with quote

No, because then each time someone else comes to the computer, they have to log out and log in again. Having 3 separate X-sessions gives my family 1-click instantaneous access to their currently running kde session.

So I will not use xdm/kdm/gdm.

gerard82 wrote:
Wouldn't it be simpler to have different users on kde?
Gerard.


This thread is not helping me solve my problem, but just telling me to do what everyone else does. Not exactly the gentoo way. It's supposed to work the way I'm doing things, so please stop telling me to use xdm.
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Mon Oct 26, 2009 6:43 pm    Post subject: Reply with quote

I never used startx.
I'm sure there's a config file associated with it that you can modify/change.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Tue Oct 27, 2009 2:30 am    Post subject: Reply with quote

gerard82 wrote:
I never used startx.
I'm sure there's a config file associated with it that you can modify/change.
Gerard.


Of course there is, one of the 4,000 or so files on my system. Does anybody know which one?
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Tue Oct 27, 2009 3:45 am    Post subject: Reply with quote

FYI when you use "Switch User" in kde you'll be starting a NEW XSESSION.
With ctrl-alt-F7...F9 you can switch between users.
No need to log out,this is not Windows.
Then there's also the command "man startx"!
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Tue Oct 27, 2009 1:45 pm    Post subject: Reply with quote

gerard82 wrote:
FYI when you use "Switch User" in kde you'll be starting a NEW XSESSION.
With ctrl-alt-F7...F9 you can switch between users.
No need to log out,this is not Windows.


That must be new.

Quote:

Then there's also the command "man startx"!
Gerard.


So which one of these files mentioned in man startx is the one that controls where KDE finds it startup files?

Code:

       $(HOME)/.xinitrc         Client to run.  Typically a shell script which runs many programs in the background.

       $(HOME)/.xserverrc       Server to run.  The default is X.

       /etc/X11/xinit/xinitrc   Client to run if the user has no .xinitrc file.

       /etc/X11/xinit/xserverrc Server to run if the user has no .xserverrc file.

Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Tue Oct 27, 2009 1:50 pm    Post subject: Reply with quote

I think you are pulling my leg!
You joined three years ago?
The switch user thingy has been in kde for ages.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Tue Oct 27, 2009 3:38 pm    Post subject: Reply with quote

jesnow if you want help I can tell you what I did.
If you're in the mood to listen and not get angry again
let me know.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Tue Oct 27, 2009 4:17 pm    Post subject: Reply with quote

I upgraded to KDE4 almost by accident, when it unexpectedly went stable on x86. Since I run a "stable" system, and prefer startx, I simply changed the line in /etc/rc.conf to:
Code:
XSESSION="kde-4.3"

which works for me.

I'm not really happy with KDE4 but I'm getting used to it. Changing the K menu to classic style, and the window titles to "window title set by shell", help a bit. Killing stringi stops it occupying a few percent of CPU, but 100% of disk accesses, hence bringing my system to its knees.

I would like to see a one-slider "eyecandy" control, as was present in kpersonalizer for KDE3, so that I could reduce the overhead without having to track down dozens of unrelated adjustments.

All my kmail settings vanished in the upgrade, and I have not yet managed to retrieve them.

I'm 100% behind the concept that a guide for "stable" system users would be a wonderful thing. I had to use an unstable gentoo-sources kernel, and an unstable driver (xf86-video-intel-2.9.0) before I could get the thing up at all. This is not really a happy thing for a supposedly "stable" system.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3426
Location: Canada

PostPosted: Tue Oct 27, 2009 6:48 pm    Post subject: Reply with quote

rickj wrote:
I upgraded to KDE4 almost by accident, when it unexpectedly went stable on x86. Since I run a "stable" system, and prefer startx, I simply changed the line in /etc/rc.conf to:
Code:
XSESSION="kde-4.3"

which works for me.

I'm not really happy with KDE4 but I'm getting used to it. Changing the K menu to classic style, and the window titles to "window title set by shell", help a bit. Killing stringi stops it occupying a few percent of CPU, but 100% of disk accesses, hence bringing my system to its knees.



I am so much with you ! I like some new technologies with desktop manipulation (biggest selling point to me), disappointed by the mismatched mash of concepts otherwise (I actually expected more sleekness and visual appeal at the cost of performance and features, but it looks almost opposite - some nice technologies at the cost of visual and usability coherence)

Stringi ? Interesting. My latest annoyance with kde-4 (to add to many others, although minor, I accumulated just in three days of use) is that on my machine
kwin4 occupies 5% CPU while on idle - i.e only one konsole window is open, and I do nothing but top ( when I leave computer overnight with no user processes running, in the morning it is +20 min to use time for kwin4, so it is really on idle from windowing point of view, the only updated thing is a clock ).

This is on 3.2 GHz CPU, so it may mean that on my 1.2 GHZ laptop it will be 10-15%, and if this is continuous use, in the worst case scenario that may mean that processor will be always kept in high powered state, which will reduce the battery life by 25-30 %.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Tue Oct 27, 2009 7:15 pm    Post subject: Reply with quote

rickj wrote:
I upgraded to KDE4 almost by accident, when it unexpectedly went stable on x86. Since I run a "stable" system, and prefer startx, I simply changed the line in /etc/rc.conf to:
Code:
XSESSION="kde-4.3"

which works for me.


Thank you! I haven't tried it yet, but I'll bet this is the way to regulate this issue.

To gerard I have to say, your help though well-meaning consisted of telling me unhelpful things, like "man startx" and "go find a configuration file". That's why I let a frustrated tone slip into my replies. That kind of help is worse than no help. A one liner from somebody (like rickj) who knows what they're doing is help. If you don't *know* the answer it's often better to keep quiet. Thank you anyway for your effort.

Quote:

I'm 100% behind the concept that a guide for "stable" system users would be a wonderful thing. I had to use an unstable gentoo-sources kernel, and an unstable driver (xf86-video-intel-2.9.0) before I could get the thing up at all. This is not really a happy thing for a supposedly "stable" system.


I think issues like this are part of the general deterioration of Gentoo. I wish I could do something better to help than complaining. I guess Gentoo is really mostly about being cutting edge, and so now the guides come out when a new package or version hits ~arch, after that we're on our own. Losing the gentoo wiki was a disaster -- it was becoming an important go-to resource for a lot of other distros as well. I'm astounded that it was allowed to happen and that it hasn't really been re-started.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 882

PostPosted: Tue Oct 27, 2009 7:22 pm    Post subject: Reply with quote

Yes, a one-slider "get rid of the crap" control. I want that!

I thought KDE4 was supposed to be better for laptops? I'm thinking maybe for low-resource systems we shoudl use a lightweight wm, there are a bunch around that will run most KDE and gnome apps.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum