Bug#1108596: libkf6su6: Relax dependency on sudo
control: tags -1 wontfix
Le mardi 1 juillet 2025, 08:58:04 heure normale d’Europe centrale Tobias Gruetzmacher a écrit :
> Dear maintainer,
Dear Tobias,
> as far as I can see
> (https://invent.kde.org/frameworks/kdesu/-/blob/master/CMakeLists.txt?ref_type=heads#L39)
> kdesu supports 3 different backends:
>
> - sudo
> - doas
> - su
>
> It would be nice if kdesu didn't force the user to install one of them
> if they prefer one of the other ones. Maybe just add opendoas as an
> alternative dependency?
unfortunately this is a compile time selection if you look at the CMakeLists.txt 2 lines below and at [1].
So with the current code it’s not possible opt into one or the other at runtime like I understand you would like to do.
[1] https://invent.kde.org/frameworks/kdesu/-/blob/master/src/suprocess.cpp?ref_type=heads#L28
If that issue is important enough to you you could :
- work upstream to make it something configurable at runtime (checking first with upstream if they’re interested in the feature at all),
- try doing a dual build of the kf6-kdesu source package, producing both the current binaries and their -doas equivalent or something.
I’m not going to work on either and I’m not 100% sure how my second option could work so I’ll be closing that bug for now.
Feel free to give feedback here if you make progress on any of these options or others.
Happy hacking,
--
Aruélien
Reply to: