Bug 506794 - kde-plasma/plasma-firewall depend on systemd
Summary: kde-plasma/plasma-firewall depend on systemd
Status: RESOLVED NOT A BUG
Alias: None
Product: kde
Classification: I don't know
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs
URL: https://bugs.gentoo.org/940536
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-09 10:55 UTC by Mirek Mieszczak
Modified: 2025-07-28 00:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch to work with elogind. (790 bytes, patch)
2025-07-09 10:55 UTC, Mirek Mieszczak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mirek Mieszczak 2025-07-09 10:55:03 UTC
Created attachment 183084 [details]
Patch to work with elogind.

Plasma firewall have builtin hard dependency on systemd. 
Although it can work well also with elogind. 

I tested it with following patch, and it works fine then with elogind.
Comment 1 David Edmundson 2025-07-09 15:15:03 UTC
>Patch to work with elogind.

Have you tested that patch?

systemd and logind are not interchangeable. 
elogind doesn't have a way to start/stop services.

I do not think this is fixable.
Comment 2 Mirek Mieszczak 2025-07-09 15:57:57 UTC
(In reply to David Edmundson from comment #1)
> >Patch to work with elogind.
> 
> Have you tested that patch?
> 
> systemd and logind are not interchangeable. 
> elogind doesn't have a way to start/stop services.
> 
> I do not think this is fixable.

I use this patch, and it works. 
I know, that elogind cannot start services, but, when the firewalld service is running, this patch allow me to connect with the service, configfure it, and see the status. Which is enough.
In other case plasma-firewall is not usable at all.
Comment 3 Harald Sitter 2025-07-10 11:00:46 UTC
Alas, this patch makes no sense. login1 doesn't implement **any** of the called functions.

Please don't post patches on bugzilla. Use invent.kde.org.
Comment 4 Mirek Mieszczak 2025-07-10 13:29:35 UTC
I am aware, that this patch cannot be used as is. 
I used this patch conditionally in ebuild only in case of system with elogind. In elogind, there is no 
"org.freedesktop.systemd1", instead of this, there is "org.freedesktop.login1".
Because I have no idea, how to select between systemd, and elogind I posted it as I used it in ebuild. 
I wonder how it can be used, or what preprocessor commands have to be used to switch over between these two systems even in compilation time, or in runtime.
Comment 5 Mª Jesús M. G. 2025-07-28 00:18:58 UTC
And couldn't you make the firewall not depend on Systemd, or is it not technically possible without practically redoing it from scratch?
Comment 6 Mª Jesús M. G. 2025-07-28 00:26:20 UTC
(In reply to Mirek Mieszczak from comment #2)
> (In reply to David Edmundson from comment #1)
> > >Patch to work with elogind.
> > 
> > Have you tested that patch?

Hi, Mirek.
I'm an Opensuse user and generally happy with it, but I'm concerned about the amount of junk it comes with, so I've started testing Gentoo on a virtual machine and I find it a better distro for the ability to set up a really minimalist system if you have the patience and time, even more minimalistic than Arch, with almost just the bare necessities. 
Does your patch work simply, i.e. install and that's it, or does it require a ton of manual configuration and trial and error, which is what's most disappointing about Gentoo?