[realmd] Backport a patch submitted upstream to fix build
Richard Hughes
rhughes at fedoraproject.org
Thu Jan 30 13:05:33 UTC 2014
commit a6414ec72689bf5a8d7fb05f70914c88073b9122
Author: Richard Hughes <richard at hughsie.com>
Date: Thu Jan 30 13:05:54 2014 +0000
Backport a patch submitted upstream to fix build
...-pk_client_set_interactive-rather-than-th.patch | 42 ++++++++++++++++++++
realmd.spec | 4 ++
2 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/0001-service-Use-pk_client_set_interactive-rather-than-th.patch b/0001-service-Use-pk_client_set_interactive-rather-than-th.patch
new file mode 100644
index 0000000..b0623bb
--- /dev/null
+++ b/0001-service-Use-pk_client_set_interactive-rather-than-th.patch
@@ -0,0 +1,42 @@
+From 6fbc9b1151448f2571eeb52dff0f955f04fe7a0b Mon Sep 17 00:00:00 2001
+From: Richard Hughes <richard at hughsie.com>
+Date: Thu, 30 Jan 2014 12:59:57 +0000
+Subject: [PATCH] service: Use pk_client_set_interactive() rather than the
+ deprecated PkTask function
+
+The pk_task_set_interactive() function has been removed in PackageKit 0.9.x and
+it's fine to call the subclass version on any version of PackageKit.
+---
+ service/realm-packages.c | 2 +-
+ tests/frob-install-packages.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/service/realm-packages.c b/service/realm-packages.c
+index ee61ee2..f9b0877 100644
+--- a/service/realm-packages.c
++++ b/service/realm-packages.c
+@@ -382,7 +382,7 @@ realm_packages_install_async (const gchar **package_sets,
+ install = g_new0 (InstallClosure, 1);
+ install->task = pk_task_new ();
+ install->automatic = realm_options_automatic_install (options);
+- pk_task_set_interactive (install->task, FALSE);
++ pk_client_set_interactive (PK_CLIENT (install->task), FALSE);
+ pk_client_set_background (PK_CLIENT (install->task), FALSE);
+ install->invocation = invocation ? g_object_ref (invocation) : NULL;
+ g_task_set_task_data (task, install, install_closure_free);
+diff --git a/tests/frob-install-packages.c b/tests/frob-install-packages.c
+index 8116a6e..61556ec 100644
+--- a/tests/frob-install-packages.c
++++ b/tests/frob-install-packages.c
+@@ -121,7 +121,7 @@ test_resolve (void)
+ gint i;
+
+ task = pk_task_new ();
+- pk_task_set_interactive (task, FALSE);
++ pk_client_set_interactive (PK_CLIENT (task), FALSE);
+
+ filter = pk_filter_bitfield_from_string ("arch");
+
+--
+1.8.5.3
+
diff --git a/realmd.spec b/realmd.spec
index cd66901..1dfbbd0 100644
--- a/realmd.spec
+++ b/realmd.spec
@@ -6,6 +6,9 @@ License: LGPLv2+
URL: http://cgit.freedesktop.org/realmd/realmd/
Source0: http://www.freedesktop.org/software/realmd/releases/realmd-%{version}.tar.gz
+# already sent upstream
+Patch0: 0001-service-Use-pk_client_set_interactive-rather-than-th.patch
+
BuildRequires: intltool pkgconfig
BuildRequires: gettext-devel
BuildRequires: glib2-devel >= 2.32.0
@@ -35,6 +38,7 @@ applications that use %{name}.
%prep
%setup -q
+%patch0 -p1 -b .packagekit-api-change
%build
%configure --disable-silent-rules
More information about the scm-commits
mailing list