diff --git a/PackageKit.spec b/PackageKit.spec index d0451e9..dd15ef4 100644 --- a/PackageKit.spec +++ b/PackageKit.spec @@ -19,6 +19,9 @@ Patch0: PackageKit-0.3.8-RHEL-Vendor.conf.patch # https://github.com/PackageKit/PackageKit/pull/404 Patch1: package-remove-password-prompt.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=2283063 +Patch2: appstream-mark-pk-as-compulsory.patch + BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: xmlto BuildRequires: gtk-doc diff --git a/appstream-mark-pk-as-compulsory.patch b/appstream-mark-pk-as-compulsory.patch new file mode 100644 index 0000000..d575260 --- /dev/null +++ b/appstream-mark-pk-as-compulsory.patch @@ -0,0 +1,35 @@ +From d8f84f7e0a017e0b4df1e08a2a6be832c9fb3611 Mon Sep 17 00:00:00 2001 +From: Matthias Klumpp +Date: Tue, 21 May 2024 02:33:55 +0200 +Subject: [PATCH] metainfo: Mark PK as compulsory for most desktops + +Ideally, AppStream needs a way to just mark a component as critical for +the system to function and prevent its removal. But this is okay as a +temporary fix. + +Resolves: #759 +--- + data/org.freedesktop.packagekit.metainfo.xml | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/data/org.freedesktop.packagekit.metainfo.xml b/data/org.freedesktop.packagekit.metainfo.xml +index 13b7a316d..ce47582a8 100644 +--- a/data/org.freedesktop.packagekit.metainfo.xml ++++ b/data/org.freedesktop.packagekit.metainfo.xml +@@ -27,6 +27,16 @@ + https://www.freedesktop.org/software/PackageKit + + packagekit.service ++ ++ Cinnamon ++ GNOME ++ KDE ++ LXQt ++ MATE ++ Pantheon ++ Unity ++ XFCE ++ + + System +