openSUSE talk:Systemd packaging guidelines
RPM Macros Result in Errors
- Are these guidelines still accurate? In particular, rpmbuild seems to expand `%{?systemd_requires}` to an empty string, --Cdr255 (talk) 04:25, 16 November 2017 (UTC)
Requires(pre): systemd Requires(post): systemd Requires(preun): systemd Requires(postun): systemd
--Sebix (talk) 09:50, 16 November 2017 (UTC)
- Ah, okay. I was adding the macro after a "Requires:"; I misunderstood 1.2 Requires I guess. To clarify, using the code from 1.1 Build Requirement, I've already called `%{?systemd_requires}` right? Having 1.2 Requires seems redundant; is there a use case where You'd want to use just the macro, without the rest of the conditional statement from 1.1 Build Requirement? --Cdr255 (talk) 20:11, 16 November 2017 (UTC)
Optional systemd unit files for package
In containers it's inconvenient to have systemd installed, but some daemons are forced to require it because they provide a systemd unit file. I can't find any article talking about %systemd_ordering, which provides a solution to this issue. --Awerlang (talk) 03:42, 27 July 2020 (UTC)