diff --git a/PackageKit-mark-as-compulsory.patch b/PackageKit-mark-as-compulsory.patch new file mode 100644 index 0000000..5a4c785 --- /dev/null +++ b/PackageKit-mark-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 + diff --git a/PackageKit.changes b/PackageKit.changes index 99f88d0..0cf3001 100644 --- a/PackageKit.changes +++ b/PackageKit.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 13 09:17:52 UTC 2024 - Alynx Zhou + +- Add PackageKit-mark-as-compulsory.patch: Prevent PackageKit from + user uninstallable for most desktops (bsc#1226269). + ------------------------------------------------------------------- Tue Mar 5 14:14:09 UTC 2024 - Dominique Leuenberger diff --git a/PackageKit.spec b/PackageKit.spec index 7c81ca7..3a03abc 100644 --- a/PackageKit.spec +++ b/PackageKit.spec @@ -57,6 +57,8 @@ Patch7: PackageKit-zypp-disable-upgrade-system-in-sle.patch Patch15: PackageKit-fix-pkcon-permission.patch # PATCH-FIX-UPSTREAM PackageKit-dynamic-export.patch boo#1213309 dimstar@opensuse.org -- Fix loading modules when built with glib 2.70 Patch16: PackageKit-dynamic-export.patch +# PATCH-FIX-UPSTREAM PackageKit-mark-as-compulsory.patch bsc#1226269 alynx.zhou@suse.com -- Prevent PackageKit from user uninstallable +Patch17: PackageKit-mark-as-compulsory.patch # PATCH-FIX-SLE PackageKit-find-python-3-6.patch alynx.zhou@suse.com -- Build PackageKit with Python 3.6 Patch1001: PackageKit-find-python-3-6.patch @@ -284,6 +286,7 @@ This package provides the upstream default configuration for PackageKit. %patch -P 7 -p1 %patch -P 15 -p1 %patch -P 16 -p1 +%patch -P 17 -p1 %if 0%{?sle_version} && 0%{?sle_version} < 160000 %patch -P 1001 -p1 %endif