From 422e17de7730df6eb6696ce702c7733faaaf591c Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 16 Feb 2022 17:49:57 +0100 Subject: [PATCH] Add a temporary workaround for gtk_widget_measure error flood on GsAppRow --- ...pprow-gtk_widget_measure-error-flood.patch | 39 +++++++++++++++++++ gnome-software.spec | 4 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 0003-workaround-gsapprow-gtk_widget_measure-error-flood.patch diff --git a/0003-workaround-gsapprow-gtk_widget_measure-error-flood.patch b/0003-workaround-gsapprow-gtk_widget_measure-error-flood.patch new file mode 100644 index 0000000..0a24881 --- /dev/null +++ b/0003-workaround-gsapprow-gtk_widget_measure-error-flood.patch @@ -0,0 +1,39 @@ +diff -up gnome-software-42.beta/src/gs-app-row.ui.3 gnome-software-42.beta/src/gs-app-row.ui +--- gnome-software-42.beta/src/gs-app-row.ui.3 2022-02-10 20:53:14.109477000 +0100 ++++ gnome-software-42.beta/src/gs-app-row.ui 2022-02-16 17:49:02.583817963 +0100 +@@ -26,7 +26,7 @@ + center + + +- True ++ False + 0.0 + 0.5 + end +@@ -80,7 +80,7 @@ + False + 0.0 + 0.5 +- True ++ False + word-char + end + 2 +@@ -119,7 +119,7 @@ + True + 24 + 24 +- True ++ False + word-char + end + 2 +@@ -187,7 +187,7 @@ + False + warning-text + start +- True ++ False + 0 + + diff --git a/gnome-software.spec b/gnome-software.spec index b30cd16..280f9df 100644 --- a/gnome-software.spec +++ b/gnome-software.spec @@ -22,6 +22,7 @@ Source0: https://download.gnome.org/sources/gnome-software/42/%{name}-%{tarbal Patch01: 0001-crash-with-broken-theme.patch Patch02: 0002-packagekit-crash-on-app-install.patch +Patch03: 0003-workaround-gsapprow-gtk_widget_measure-error-flood.patch BuildRequires: appstream-devel >= %{appstream_version} BuildRequires: gcc @@ -103,7 +104,7 @@ and update software in the GNOME desktop. This package includes the rpm-ostree backend. %prep -%autosetup -p1 -n %{name}-%{tarball_version} +%autosetup -p1 -S gendiff -n %{name}-%{tarball_version} %build %meson \ @@ -200,6 +201,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %changelog * Wed Feb 16 2022 Milan Crha - 42.beta-2 - Resolves: #2054939 (Crash on a PackageKit app install) +- Add a temporary workaround for gtk_widget_measure error flood on GsAppRow * Fri Feb 11 2022 Milan Crha - 42.beta-1 - Update to 42.beta