[arch-commits] Commit in discover/trunk (PKGBUILD discover-pk-qt-1.0c.patch)

Antonio Rojas arojas at archlinux.org
Sun Jan 14 12:38:03 UTC 2018


    Date: Sunday, January 14, 2018 @ 12:38:02
  Author: arojas
Revision: 314781

Fix update notifier crashes with packagekit-qt 1.0 (FS#57089)

Added:
  discover/trunk/discover-pk-qt-1.0c.patch
Modified:
  discover/trunk/PKGBUILD

---------------------------+
 PKGBUILD                  |    9 ++++++---
 discover-pk-qt-1.0c.patch |   21 +++++++++++++++++++++
 2 files changed, 27 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-14 11:08:37 UTC (rev 314780)
+++ PKGBUILD	2018-01-14 12:38:02 UTC (rev 314781)
@@ -3,7 +3,7 @@
 
 pkgname=discover
 pkgver=5.11.5
-pkgrel=2
+pkgrel=3
 pkgdesc='KDE and Plasma resources management GUI'
 arch=(x86_64)
 url='https://projects.kde.org/projects/kde/workspace/discover'
@@ -15,12 +15,14 @@
 groups=(plasma)
 source=("https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz"{,.sig} discover-no-deb-rpm.patch
         discover-pk-qt-1.0a.patch::"https://cgit.kde.org/discover.git/patch/?id=d1070951"
-        discover-pk-qt-1.0b.patch::"https://cgit.kde.org/discover.git/patch/?id=243ad65f")
+        discover-pk-qt-1.0b.patch::"https://cgit.kde.org/discover.git/patch/?id=243ad65f"
+        discover-pk-qt-1.0c.patch)
 sha256sums=('b4cec7b23ee43b8c6caa2cb69ebbab903ce64351d846288eeb3afb1a25b9ba7b'
             'SKIP'
             '1910a7a95c8537cdf59fea87bdb4a4ac750d073c63182536358ef5c75508521d'
             '4a8a2e802b9b290082caacb2b8fa7439e3932dd056bb9f3939c51d8eee3799d7'
-            'e8e0b153b2644747f692d056b1189857ee91657444fdb34d29d1d59bcc086b70')
+            'e8e0b153b2644747f692d056b1189857ee91657444fdb34d29d1d59bcc086b70'
+            '418ac41a56b62810d3ad355752d1ffde81e7ea1b41494eebb5f8e18ffaf44f30')
 validpgpkeys=('2D1D5B0588357787DE9EE225EC94D18F7F05997E'  # Jonathan Riddell
               '348C8651206633FD983A8FC4DEACEA00075E1D76'  # KDE Neon
               'D07BD8662C56CB291B316EB2F5675605C74E02CF'  # David Edmundson
@@ -35,6 +37,7 @@
 # Fix build with packagekit-qt 1.0.0
   patch -p1 -i ../discover-pk-qt-1.0a.patch
   patch -p1 -i ../discover-pk-qt-1.0b.patch
+  patch -p1 -i ../discover-pk-qt-1.0c.patch
 }
 
 build() {

Added: discover-pk-qt-1.0c.patch
===================================================================
--- discover-pk-qt-1.0c.patch	                        (rev 0)
+++ discover-pk-qt-1.0c.patch	2018-01-14 12:38:02 UTC (rev 314781)
@@ -0,0 +1,21 @@
+From 69c2d24a0a71b1c50a56beda90febdae97aa3128 Mon Sep 17 00:00:00 2001
+From: Aleix Pol <aleixpol at kde.org>
+Date: Tue, 9 Jan 2018 18:21:44 +0100
+Subject: No need to manage these pointers anymore
+
+---
+ libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp b/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp
+index fdabd81..0113a06 100644
+--- a/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp
++++ b/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp
+@@ -225,7 +225,6 @@ void PackageKitNotifier::refreshDatabase()
+         m_refresher = PackageKit::Daemon::refreshCache(false);
+         connect(m_refresher.data(), &PackageKit::Transaction::finished, this, [this]() {
+             recheckSystemUpdateNeeded();
+-            delete m_refresher;
+         });
+     }
+ 



More information about the arch-commits mailing list