I've done some digging around. This is what I've found so far.

1) kdesu hangs at line 354 in kdesu/src/kdesu.cpp:
    int needpw = proc.checkNeedPassword();


2) The makefiles in the KDESU project on git.lauchpad.net contain obsolete 
hardcoded QT5 and KDE Framework 5 library versions:

https://git.launchpad.net/ubuntu/+source/kdesu/tree/CMakeLists.txt?h=applied/ubuntu/questing

set(KF_VERSION "5.116.0") # handled by release scripts
set(KF_DEP_VERSION "5.116.0") # handled by release scripts
set(REQUIRED_QT_VERSION 5.15.2)
find_package(Qt${QT_MAJOR_VERSION}Core ${REQUIRED_QT_VERSION} REQUIRED 
NO_MODULE)

find_package(KF5Config ${KF_DEP_VERSION} REQUIRED)
find_package(KF5CoreAddons ${KF_DEP_VERSION} REQUIRED)
find_package(KF5I18n ${KF_DEP_VERSION} REQUIRED)
find_package(KF5Pty ${KF_DEP_VERSION} REQUIRED)

Whilst KDE-CLI-TOOLS is compiling for QT6 and KDE Framework 6.

https://git.launchpad.net/ubuntu/+source/kde-cli-
tools/tree/CMakeLists.txt?h=ubuntu/questing

set(PROJECT_VERSION "6.4.5")

set(QT_MIN_VERSION "6.8.0")
set(KF6_MIN_VERSION "6.14.0")


If those are the source files you're using, the daemon and cli are using 
different KDE Frameworks which propably explain why it hangs!

3) If I pull version 6.4.5 versions of KDESU and KDE-CLI-TOOLS and compile 
them, KDESU works.
Pulling the 6.4 tree from https://github.com/KDE/kdesu/tree/v6.4.0 and 
recompiling should fix the problem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130805

Title:
  kdesu hangs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kde-cli-tools/+bug/2130805/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to