Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 429910 - kde-base/kdesu needs sys-apps/dbus[X]
Summary: kde-base/kdesu needs sys-apps/dbus[X]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard: fixed in 5.16.0
Keywords: InOverlay
: 429916 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-04 20:53 UTC by Michael Mair-Keimberger (mm1ke)
Modified: 2024-09-05 13:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (mm1ke) 2012-08-04 20:53:12 UTC
For a long time now i always had the problem that kdesu didn't open programs in superuser mode via:
$ kdesu systemsettings
The password prompt shows up, but than nothing happened.
After searching the web, it seems that i'm not the only one who hit the problem if you look here [1] and here [2].
On the other side i found a workaround where people suggest using:
$ kdesu dbus-launch systemsettings
that worked perfectly as well.

But today i found the reason why it didn't work and it's pretty simple. After remerging dbus with the "X" use flag, restart everything (dbus and kde) "kdesu systemsettings" worked perfectly again. (other apps too)
I could reproduce that problem on two pc's and could fix it with enabling that use-flag. Besides that it also solved another problem - bug report is coming ;)

[1] https://bugs.kde.org/show_bug.cgi?id=165268
[2] http://forums.opensuse.org/english/get-technical-help-here/applications/477057-dbus-problem.html

Therefore i suggest adding "sys-apps/dbus X" to the dependencies of kdesu.
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2012-08-04 23:42:02 UTC
This issue should only affect user who dont use desktop or desktop/kde profile.

As almost all packages in kde-base/ dont depend on sys-apps/dbus directly but on x11-libs/qt-dbus (which have a dep on sys-apps/dbus). I would sugggest following to add a X use flag on x11-libs/qt-dbus.

In example:

IUSE="... X ..."

DEPEND="
   ...
   sys-apps/dbus[X?]
   ...
"

@qt Please discuss
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2012-08-06 06:02:03 UTC
Can't you just put the dependency on dbus[X] in kdelibs?
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2012-08-07 14:11:10 UTC
*** Bug 429916 has been marked as a duplicate of this bug. ***
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2012-08-07 14:25:45 UTC
Thank you for the report. sys-apps/dbus[X] is pulled in by kde-base/kdelibs which solves this bug and additionally #429916. It is fixed now in CVS. Please sync in some hours to get the changes.

+  07 Aug 2012; Johannes Huber <johu@gentoo.org>
+  kdelibs-4.8.4-r1.ebuild, kdelibs-4.8.5.ebuild, kdelibs-4.9.0.ebuild:
+  Add sys-apps/dbus[X] to RDEPEND for non-desktop profiles, see bugs #429910,
+  #429916. Thanks to Michael Mair-Keimberger <bu9zilla@gmail.

@pesa: Thanks for feedback here and in irc.
Comment 5 Michael Mair-Keimberger (mm1ke) 2019-05-31 15:54:40 UTC
Hi,

Unfortunately,  i have to reopen this bug.
Since kdelibs is long gone, this problem is vaild again as dbus wouldn't be build with X enabled on a non desktop profile. I found this when i was cleaning up my use flag file ;)
Comment 6 Larry the Git Cow gentoo-dev 2019-06-08 07:19:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=8d8e6306d9c2cff58ef45e182f020734561c390b

commit 8d8e6306d9c2cff58ef45e182f020734561c390b
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-06-01 22:49:45 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-06-07 20:36:14 +0000

    kde-plasma/kde-cli-tools: Drop obsolete blocker, no kdesu by default
    
    kdesu is only operational in X and increasingly obsolete.
    Add RDEPEND on sys-apps/dbus[X] to make USE kdesu work.
    Remove /usr/bin/kdesu5 symlink (we've had /usr/bin/kdesu for >=2 years).
    
    Bug: https://bugs.gentoo.org/429910
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-plasma/kde-cli-tools/kde-cli-tools-5.16.0.ebuild       | 7 ++++---
 kde-plasma/kde-cli-tools/kde-cli-tools-5.16.49.9999.ebuild | 7 ++++---
 kde-plasma/kde-cli-tools/kde-cli-tools-9999.ebuild         | 7 ++++---
 3 files changed, 12 insertions(+), 9 deletions(-)
Comment 7 Andreas Sturmlechner gentoo-dev 2019-06-09 11:29:50 UTC
This is going to be fixed again in 5.16.0, this time in kde-cli-tools[kdesu] itself.