peterleinchen / harbour-defender

Defender is a privacy guard for SailfishOS
GNU General Public License v3.0
5 stars 5 forks source link

Dependency loop on community SailfishOS #8

Open DrYak opened 8 months ago

DrYak commented 8 months ago

Currently running Defender on SFOS Community edition on a PinePhone Pro and this dependency loop happens:

The recent systemd version in that SFOS version is actually able to detect the circular dependency, and solves it... ...by removing paths.target.

My suggestion would be to add DefaultDependencies=no in harbour's paths' units. This way harbour's paths are started as part of paths.target, but there is no implicit "After=" in the target, thus it breaks the circular dependency, while the path is still scheduled for restart.

I'll make a PR.

DrYak commented 8 months ago

PR is available here: #9

DrYak commented 8 months ago

The exact error message is:

basic.target: Job paths.target/start deleted to break ordering cycle starting with basic.target/start