From ffaec8e2b1aa4faae347bd2b23a702f1ead38eae Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:51:46 +0100 Subject: [PATCH] add a workaround patch to completely remove assert causing packagekitd crash [release 1.2.7-3mamba;Fri Sep 15 2023] --- ....2.7-workaround-pk_transaction_remove_assert.patch | 11 +++++++++++ PackageKit.spec | 11 ++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 PackageKit-1.2.7-workaround-pk_transaction_remove_assert.patch diff --git a/PackageKit-1.2.7-workaround-pk_transaction_remove_assert.patch b/PackageKit-1.2.7-workaround-pk_transaction_remove_assert.patch new file mode 100644 index 0000000..270467a --- /dev/null +++ b/PackageKit-1.2.7-workaround-pk_transaction_remove_assert.patch @@ -0,0 +1,11 @@ +--- PackageKit-1.2.7/src/pk-transaction.c.orig 2023-09-15 22:35:18.046436973 +0200 ++++ PackageKit-1.2.7/src/pk-transaction.c 2023-09-15 22:35:35.724504373 +0200 +@@ -5525,7 +5525,7 @@ + + if (transaction->priv->registration_id > 0) { + /* We should have emitted ::Finished if the object was ever registered */ +- g_assert (transaction->priv->emitted_finished); ++ //g_assert (transaction->priv->emitted_finished); + + g_dbus_connection_unregister_object (transaction->priv->connection, + transaction->priv->registration_id); diff --git a/PackageKit.spec b/PackageKit.spec index 0dcfad7..19b7355 100644 --- a/PackageKit.spec +++ b/PackageKit.spec @@ -1,6 +1,6 @@ Name: PackageKit Version: 1.2.7 -Release: 2mamba +Release: 3mamba Summary: A system designed to make installing and updating software on your computer easier Group: System/Management Vendor: openmamba @@ -17,7 +17,8 @@ Patch16: PackageKit-1.1.12-dnf-repos-dir.patch Patch17: PackageKit-1.1.12-dnf-disable-trusted-packages-check.patch Patch18: PackageKit-1.1.12-upstream-dnf-invalidate-the-sack-cache-after-downloading-new-metadata.patch Patch19: PackageKit-1.2.6-enable-ShutdownTimeout.patch -Patch20: PackageKit-1.2.7-upstream-fix-pk_transaction_dispose-assertion_failed.patch +Patch20: PackageKit-1.2.7-upstream-fix-pk_transaction_dispose-assertion_failed.patch +Patch21: PackageKit-1.2.7-workaround-pk_transaction_remove_assert.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -96,7 +97,8 @@ This package contains the Gtk interface library for %{name}. %patch 17 -p1 #%patch18 -p1 %patch 19 -p1 -%patch 20 -p1 -b .upstream-fix-pk_transaction_dispose-assertion_failed +#%patch 20 -p1 -b .upstream-fix-pk_transaction_dispose-assertion_failed +%patch 21 -p1 sed -i "s|openmandriva|openmamba|" meson_options.txt @@ -192,6 +194,9 @@ install -d -m0755 %{buildroot}/var/cache/PackageKit %doc NEWS README %changelog +* Fri Sep 15 2023 Silvan Calarco 1.2.7-3mamba +- add a workaround patch to completely remove assert causing packagekitd crash + * Thu Sep 14 2023 Silvan Calarco 1.2.7-2mamba - upstream patch to fix packagekitd crash on assertion failure (see https://github.com/PackageKit/PackageKit/issues/656 )