#15 Optimize systemd dependency for containers
Closed 4 years ago by bogdando. Opened 4 years ago by bogdando.
https://github.com/bogdando/rpms-dnf.git bz/1671362-f29  into  f29

Optimize systemd dependency for containers
Bogdan Dobrelya • 4 years ago  
dnf.spec
file modified
+7 -3
@@ -73,7 +73,7 @@

  

  Name:           dnf

  Version:        4.0.9

- Release:        2%{?dist}

+ Release:        3%{?dist}

  Summary:        %{pkg_summary}

  # For a breakdown of the licensing, see PACKAGE-LICENSING

  License:        GPLv2+ and GPLv2 and GPL
@@ -104,7 +104,7 @@

  %endif

  Recommends:     (%{_bindir}/sqlite3 if bash-completion)

  %endif

- %{?systemd_requires}

+ %{?systemd_ordering}

  Provides:       dnf-command(autoremove)

  Provides:       dnf-command(check-update)

  Provides:       dnf-command(clean)
@@ -257,7 +257,7 @@

  Summary:        %{pkg_summary} - automated upgrades

  BuildRequires:  systemd

  Requires:       %{name} = %{version}-%{release}

- %{?systemd_requires}

+ %{?systemd_ordering}

  

  %description automatic

  Systemd units that can periodically download package upgrades and apply them.
@@ -496,6 +496,10 @@

  %endif

  

  %changelog

+ * Thu Jan 31 2019 Bogdan Dobrelia <bdobreli@redhat.com> - 4.0.9-3

+ - Use %%systemd_ordering

+ - Related: rhbz#1671362

+ 

  * Thu Dec 13 2018 Jaroslav Mracek <jmracek@redhat.com> - 4.0.9-2

  - Backport Make transaction content available for commands

  

no initial comment

According to https://fedoraproject.org/wiki/Packaging:Scriptlets:
If a package is suitable for installation without systemd (in a
container image, for example) and does not require any of the
systemd mechanisms such as tmpfiles.d, then the systemd_ordering macro
MAY be used instead of the systemd_requires macro.

That is exactly the case we want to address for container images
when installing packages in it.

Pull-Request has been closed by bogdando

4 years ago
Metadata