public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kalev Lember <klember@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/glib2] cve-2026-58016-f44: Backport a patch to fix notification withdrawing in gnome-software
Date: Tue, 11 Aug 2026 10:35:53 GMT [thread overview]
Message-ID: <178644455386.1.10719309087908906054.rpms-glib2-33edb3297265@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/glib2
Branch : cve-2026-58016-f44
Commit : 33edb3297265e27896bc3bc2d7a774d8f73c4879
Author : Kalev Lember <klember@redhat.com>
Date : 2015-06-24T11:15:08+02:00
Stats : +45/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/glib2/c/33edb3297265e27896bc3bc2d7a774d8f73c4879?branch=cve-2026-58016-f44
Log:
Backport a patch to fix notification withdrawing in gnome-software
---
diff --git a/0001-gapplication-Initialize-backend-before-withdrawing-n.patch b/0001-gapplication-Initialize-backend-before-withdrawing-n.patch
new file mode 100644
index 0000000..f1d78f2
--- /dev/null
+++ b/0001-gapplication-Initialize-backend-before-withdrawing-n.patch
@@ -0,0 +1,38 @@
+From c612fcab0fb2d3f0bdaf011d5b566dc949dbd18a Mon Sep 17 00:00:00 2001
+From: Kalev Lember <klember@redhat.com>
+Date: Mon, 22 Jun 2015 19:56:38 +0200
+Subject: [PATCH] gapplication: Initialize backend before withdrawing
+ notifications
+
+Make sure to initialize the notification backend in
+g_application_withdraw_notification() the same way as is done in
+g_application_send_notification().
+
+This makes it possible for an app to withdraw notifications it has sent
+in a previous execution of the application.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=750625
+---
+ gio/gapplication.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/gio/gapplication.c b/gio/gapplication.c
+index be7127a..37a8258 100644
+--- a/gio/gapplication.c
++++ b/gio/gapplication.c
+@@ -2715,8 +2715,10 @@ g_application_withdraw_notification (GApplication *application,
+ g_return_if_fail (G_IS_APPLICATION (application));
+ g_return_if_fail (id != NULL);
+
+- if (application->priv->notifications)
+- g_notification_backend_withdraw_notification (application->priv->notifications, id);
++ if (application->priv->notifications == NULL)
++ application->priv->notifications = g_notification_backend_new_default (application);
++
++ g_notification_backend_withdraw_notification (application->priv->notifications, id);
+ }
+
+ /* Busy binding {{{1 */
+--
+2.4.3
+
diff --git a/glib2.spec b/glib2.spec
index 933eb04..84c4bca 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -3,12 +3,14 @@
Summary: A library of handy utility functions
Name: glib2
Version: 2.45.3
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
#VCS: git:git://git.gnome.org/glib
Source: http://download.gnome.org/sources/glib/2.45/glib-%{version}.tar.xz
+# Backported from upstream
+Patch0: 0001-gapplication-Initialize-backend-before-withdrawing-n.patch
BuildRequires: pkgconfig
BuildRequires: gettext
@@ -81,6 +83,7 @@ the functionality of the installed glib2 package.
%prep
%setup -q -n glib-%{version}
+%patch0 -p1
%build
# Support builds of both git snapshots and tarballs packed with autogoo
@@ -218,6 +221,9 @@ gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
%{_datadir}/installed-tests
%changelog
+* Wed Jun 24 2015 Kalev Lember <klember@redhat.com> - 2.45.3-2
+- Backport a patch to fix notification withdrawing in gnome-software
+
* Wed Jun 24 2015 David King <amigadave@amigadave.com> - 2.45.3-1
- Update to 2.45.3
reply other threads:[~2026-08-11 10:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178644455386.1.10719309087908906054.rpms-glib2-33edb3297265@fedoraproject.org \
--to=klember@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox