Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Blocks when portage attempts to shift to KDE 6
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9123

PostPosted: Thu Sep 05, 2024 3:45 pm    Post subject: Reply with quote

Who ever told you to look into SDDM config files? That was certainly not in the news item.
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 4:04 pm    Post subject: Reply with quote

@dmpogo Thanks, good point. As I mentioned just above, I was able to do a similar edit in the sddm.conf.d directory, which changed the sddm.log output, but still hung.

When I first looked at the top right in the login screen, I saw the same thing, that Wayland was still the default session. I changed that to plasma-x11 and proceeded to the login process. In this case the behavior was different, in that it continued on to that fixed backdrop screen I mentioned above, but stayed hung there as before. Still had mouse pointer, but had to Ctrl-Alt to get back to the terminal prompt.

Still, the sddm.log shows nothing of note, except that there is a complaint (still listed as WW rather than EE) that the greeter crashed, or something similar. I've reproduced here just the part of the sddm.log dealing with this last attempt (username is 'dummy', newly created):

https://bpa.st/DJAHK

(Sorry I have to rely purely on pastebins at this point, because the files are on a Linux machine and I am writing this on a separate Windows machine.)

This might somehow be considered progress, but I'm still left trying to figure out what has broken...


Last edited by ericrhenry on Thu Sep 05, 2024 4:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 4:10 pm    Post subject: Reply with quote

@asturm. Agreed, that was not in the news item explicitly, but the implication was that I would have to change the default display server in my "display manager of choice", which happens to be sddm at the moment. Therefore, the conjecture was that I would have to make that change somewhere in the configuration of that specific display manager, which happens to be sddm.conf.d. (The man page appears to be out of date, because it still lists 'x11' as the default...) I only realized later that I can change that directly in the greeting screen, as noted in the most recent posts.

If that was wrong, or unwise, I'm happy to try anything else somebody would like to suggest. The news item seemed to leave it up to the reader to figure out how to execute that specific instruction, and this was the best I could do. I did regard going to a wayland default as 'interesting', because usually the user is left to choose such things, and I had never selected wayland before AFAIK. (Not saying the wayland default was a mistake, and it is noted in the news item, so I'm not throwing darts here.)
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3376
Location: Canada

PostPosted: Thu Sep 05, 2024 4:23 pm    Post subject: Reply with quote

asturm wrote:
Who ever told you to look into SDDM config files? That was certainly not in the news item.


Let me quote the news item verbatim

Quote:

For users affected too much by those, switching
to the still existing X11 session is as easy as selecting it in the display
manager of choice.


My display manager is sddm, this is what is launched by /etc/init.d/display-manager start

Now I understand that you meant choosing in the menu that display manager provides, but this was ambiguous and my original reaction was that I need to configure sddm.

Welcome to the teaching experience. Out of 100 students in the class there always will be some that interpret your statement in a way you never expected !
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 4:29 pm    Post subject: Reply with quote

I second what @dmpogo has written. We both interpreted the instructions first in a "configuration file" context, and then he had the awareness to actually address the matter directly in the sddm greeting--which seems to be the most persistent solution (perhaps cached somewhere other than in sddm.conf.d).
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 4:36 pm    Post subject: Reply with quote

Let me back up a minute. In my @world file I still have a lot of dev-qt and kde-* entries which have explicit ':5' suffixes. (I only deleted those which created the soft blocks in the emerge operation, but left quite a few.) As I've said, I'm not sure how they got there, except that it is likely that they come from some kind of update operation I inadvertently performed without --oneshot. Does it make sense for me to either remove those suffixes, or even remove those entries entirely, and then do a fresh emerge @world? This might give Portage more leeway to manage possibly obsolete versions, and I'm still concerned about a possible version skew causing the crash/freeze events I am seeing.

Ideally, there would be some kind of verbose setting on the login operation somewhere, or perhaps some log file that shows exactly what is failing, or at least indicates the last operation before the freeze.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3376
Location: Canada

PostPosted: Thu Sep 05, 2024 4:45 pm    Post subject: Reply with quote

ericrhenry wrote:
Let me back up a minute. In my @world file I still have a lot of dev-qt and kde-* entries which have explicit ':5' suffixes. (I only deleted those which created the soft blocks in the emerge operation, but left quite a few.) As I've said, I'm not sure how they got there, except that it is likely that they come from some kind of update operation I inadvertently performed without --oneshot. Does it make sense for me to either remove those suffixes, or even remove those entries entirely, and then do a fresh emerge @world? This might give Portage more leeway to manage possibly obsolete versions, and I'm still concerned about a possible version skew causing the crash/freeze events I am seeing.

Ideally, there would be some kind of verbose setting on the login operation somewhere, or perhaps some log file that shows exactly what is failing, or at least indicates the last operation before the freeze.


There is a lot of qt5 and kde-framework:5 packages left. The new were installed in new slot, so coexist. There is also qt5 USE flag enforced for several kde-plasma:6 packages, and there are some compatibility packages between kde-plasma:5 and :6.
There reason is that there are plenty of applications that have not yet been transition to qt6 and kde-framework:6, including KDE applications. I expect qt5 and kde-framework:5 to stay to stay on our machines for a while, especially qt5 one, since it is the question of third party applications of making change. KDE ones will be moved relatively soon, I hope so kde-frameork:5 could be gone sooner.

Notice, that some unneeded kde-framework:5 and qt:5 parts will go away if you run emerge --depclean right now (do emerge --depclean -pv first to see that you are happy with what will be taken out)
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 4:53 pm    Post subject: Reply with quote

Thanks @dmpogo. I did understand that there is still a mix of :5 and :6 packages in play. I just wanted to rule out that a :5 application is being invoked when a :6 application is required. My proposed strategy is probably not the best, and I suspect that the whole slotting facility, which I understand only incompletely, probably manages such things implicitly.

I'm mainly looking for some kind of logging facility, which may already be present but "invisible" to me so far, that can tell me what detailed login executions have completed, and which might be hung. The sddm.log should in principle be adequate, but it is not showing a failure so far.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3376
Location: Canada

PostPosted: Thu Sep 05, 2024 5:04 pm    Post subject: Reply with quote

ericrhenry wrote:
Thanks @dmpogo. I did understand that there is still a mix of :5 and :6 packages in play. I just wanted to rule out that a :5 application is being invoked when a :6 application is required. My proposed strategy is probably not the best, and I suspect that the whole slotting facility, which I understand only incompletely, probably manages such things implicitly.

I'm mainly looking for some kind of logging facility, which may already be present but "invisible" to me so far, that can tell me what detailed login executions have completed, and which might be hung. The sddm.log should in principle be adequate, but it is not showing a failure so far.


I understand, and there will be a period that we'll have to keep and eye on what is going on. I think with KDE applications things will be easy. They are either framework:5/qt 5 or framework:6/qt6. So every time some KDE application is updated, I'll be having a look whether
emerge -pv --depclean shows that some framework:5 package is released and can be deleted. And with time they will all be gone.

With qt5 is more complicated, and will drag longer, if you have third party (non KDE) application that use qt5. And there are quite a few on my machines. When they will migrate to qt6 or at all, nobody knows.
And only when they are all (that you are using on your machine) are gone, then you can set -qt5 flag and recompile.
In the meantime several infrastructure packages will have to support both qt5 and qt6 (for instance, phonon, poppler, gca, gpgme, plasma-integration) and qt5 packages will be installed.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3376
Location: Canada

PostPosted: Thu Sep 05, 2024 5:18 pm    Post subject: Reply with quote

ericrhenry wrote:
I second what @dmpogo has written. We both interpreted the instructions first in a "configuration file" context, and then he had the awareness to actually address the matter directly in the sddm greeting--which seems to be the most persistent solution (perhaps cached somewhere other than in sddm.conf.d).


By the way there is reason why we understood it the way we did. Let me quote a fuller sentence

Quote:

KDE developers have
decided to make it the default login session for Plasma 6, even if some
known papercuts[2] remain. For users affected too much by those, switching
to the still existing X11 session is as easy as selecting it in the display
manager of choice.


So we are thinking about default and what X11 users like you and me is looking for is to how to revert the config to have X11 as default automatic choice. This is normally done by a config option somewhere.
Choosing X11 is the menu is not making it default, it is choice for one instance. If sentence continued 'as easy as selecting it in the display manager of choice, and SDDM will remember it (or make it default) for the next session' that would answer our question.
Notice however that this is not 100% satisfactory either, since if display-manager remembers it in some cache, this is not permanent, cache can be invalidated and dropped when less expected.

And this matters, since the person who logs in may be not one of us admins, but unsuspected user (say some student) who receives an unfamiliar session that may even be not working properly. That is why as admin, I would like to set default somewhere as config option,
that's how my mind works.


Actually, now I suspect that the news item tries to glance over the fact that there is no way to actually make X11 be a really permanent default with new setup. Makes sounds the choice more trivial than it actually is.
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 5:24 pm    Post subject: Reply with quote

KDE versioning issues aside, I am really just trying to get Plasma 6 to start up properly. I did manage to bring in xdm and configure that as my display manager, temporarily, so that I could at least have multiple windows and access to windowed emacs. (This actually takes me back to the '90s :( ...) But I'm pretty much addicted to multiple virtual desktops, multimedia support, and other nice KDE features, so this is not a long-term solution. I have been debugging things since the '70s, so I'm pretty comfortable with poking around, but KDE/Plasma can approach wizard level, and I'm without a grimoire. I'm relying on the kindness and patience of actual wizards, and I am still hoping for some guidance through this. Again, huge thanks in advance...
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4855
Location: Bavaria

PostPosted: Thu Sep 05, 2024 6:47 pm    Post subject: Reply with quote

ericrhenry,

please delete everything in your world-file which has a slot ... you dont need it. Best is to have these two in your world (as a basis):
Code:
kde-plasma/plasma-meta
kde-apps/kdecore-meta

Dont change the use-flags which you have via default from your plasma-profile ... yes, "qt5" and "qt6" are enabled globally as default from your profile.


(of course I use some more kde-apps:
kde-apps/kdepim-meta
kde-apps/ark
kde-apps/gwenview
kde-apps/kate
kde-apps/kblocks
kde-apps/kcalc
kde-apps/kmahjongg
kde-apps/kmines
kde-apps/kmix
kde-apps/kompare
kde-apps/konqueror
kde-apps/kwalletmanager
kde-apps/lskat
kde-apps/marble
kde-apps/okular
kde-apps/spectacle
kde-apps/sweeper)

THEN do an emerge -uUDv @world
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3376
Location: Canada

PostPosted: Thu Sep 05, 2024 7:11 pm    Post subject: Reply with quote

ericrhenry wrote:
KDE versioning issues aside, I am really just trying to get Plasma 6 to start up properly. I did manage to bring in xdm and configure that as my display manager, temporarily, so that I could at least have multiple windows and access to windowed emacs. (This actually takes me back to the '90s :( ...) But I'm pretty much addicted to multiple virtual desktops, multimedia support, and other nice KDE features, so this is not a long-term solution. I have been debugging things since the '70s, so I'm pretty comfortable with poking around, but KDE/Plasma can approach wizard level, and I'm without a grimoire. I'm relying on the kindness and patience of actual wizards, and I am still hoping for some guidance through this. Again, huge thanks in advance...



Interesting, I had no problem with plasma-6 coming up with sddm, after update from plasma-5. Even most of my setup was preserved, I had to do just minor things, such as screen edges actions were forgotten (and they moved into settings menu to Mouse and Touchpad, out of all thing, and on one machine my Breeze them somehow switched to dark version.

And konsole is rendering my font Dejau Sans Mono 14 pt somewhat crappily it seems. The rest looks identical to what I had before. Maybe we need to debug your setup more.
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 7:28 pm    Post subject: Reply with quote

Thanks @pietinger. When I do that with the 'pretend' option instead of 'v', I see

[ebuild N ] dev-libs/kpathsea-6.3.5_p20230311 USE="-doc -source -static-libs"
[ebuild N ] app-text/dvipsk-2023.03.11_p66203 USE="-doc -source"
[ebuild rR ~] sci-libs/gdcm-3.0.14
[ebuild N ] kde-apps/kdialog-24.05.2 USE="X -debug"
[ebuild N ] kde-apps/kfind-24.05.2 USE="handbook -debug"
[ebuild N ] media-gfx/kio-ps-thumbnailer-24.05.2 USE="-debug"
[ebuild N ] kde-apps/keditbookmarks-24.05.2 USE="handbook man -debug -test"
[ebuild N ] kde-apps/baloo-widgets-24.05.2 USE="-debug -test"
[ebuild N ] kde-apps/thumbnailers-24.05.2-r2 USE="pdf -blender -gettext -mobi -raw -video"
[ebuild N ] www-client/falkon-24.05.2-r1 USE="X dbus kde -debug -python -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12"
[ebuild N ] kde-apps/kate-lib-24.05.2 USE="-debug -telemetry -test"
[ebuild N ] kde-apps/kwrite-24.05.2 USE="handbook -debug"
[ebuild N ] kde-apps/dolphin-24.05.2-r1 USE="activities handbook semantic-desktop -debug -telemetry -test"
[ebuild NS ] kde-apps/khelpcenter-24.05.2 [23.08.5]
[uninstall ] kde-apps/khelpcenter-23.08.5
[blocks b ] kde-apps/khelpcenter:5 ("kde-apps/khelpcenter:5" is soft blocking kde-apps/khelpcenter-24.05.2)
[ebuild N ] kde-apps/kdecore-meta-24.05.2-r1 USE="share webengine"

* IMPORTANT: 9 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.

So, mostly new apps (few if any actually in the new world file), and things like dolphin which I don't use. (Might be tied to kdecore-meta, no problem with bringing them in.) I will go ahead and run this--Do you see anything that might be relevant to startup issues? 'gdcm' is from an overlay, which really needs to be updated because it currently fails every time; for that reason I will run with --keep-going.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9123

PostPosted: Thu Sep 05, 2024 7:31 pm    Post subject: Reply with quote

Note: These packages are doing nothing to get your Plasma session going, and I don't think pietinger meant you should install exactly that set of packages they use. It was an example.
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 7:52 pm    Post subject: Reply with quote

Thanks @dmpogo. After getting the initial emerge to work, I was frankly shocked when it failed to come up. I've always run a fairly vanilla configuration, accepting defaults for almost every characteristic, and I certainly didn't change anything in the setup in the course of attempting the upgrade. Interestingly, pretty much the same thing happened on both of my Linux laptop workstations. One of them is fortunately dual-boot Windows, which is where I'm typing this, and I'm probing and testing on the other one--with the assumption that solving one will solve the other.

I located in ~/.local/share/sddm two session log files. The one, xorg-session.log, is huge and probably covers a long history of successful logins, until this morning. The other one, wayland-session.log, is relatively very small and dated today, suggesting that, as expected, Wayland was only a part of the process after the attempted update; all such login attempts failed, before I switched to x11 (which is of course still failing). I've reproduced the wayland-session file here

https://bpa.st/SSAGU

One thing that grabbed my attention was apparent problems connecting to kdeinit5. I'm trying to interpret this file in terms of failure modes, probably a bit more detail than in sddm.log.

This reliance on kdeinit5 is interesting, because kinit:5, which owns this app and library, shows up as selected for cleaning if one does 'emerge -pv --depclean $(qlist -ISC kde-frameworks/*)', meaning if I actually did that depclean, kdeinit5 might be scheduled for the chopping block. (There is no kinit:6 yet AFAIK.)


Last edited by ericrhenry on Thu Sep 05, 2024 8:12 pm; edited 2 times in total
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 7:56 pm    Post subject: Reply with quote

Thanks @asturm. I have enough of a clue (I think) to suspect that none of these really bears on the startup problem. (I did have to ask, though...) It serves the purpose of cleaning a lot of useless cruft out of my @world, and the emerge gives my newly empowered (by xdm, at least) system a chance to do something slightly useful in one window while I poke around in another :). I think the wayland-session.log file I just posted **might** be more on point, but I'm not sure I can interpret it without help.
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 9:38 pm    Post subject: Reply with quote

OK, my puzzlement only grows. As described previously, while operating within a temporary xdm environment, I executed the 'emerge -uUDv @world', after cleaning out all slotted entries in my @world file, as described by @pietinger. By all indications, this should not have had any bearing on the Plasma6 startup issue. After poking around a little, but not actually changing anything, I went back to 'sddm' in /etc/conf.d/display-manager and restarted the system (rather than just the display manager).

System came up, I attempted to login at the greeting screen (which actually showed plasma-x11 as the display server). To my shock, everything came up as usual (but with the same rather odd tree-on-a-hillside backbround), and things looks pretty much as before with Plasma 5. There was even an annunciator saying something to the effect that "Plasma has been updated to version 6".

I'm actually writing this within Firefox running under Plasma 6. Be it far from me to question such an outcome, except that I don't understand why it actually worked this time. (One upside is that I did learn a bit about intelligent package management, thanks to my kind advisors.) Now I need to see if the same 'remedy' works on the other laptop. I will post when I have a result on that...
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4855
Location: Bavaria

PostPosted: Thu Sep 05, 2024 9:44 pm    Post subject: Reply with quote

ericrhenry wrote:
[...] I executed the 'emerge -uUDv @world', after cleaning out all slotted entries in my @world file, [...]

After a world-update you (really) should do an "emerge -c" (check before with "emerge -cp"). This step is necessary for example if you get an new major gcc ... because in this step not only the old one will get removed ... moreover the new one will be set as new system compiler (see: gcc-config -l"). Also some other applications need it.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 10:08 pm    Post subject: Reply with quote

Understood @pietinger, and thanks. I tried 'emerge -cp' on my "revived" system. Unfortunately, the 'gdcm' package I mentioned earlier, which is in a --preserved-rebuild state, requires a version of poppler that is no longer available. Net result is that 'emerge -cp' bails. I actually need that package, and am hoping it gets updated soon, because a new version appears to be available, according to the developer's site.

A quick postscript to my previous post: Switching the display server at the sddm greeting screen to wayland still fails as before, and I'm not particularly inclined to try to troubleshoot that. (Enough anxiety for one day...) But using the x11 option continues to work through repeated login/logout cycles and restarts. (No surprise, just neurotic self-indulgence...)
Back to top
View user's profile Send private message
ericrhenry
n00b
n00b


Joined: 02 Jul 2009
Posts: 39
Location: Bethesda, MD

PostPosted: Thu Sep 05, 2024 10:27 pm    Post subject: Reply with quote

Same set of operations on the other, much older laptop yielded the same positive result. I still don't have a clear idea of why it worked, or insight into the cause of the initial failure.

This has been a bit of a hybrid thread, in that I initially posted about a bunch of soft blocks while attempting to emerge toward Plasma 6. That part is arguably 'SOLVED'. I followed up in the same thread with the startup issues, partly because it would carry over some of my configuration info from the initial issue. Even though there has been a positive outcome, because I don't understand why things worked out I'm not sure if 'SOLVED' is really fair. (Such would be useful if somebody seeing that could look at the thread and see a straight line to a solution of their own problem.) I am content to leave that decision with the moderators, if that is appropriate.

Huge thanks to everybody who chimed in.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3376
Location: Canada

PostPosted: Fri Sep 06, 2024 3:15 am    Post subject: Reply with quote

What is probably appropriate to do is to edit the subject line adding [SOLVED] in the beginning, since the original problem is solved.
Back to top
View user's profile Send private message
finoderi
n00b
n00b


Joined: 29 Oct 2021
Posts: 52

PostPosted: Fri Sep 06, 2024 7:09 am    Post subject: Reply with quote

ericrhenry wrote:
When I try dbus-launch --exit-with-session startplasma-wayland as described in the Wiki, I get the gear very briefly, and then a full-screen backdrop, probably a default, with a tree on a hillside.

The right command to start plasma session with wayland should be
Code:
dbus-run-session startplasma-wayland
. Wiki is wrong.
I don't understand why people are mindlessly copy/pasting that command all over the Internet.
Changing the command most likely won't solve your problems but it's important still.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9123

PostPosted: Fri Sep 06, 2024 7:35 am    Post subject: Reply with quote

Everyone can fix the wiki.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4855
Location: Bavaria

PostPosted: Fri Sep 06, 2024 12:38 pm    Post subject: Reply with quote

ericrhenry wrote:
Huge thanks to everybody who chimed in.

You are very Welcome ! :D

Have fun with Gentoo. 8)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 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