From 16940aab2579e12c7da7d7d865849387133e357e Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Fri, 11 Apr 2025 17:21:09 +0200 Subject: [PATCH] spec: don't recommend python3-pillow on RHEL We don't ship python3-pillow on RHEL 10 and it currently causes issues when running the upstream test suite, as it's getting recommended by RPM: $ dnf repoquery -q systemd-ukify systemd-ukify-0:257-9.el10_0.1.noarch $ dnf repoquery -q --recommends systemd-ukify python3dist(pillow) $ dnf repoquery -q --enablerepo rhel-CRB,rhel-buildroot --whatprovides 'python3dist(pillow)' | grep . || echo '' We already do the same thing for the python3-pillow BuildRequires, so just extend it to the offending Recommends as well. Related: RHEL-79976 --- systemd.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systemd.spec b/systemd.spec index d9796b5..bb47eaa 100644 --- a/systemd.spec +++ b/systemd.spec @@ -792,7 +792,9 @@ Requires: (systemd-boot if %{shrink:( Requires: python3dist(pefile) Requires: python3dist(zstd) Requires: python3dist(cryptography) +%if %{undefined rhel} Recommends: python3dist(pillow) +%endif # for tests BuildRequires: binutils