#6 Don't require systemd for flatpak builds
Opened 2 years ago by jaydoubleu. Modified 2 years ago
rpms/ jaydoubleu/cyrus-sasl rawhide  into  rawhide

file modified
@@ -62,11 +62,15 @@ 

  #build reqs for make check

  BuildRequires: python3 nss_wrapper socket_wrapper krb5-server

  BuildRequires: make

+ %if ! 0%{?flatpak}


+ %endif

  Requires(pre): /usr/sbin/useradd /usr/sbin/groupadd

  Requires(postun): /usr/sbin/userdel /usr/sbin/groupdel

  Requires: /sbin/nologin

+ %if ! 0%{?flatpak}

  Requires: systemd >= 211

+ %endif

  Provides: user(%username)

  Provides: group(%username)


Flatpak builds will not be able to consume systemd.
This will allow building flatpaks without having to build systemd and all of it's dependencies.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Shouldn't you also disable the install code that install saslauthd service file and probably also the %pre part that creates the sasluthd user/group ?

I assume the flatpak builder already neuters the systemd hooks in post/preun/postun ?

Yes systemd doesn't work completely inside flatpaks. It's there only for build dependencies etc.

I'll have a look into disabling the other bits which use systemd.

Jay is this something you are still pursuing?
If so can you rebase against latest rawhide?